.dpl-catalogue-page,
.dpl-single-page {
	background: #f7f6f2;
	color: #242424;
	min-height: 70vh;
}

.dpl-catalogue-shell,
.dpl-single {
	margin: 0 auto;
	max-width: 1180px;
	padding: 28px 18px 44px;
}

.dpl-catalogue-header,
.dpl-single-hero {
	display: grid;
	gap: 18px;
	margin-bottom: 22px;
}

.dpl-catalogue-header h1,
.dpl-single h1 {
	font-size: clamp(2rem, 4vw, 3.75rem);
	line-height: 1;
	margin: 0;
}

.dpl-kicker,
.dpl-card-brand {
	color: #59625d;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.dpl-catalogue-summary {
	align-self: end;
	color: #59625d;
	margin: 0;
}

.dpl-catalogue-controls {
	background: #ffffff;
	border: 1px solid #dedbd2;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(36, 36, 36, 0.05);
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
	padding: 14px;
}

.dpl-search-field label,
.dpl-filter-grid span {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 6px;
}

.dpl-search-field input,
.dpl-filter-grid select {
	appearance: none;
	background: #fbfaf7;
	border: 1px solid #cbc7bb;
	border-radius: 6px;
	box-sizing: border-box;
	color: #242424;
	font: inherit;
	min-height: 42px;
	padding: 9px 11px;
	width: 100%;
}

.dpl-filter-panel {
	border: 0;
}

.dpl-filter-panel summary {
	cursor: pointer;
	font-weight: 700;
	padding: 6px 0;
}

.dpl-filter-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
	margin-top: 10px;
}

.dpl-control-actions {
	display: flex;
	justify-content: flex-start;
	margin-top: 12px;
}

.dpl-state {
	color: #59625d;
	margin: 14px 0;
	min-height: 24px;
}

.dpl-state[data-state="error"] {
	color: #a23124;
}

.dpl-colour-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.dpl-colour-card {
	background: #ffffff;
	border: 1px solid #dedbd2;
	border-radius: 8px;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	min-height: 168px;
	overflow: hidden;
}

.dpl-card-swatch,
.dpl-single-swatch {
	background: var(--dpl-colour, #f5f2ec);
	border: 0;
	display: block;
	min-height: 100%;
}

.dpl-card-swatch:focus-visible,
.dpl-card-body a:focus-visible,
.dpl-button:focus-visible,
.dpl-back-link:focus-visible {
	outline: 3px solid #257c78;
	outline-offset: 3px;
}

.dpl-card-body {
	display: grid;
	gap: 8px;
	padding: 14px;
}

.dpl-card-body h2 {
	font-size: 1.15rem;
	line-height: 1.2;
	margin: 0;
}

.dpl-card-body h2 a,
.dpl-back-link {
	color: #242424;
	text-decoration: none;
}

.dpl-card-body h2 a:hover,
.dpl-back-link:hover {
	text-decoration: underline;
}

.dpl-card-code {
	color: #59625d;
	font-size: 0.92rem;
	font-weight: 700;
	margin: 0;
}

.dpl-card-meta {
	display: grid;
	gap: 6px;
	grid-template-columns: 1fr;
	margin: 0;
}

.dpl-card-meta div,
.dpl-single-details div {
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.dpl-card-meta dt,
.dpl-single-details span {
	color: #59625d;
	font-size: 0.82rem;
}

.dpl-card-meta dd,
.dpl-single-details strong {
	font-size: 0.86rem;
	font-weight: 700;
	margin: 0;
	text-align: right;
}

.dpl-card-cta,
.dpl-button {
	align-items: center;
	background: #242424;
	border: 1px solid #242424;
	border-radius: 6px;
	color: #ffffff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	text-decoration: none;
	width: fit-content;
}

.dpl-button-secondary {
	background: #ffffff;
	color: #242424;
}

.dpl-button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.dpl-pagination {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 24px;
}

.dpl-page-current {
	color: #59625d;
	font-weight: 700;
}

.dpl-back-link {
	display: inline-flex;
	font-weight: 700;
	margin-bottom: 18px;
}

.dpl-single-hero {
	background: #ffffff;
	border: 1px solid #dedbd2;
	border-radius: 8px;
	overflow: hidden;
}

.dpl-single-swatch {
	align-items: flex-end;
	aspect-ratio: 16 / 10;
	display: flex;
	min-height: 220px;
	padding: 18px;
}

.dpl-single-swatch span {
	background: rgba(255, 255, 255, 0.82);
	border-radius: 6px;
	color: #242424;
	font-weight: 700;
	padding: 7px 10px;
}

.dpl-single-intro {
	padding: 18px;
}

.dpl-code {
	color: #59625d;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 10px 0 0;
}

.dpl-single-actions {
	margin-top: 20px;
}

.dpl-single-details {
	background: #ffffff;
	border: 1px solid #dedbd2;
	border-radius: 8px;
	display: grid;
	gap: 10px;
	margin-top: 18px;
	padding: 18px;
}

.dpl-single-copy {
	font-size: 1rem;
	line-height: 1.7;
	margin-top: 22px;
	max-width: 760px;
}

.dpl-single-excerpt {
	font-size: 1.18rem;
	font-weight: 700;
}

.dpl-matches {
	margin-top: 34px;
}

.dpl-match-heading {
	margin-bottom: 18px;
}

.dpl-match-heading h2,
.dpl-match-section h3 {
	margin: 0 0 6px;
}

.dpl-match-heading p {
	color: #59625d;
	margin: 0;
}

.dpl-match-section {
	margin-top: 22px;
}

.dpl-match-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.dpl-match-card {
	background: #ffffff;
	border: 1px solid #dedbd2;
	border-radius: 8px;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	overflow: hidden;
}

.dpl-match-media {
	background: #ece8df;
	display: block;
	min-height: 130px;
}

.dpl-match-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.dpl-match-media span {
	background: var(--dpl-colour, #b8b0a2);
	display: block;
	height: 100%;
	min-height: 130px;
}

.dpl-match-body {
	padding: 14px;
}

.dpl-match-body p {
	color: #59625d;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.dpl-match-body h4 {
	font-size: 1rem;
	line-height: 1.25;
	margin: 0 0 8px;
}

.dpl-match-body a {
	color: #242424;
	text-decoration: none;
}

.dpl-match-body a:hover {
	text-decoration: underline;
}

.dpl-match-body span {
	color: #59625d;
	font-size: 0.88rem;
}

@media (min-width: 680px) {
	.dpl-catalogue-header {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.dpl-catalogue-controls {
		grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.6fr);
	}

	.dpl-filter-panel summary {
		display: none;
	}

	.dpl-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 0;
	}

	.dpl-colour-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dpl-match-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dpl-single-hero {
		grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
	}

	.dpl-single-swatch {
		aspect-ratio: auto;
	}
}

@media (min-width: 980px) {
	.dpl-filter-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.dpl-colour-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.dpl-match-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
