/**
 * Curatery browse digital goods — the rebrand.
 *
 * archive-good.php, built to the mockup's goods.html and browse.css. The hero,
 * scallop, chips, section heading and pages are in components.css; the cards
 * are in good-card.css.
 */

.cur-goods {
	/* Blocksy colors every link through these; inherit instead. */
	--theme-link-initial-color: currentColor;
	--theme-link-hover-color: var(--cur-tomato);
	color: var(--cur-ink);
	font-family: var(--cur-sans);
}

.cur-goods :where(a) {
	text-decoration: none;
}

.cur-goods :is(h1, h2, h3) {
	color: inherit;
	font-family: var(--cur-serif);
	font-weight: 400;
}

.cur-goods__browse {
	padding: 3.5rem var(--cur-gutter) 5.5rem;
	background: var(--cur-paper);
}

.cur-goods__search {
	margin: -1rem 0 1.6rem;
	color: var(--cur-ink-muted);
	font-size: 0.85rem;
}

.cur-goods__search a {
	color: var(--cur-tomato);
	font-weight: 700;
}

/* Filters down the left, the Goods beside them. */
.cur-goods__layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 2.2rem;
	align-items: start;
}

/* The shared filter panel lays its parts out in a row; down the side it
   stacks instead, and stays put while the Goods scroll. */
.cur-goods .cur-goods__filters {
	position: sticky;
	top: 1.5rem;
	flex-direction: column;
	align-items: stretch;
	gap: 1.4rem;
	margin: 0;
	padding: 1.4rem;
}

.cur-goods__filter-label {
	display: block;
	margin-bottom: 0.6rem;
	color: var(--cur-green);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cur-goods__clear {
	margin: 0;
}

.cur-goods__results {
	min-width: 0;
}

/* The cards want a little more room than the shared grid gives them here. */
.cur-goods .cur-goods__grid {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* The advert part-way down, and the grid that carries on after it. */
.cur-goods__mid-ad {
	margin: 2rem 0;
}

.cur-goods__grid + .cur-goods__grid {
	margin-top: 2rem;
}

.cur-goods__empty {
	padding: 4rem 1rem;
	text-align: center;
}

.cur-goods .cur-goods__empty h3 {
	margin: 0 0 0.5rem;
	font-size: 1.9rem;
}

.cur-goods__empty p {
	margin: 0;
	color: var(--cur-ink-muted);
}

.cur-goods__empty a {
	color: var(--cur-tomato);
	font-weight: 700;
}

@media (max-width: 960px) {
	.cur-goods__layout {
		grid-template-columns: 1fr;
	}

	.cur-goods .cur-goods__filters {
		position: static;
		margin-bottom: 2rem;
	}
}
