/**
 * Products page blocks: survey-sheet picker and body copy.
 *
 * Follows the Peelle reference the client sent — a row of door icons with
 * captions — in Draper's palette: black frame, #6EC1E4
 * panels, Poppins headings. The accent for text and buttons is the darker
 * #1e73be (the theme's own link colour) because #6EC1E4 on white is about 1.9:1
 * and would fail contrast for anything word-shaped.
 */

.ddspg-sheets,
.ddspg-copy {
	--ddspg-accent: #1e73be;
	--ddspg-panel: #6ec1e4;
	--ddspg-ink: #1c1c1c;
	--ddspg-muted: #55606b;
	--ddspg-line: #d8dbdf;
	--ddspg-font: Poppins, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

	color: var(--ddspg-ink);
}

.ddspg-sheets {
	margin: 0 0 2.75rem;
}

.ddspg-sheets *,
.ddspg-sheets *::before {
	box-sizing: border-box;
}

.ddspg-h {
	font-family: var(--ddspg-font);
	color: var(--ddspg-accent);
	font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem);
	font-weight: 700;
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.ddspg-intro {
	margin: 0 0 1.5rem;
	max-width: 68ch;
	color: var(--ddspg-muted);
	line-height: 1.6;
}

/* --------------------------------------------------------- survey icons --- */

.ddspg-sheets__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1024px) {
	.ddspg-sheets__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ddspg-sheets__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
}

.ddspg-sheet {
	margin: 0;
}

.ddspg-sheet__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
	padding: 1rem 0.65rem 1.1rem;
	border: 1px solid var(--ddspg-line);
	border-radius: 4px;
	background: #fff;
	text-decoration: none;
	color: var(--ddspg-ink);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* Hold the caption colour through hover/focus against the theme's global
   `a:hover{color:#000}`. */
.ddspg-sheet a.ddspg-sheet__link:hover,
.ddspg-sheet a.ddspg-sheet__link:focus,
.ddspg-sheet a.ddspg-sheet__link:active {
	color: var(--ddspg-ink);
}

a.ddspg-sheet__link:hover {
	border-color: var(--ddspg-accent);
	box-shadow: 0 5px 14px rgba(16, 32, 48, 0.11);
	transform: translateY(-2px);
}

a.ddspg-sheet__link:focus-visible {
	outline: 3px solid var(--ddspg-accent);
	outline-offset: 2px;
}

.ddspg-sheet__link--dead {
	opacity: 0.55;
	cursor: default;
}

.ddspg-sheet__art {
	display: block;
	width: 100%;
	max-width: 92px;
}

.ddspg-sheet__art .ddsi {
	display: block;
	width: 100%;
	height: auto;
}

.ddsi__leaf {
	fill: var(--ddspg-panel);
}

.ddsi__split {
	stroke: var(--ddspg-ink);
	stroke-width: 2;
}

.ddsi__frame {
	fill: none;
	stroke: var(--ddspg-ink);
	stroke-width: 5;
	stroke-linejoin: miter;
}

.ddsi__arrow {
	fill: #33404d;
}

.ddspg-sheet__label {
	font-family: var(--ddspg-font);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	text-wrap: balance;
	margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
	.ddspg-sheet__link {
		transition: none;
	}

	a.ddspg-sheet__link:hover {
		transform: none;
	}
}

/* Blank-PDF link on the survey form itself. */
.dds-blank {
	margin: 0 0 1rem;
	font-size: 0.9rem;
}

/* ------------------------------------------------------------ page copy --- */

.ddspg-copy {
	/* Matches the survey pages. Like every other page on this site the theme's
	   page title is suppressed here, and that title is what normally opens up
	   space below the header. */
	margin: clamp(1.75rem, 4vw, 3rem) 0 2.5rem;
}

.ddspg-copy h1 {
	font-family: var(--ddspg-font);
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem);
	line-height: 1.15;
	margin: 0 0 0.35rem;
	text-wrap: balance;
}

.ddspg-kicker {
	margin: 0 0 1.5rem;
	color: var(--ddspg-accent);
	font-family: var(--ddspg-font);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ddspg-copy > p {
	max-width: 72ch;
	line-height: 1.65;
}

.ddspg-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem 2.5rem;
	margin-top: 2.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--ddspg-line);
}

.ddspg-spec h3 {
	font-family: var(--ddspg-font);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.6rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--ddspg-accent);
}

.ddspg-spec ul {
	margin: 0;
	padding-left: 1.15rem;
}

.ddspg-spec li {
	margin-bottom: 0.35rem;
	line-height: 1.5;
	font-size: 0.94rem;
	color: var(--ddspg-muted);
}
