/* =========================================================================
   Colour samples: template-finishes.php (/colour-samples/).
   Scoped to .cl, mobile first, min-width media queries only (640 / 768 /
   900 / 1200). The house recipe from the 18 Sep 2026 spec
   (docs/superpowers/specs/2026-09-18-support-and-content-pages-design.md),
   plus what this page needs: finish cards with cut-outs on white.

   Bands: navy split hero, white lede, grey standard finishes, white special
   finishes, the navy specification band, Green Grey help band above the
   navy footer.
   ========================================================================= */

.cl {
	--cl-navy: #181d46;      /* Billi Blue */
	--cl-lightblue: #90cdeb; /* primary button on dark, accents */
	--cl-grey: #eaeaea;      /* borders, rules */
	--cl-band-grey: #f5f5f5;
	--cl-band-tint: #f1f5f5; /* Green Grey */
	--cl-text: #000;
	--cl-muted: #75757b;
	--cl-gutter: 20px;

	font-family: var(--font-din);
	color: var(--cl-text);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.cl { --cl-gutter: 40px; }
}

.cl *,
.cl *::before,
.cl *::after { box-sizing: border-box; }

/* framework.css sets a global img { width: 100% }: width must be reset. */
.cl img {
	max-width: 100%;
	width: auto;
	height: auto;
	display: block;
}

.cl-container {
	width: 100%;
	max-width: 1436px; /* 1356px content + 2 x 40px */
	margin: 0 auto;
	padding-left: var(--cl-gutter);
	padding-right: var(--cl-gutter);
}

.cl-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


/* ---- Sections ------------------------------------------------------------ */

.cl-section { padding: 48px 0; }

@media (min-width: 900px) {
	.cl-section { padding: 80px 0; }
}

.cl-section--grey { background: var(--cl-band-grey); }
.cl-section--tint { background: var(--cl-band-tint); }
.cl-section--navy { background: var(--cl-navy); color: #fff; }

.cl .cl-section-heading {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.18;
	color: var(--cl-navy);
	text-transform: none;
	letter-spacing: normal;
}

.cl-section--navy .cl-section-heading { color: #fff; }

.cl-section-intro {
	margin: 0;
	max-width: 66ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--cl-muted);
}

.cl-section--navy .cl-section-intro { color: rgba(255, 255, 255, 0.85); }

.cl-section-head { margin-bottom: 28px; }

@media (min-width: 900px) {
	.cl .cl-section-heading { font-size: 34px; }
	.cl-section-head { margin-bottom: 40px; }
}


/* ---- WYSIWYG output --------------------------------------------------------
   Base rules sit inside :where() so band overrides win. */

:where(.cl) .cl-text > :first-child { margin-top: 0; }
:where(.cl) .cl-text > :last-child { margin-bottom: 0; }
:where(.cl) .cl-text p { margin: 0 0 0.85em; }

:where(.cl) .cl-text :is(h2, h3, h4) {
	margin: 1.4em 0 0.5em;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--cl-navy);
}

:where(.cl) .cl-text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}


/* ---- Buttons ---------------------------------------------------------------
   desktop.css has a global a:hover { opacity: .7 }: every button opts out. */

/* 16px on a 1.5 line with 12px padding: 48px tall, the size the homepage,
   Why Billi, Specify Billi and the sector pages use. */
.cl .cl-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cl .cl-btn:hover,
.cl .cl-btn:focus-visible { opacity: 1; }

.cl .cl-btn--navy { background: var(--cl-navy); color: #fff; }

.cl .cl-btn--navy:hover,
.cl .cl-btn--navy:focus-visible {
	background: #fff;
	color: var(--cl-navy);
	box-shadow: inset 0 0 0 1px var(--cl-navy);
}

.cl .cl-btn--light { background: var(--cl-lightblue); color: var(--cl-navy); }

.cl .cl-btn--light:hover,
.cl .cl-btn--light:focus-visible { background: #fff; color: var(--cl-navy); }

.cl .cl-btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cl .cl-btn--ghost:hover,
.cl .cl-btn--ghost:focus-visible {
	background: #fff;
	color: var(--cl-navy);
	box-shadow: none;
}

.cl .cl-btn--outline {
	background: transparent;
	color: var(--cl-navy);
	box-shadow: inset 0 0 0 1px var(--cl-navy);
}

.cl .cl-btn--outline:hover,
.cl .cl-btn--outline:focus-visible { background: var(--cl-navy); color: #fff; }

/* framework.css removes focus outlines sitewide. Navy on light grounds,
   white on navy. */
.cl :is(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--cl-navy);
	outline-offset: 3px;
}

.cl :is(.cl-hero, .cl-section--navy) :is(a, button):focus-visible { outline-color: #fff; }


/* ---- Hero ------------------------------------------------------------------
   Navy, copy left, the photograph right on its own panel with no wash over
   it: this page is about colour, and a navy scrim would change the brass.
   specifiers.jpg is 2234x1809, drawn at about a quarter of that. The title
   is an h1: typography.css gives it DM Serif Display at 400. Never set its
   weight or family here. */

.cl-hero {
	background: var(--cl-navy);
	color: #fff;
}

.cl-hero__inner {
	padding-top: 48px;
	padding-bottom: 48px;
}

.cl-hero--split .cl-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.cl-hero__content,
.cl-hero__panel { min-width: 0; }

.cl-hero__content { max-width: 640px; }

.cl-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--cl-lightblue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cl .cl-hero__title {
	margin: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1.12;
}

.cl-hero__intro {
	margin: 16px 0 0;
	max-width: 56ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.5;
}

.cl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.cl-hero__actions:empty { display: none; }

.cl-hero__panel {
	position: relative;
	height: 240px;
	overflow: hidden;
	border-radius: 4px;
	background: #fff;
}

.cl .cl-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 40% 30%;
}

@media (min-width: 900px) {
	.cl-hero__inner { padding-top: 72px; padding-bottom: 72px; }

	.cl-hero--split .cl-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: 64px;
	}

	.cl .cl-hero__title { font-size: 52px; }
	.cl-hero__intro { font-size: 18px; }
	.cl-hero__panel { height: 380px; }
}


/* ---- Lede --------------------------------------------------------------------- */

.cl-lede__text {
	max-width: 70ch;
	font-size: 18px;
	line-height: 1.6;
}

@media (min-width: 900px) {
	.cl-lede__text { font-size: 19px; }
}


/* ---- Finish cards -----------------------------------------------------------------
   The finish pictures are cut-outs on white, three at 1200px and three at
   500px, so they sit in a white square with `contain` and are never drawn
   above their own size. */

.cl-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 640px) {
	.cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.cl-grid { gap: 28px; }
}

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

.cl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--cl-grey);
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cl-section--grey .cl-card { border-color: transparent; }

.cl-card--link:hover {
	border-color: var(--cl-navy);
	box-shadow: 0 6px 24px rgba(24, 29, 70, 0.08);
}

/* The picture is absolutely placed so the square cut-out cannot stretch the
   box past its ratio (an aspect-ratio box grows to fit in-flow content). */
.cl-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	max-height: 420px;
	background: #fff;
}

/* Square once the cards sit side by side; 4:3 on a phone, where a full-width
   square would be mostly white. */
@media (min-width: 640px) {
	.cl-card__media { aspect-ratio: 1 / 1; }
}

.cl .cl-card__img {
	position: absolute;
	inset: 12px;
	width: calc(100% - 24px);
	height: calc(100% - 24px);
	max-width: none;
	margin: 0 auto;
	object-fit: contain;
}

.cl-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 4px 24px 24px;
}

@media (min-width: 900px) {
	.cl-card__body { padding: 4px 28px 28px; }
}

.cl .cl-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--cl-navy);
	text-transform: none;
}

.cl-card__mark {
	margin-left: 1px;
	color: var(--cl-muted);
}

.cl-card__text {
	margin: 8px 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--cl-muted);
}

/* One stretched link per card; desktop.css sets a { font-weight: 600 } and
   fades links on hover. */
.cl .cl-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--cl-navy);
	text-decoration: none;
}

.cl .cl-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 4px;
}

.cl .cl-card__link:hover { opacity: 1; }
.cl .cl-card__link:focus-visible { outline: none; }
.cl .cl-card__link:focus-visible::after { outline: 2px solid var(--cl-navy); outline-offset: -2px; }

.cl-card__more {
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.cl .cl-card__link svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.cl-card--link:hover .cl-card__link svg { transform: translateX(3px); }

.cl-finishes__note {
	margin: 24px 0 0;
	max-width: 80ch;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cl-muted);
}


/* ---- Designed for seamless specification (navy) --------------------------------- */

.cl-spec__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

@media (min-width: 900px) {
	.cl-spec__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 64px;
	}

	.cl-spec--plain .cl-spec__inner { grid-template-columns: minmax(0, 1fr); }
}

.cl-spec__media,
.cl-spec__body { min-width: 0; }

/* 1613x1075, drawn at well under its own width. */
.cl .cl-spec__img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 4px;
}

.cl-points {
	display: grid;
	gap: 22px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.cl-point {
	position: relative;
	margin: 0;
	padding-left: 24px;
}

.cl-point::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--cl-lightblue);
}

.cl .cl-point__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.cl-point__text {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}


/* ---- Help band --------------------------------------------------------------------- */

.cl-help__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (min-width: 900px) {
	.cl-help__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 48px;
	}
}

.cl-help__body { min-width: 0; max-width: 68ch; }

.cl-help .cl-section-heading { margin-bottom: 10px; }

.cl-help__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--cl-muted);
}

.cl-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
	.cl-card,
	.cl .cl-card__link svg { transition: none; }
	.cl-card--link:hover .cl-card__link svg { transform: none; }
}
