/*
 * Digital colour chart (CP Generator 4).
 * Everything is scoped to .cpgc / .cpgc-modal / .cpgc-pick so the theme is not touched
 * and theme styles for buttons, lists and inputs do not leak in.
 * Colour swatches are never filtered, faded or overlaid: they show the stored sRGB value.
 */
.cpgc,
.cpgc-modal,
.cpgc-pick,
.cpgc-up {
	--cpgc-accent: #0e5a43;
	--cpgc-ink: #1b1e2a;
	--cpgc-muted: #5c6370;
	--cpgc-soft: #f4f3f0;
	--cpgc-line: #e6e4df;
	--cpgc-c: #d9d5c7;
	box-sizing: border-box;
	color: var(--cpgc-ink);
	font-family: inherit;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	-webkit-text-size-adjust: 100%;
}
.cpgc *,
.cpgc *::before,
.cpgc *::after,
.cpgc-modal *,
.cpgc-modal *::before,
.cpgc-modal *::after,
.cpgc-pick * {
	box-sizing: border-box;
}
.cpgc button,
.cpgc-modal button,
.cpgc-pick button,
.cpgc-modal a.cpgc-btn {
	all: unset;
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	font: inherit;
	-webkit-tap-highlight-color: transparent;
}
.cpgc button:focus-visible,
.cpgc-modal button:focus-visible,
.cpgc-pick button:focus-visible,
.cpgc-up:focus-visible,
.cpgc-modal a.cpgc-btn:focus-visible,
.cpgc .cpgc-lang a:focus-visible {
	outline: 3px solid var(--cpgc-accent);
	outline-offset: 2px;
}
.cpgc p,
.cpgc-modal p,
.cpgc .cpgc-title,
.cpgc-modal h3,
.cpgc-modal h4 {
	margin: 0;
	padding: 0;
}
.cpgc-up[hidden],
.cpgc [hidden],
.cpgc-modal[hidden],
.cpgc-modal [hidden],
.cpgc-pick[hidden] {
	display: none !important;
}
.cpgc svg,
.cpgc-modal svg {
	display: block;
	flex: none;
}
.cpgc .cpgc-sr {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* ---------- Catalogue ---------- */
.cpgc {
	container: cpgc / inline-size;
	margin: 0 auto 32px;
	max-width: 1240px;
	width: 100%;
}
.cpgc .cpgc-head {
	margin: 0 0 22px;
	position: relative;
}
/* TR / EN switch (optional, Settings → Language). */
.cpgc .cpgc-lang {
	background: rgba(255, 255, 255, 0.94);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(20, 25, 40, 0.08), 0 6px 16px -8px rgba(20, 25, 40, 0.3);
	display: flex;
	gap: 2px;
	padding: 3px;
	position: absolute;
	right: 14px;
	top: 14px;
	z-index: 2;
}
.cpgc:not(.cpgc--hero) .cpgc-lang {
	right: 0;
	top: 8px;
}
.cpgc .cpgc-lang a {
	border-radius: 999px;
	color: var(--cpgc-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 34px;
	min-width: 40px;
	padding: 0 10px;
	text-align: center;
	text-decoration: none;
}
.cpgc .cpgc-lang a[aria-current="true"] {
	background: var(--cpgc-ink);
	color: #fff;
}
.cpgc--hero .cpgc-head {
	background: var(--cpgc-soft);
	border-radius: 26px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	min-height: 330px;
	overflow: hidden;
}
.cpgc .cpgc-intro {
	align-self: center;
	padding: 44px 16px 44px 48px;
}
.cpgc .cpgc-title {
	color: var(--cpgc-ink);
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	overflow-wrap: anywhere;
}
.cpgc .cpgc-sub {
	color: var(--cpgc-muted);
	font-size: 18px;
	line-height: 1.45;
	margin: 14px 0 26px;
	max-width: 30em;
}
.cpgc .cpgc-art {
	border-radius: 46% 0 0 46% / 100% 0 0 100%;
	min-height: 260px;
	overflow: hidden;
	position: relative;
}
.cpgc .cpgc-art,
.cpgc-modal .cpgc-scene {
	isolation: isolate;
}
.cpgc .cpgc-art > img,
.cpgc .cpgc-art > .cpgc-paint,
.cpgc-modal .cpgc-scene > img,
.cpgc-modal .cpgc-scene > .cpgc-paint,
.cpgc-paint > img,
.cpgc-paint > i,
.cpgc-paint::after {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	display: block;
	height: 100%;
	left: 0;
	margin: 0;
	max-width: none;
	object-fit: cover;
	object-position: center;
	padding: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
/*
 * Painted surface. The photo below is never changed. The paint is computed in its own isolated
 * layer – shading map of the surface × paint colour – and that finished layer is shown through
 * the mask with normal alpha compositing: pixels outside the mask cannot change with the
 * colour, edge pixels are a plain coverage mix of photo and painted surface.
 */
.cpgc-paint {
	isolation: isolate;
	-webkit-mask-image: var(--cpgc-m);
	mask-image: var(--cpgc-m);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: cover;
	mask-size: cover;
}
.cpgc-paint > i {
	background-color: var(--cpgc-c);
	mix-blend-mode: multiply;
}
/* Dark colours: a little of the light of the scene so shadows and walls stay readable. */
.cpgc-paint::after {
	background: var(--cpgc-sh) center / cover no-repeat;
	content: "";
	display: none;
	filter: grayscale(1) brightness(var(--cpgc-g, 1));
	mix-blend-mode: screen;
	opacity: var(--cpgc-hl, 0);
}
.is-dark .cpgc-paint::after {
	display: block;
}
@media (max-width: 760px) {
	.cpgc-paint {
		-webkit-mask-image: var(--cpgc-ms, var(--cpgc-m));
		mask-image: var(--cpgc-ms, var(--cpgc-m));
	}
	.cpgc-paint::after {
		background-image: var(--cpgc-shs, var(--cpgc-sh));
	}
}
.cpgc .cpgc-art--fan > span {
	border-radius: 14px;
	bottom: -30px;
	box-shadow: 0 18px 40px -18px rgba(20, 25, 40, 0.45), inset 0 0 0 1px rgba(20, 25, 40, 0.06);
	height: 82%;
	left: calc(14% + var(--i, 0) * 15%);
	position: absolute;
	transform: rotate(calc(-12deg + var(--i, 0) * 6deg));
	transform-origin: 50% 100%;
	width: 26%;
}
.cpgc .cpgc-art--fan > span:nth-child(2) { --i: 1; }
.cpgc .cpgc-art--fan > span:nth-child(3) { --i: 2; }
.cpgc .cpgc-art--fan > span:nth-child(4) { --i: 3; }
.cpgc .cpgc-art--fan > span:nth-child(5) { --i: 4; }
.cpgc .cpgc-art--fan {
	background: linear-gradient(135deg, #eceae5, #e3e0da);
}

.cpgc .cpgc-search {
	align-items: center;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(20, 25, 40, 0.06), 0 10px 28px -12px rgba(20, 25, 40, 0.22);
	color: var(--cpgc-ink);
	display: flex;
	gap: 12px;
	height: 56px;
	margin: 0;
	max-width: 460px;
	padding: 0 22px;
	position: relative;
}
.cpgc:not(.cpgc--hero) .cpgc-search {
	box-shadow: inset 0 0 0 1px var(--cpgc-line);
	max-width: 520px;
}
/* Focus: one soft ring around the rounded field – the input itself never gets its own frame
   (theme rules such as Flatsome's input:focus are overridden too). */
.cpgc .cpgc-search:focus-within {
	box-shadow: 0 0 0 2px var(--cpgc-accent), 0 10px 28px -12px rgba(20, 25, 40, 0.22);
	box-shadow: 0 0 0 2px var(--cpgc-accent), 0 0 0 6px color-mix(in srgb, var(--cpgc-accent) 16%, transparent), 0 10px 28px -12px rgba(20, 25, 40, 0.22);
}
.cpgc .cpgc-search input.cpgc-q:focus,
.cpgc .cpgc-search input.cpgc-q:focus-visible {
	background: transparent;
	border: 0;
	box-shadow: none;
	outline: 0;
}
.cpgc input.cpgc-q {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--cpgc-ink);
	flex: 1 1 auto;
	font: inherit;
	font-size: 16px;
	height: 100%;
	margin: 0;
	max-width: none;
	min-width: 0;
	outline: 0;
	padding: 0;
	width: 100%;
}
.cpgc input.cpgc-q::placeholder {
	color: #7b818c;
	opacity: 1;
}
.cpgc input.cpgc-q::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.cpgc .cpgc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 2px 0;
}
.cpgc .cpgc-chips .cpgc-chip {
	align-items: center;
	background: var(--cpgc-soft);
	border-radius: 999px;
	color: var(--cpgc-ink);
	display: inline-flex;
	font-size: 15px;
	font-weight: 500;
	gap: 8px;
	line-height: 1;
	min-height: 44px;
	padding: 0 20px;
	transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
	white-space: nowrap;
}
.cpgc .cpgc-chips .cpgc-chip:hover {
	box-shadow: inset 0 0 0 1px #cfccc5;
}
.cpgc .cpgc-chips .cpgc-chip[aria-pressed="true"] {
	background: var(--cpgc-accent);
	box-shadow: 0 8px 18px -10px var(--cpgc-accent);
	color: #fff;
}
.cpgc .cpgc-status {
	color: var(--cpgc-muted);
	font-size: 14px;
	margin: 14px 2px 12px;
	min-height: 20px;
}

.cpgc ul.cpgc-grid {
	display: grid;
	gap: 14px 10px;
	grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
	list-style: none !important;
	margin: 0 -6px !important;
	padding: 0 !important;
}
.cpgc ul.cpgc-grid > li {
	contain-intrinsic-size: auto 160px;
	content-visibility: auto;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.cpgc ul.cpgc-grid > li::before,
.cpgc ul.cpgc-grid > li::marker {
	content: none;
}
.cpgc .cpgc-grid button {
	background: transparent;
	border: 1.5px solid transparent;
	border-radius: 20px;
	display: block;
	padding: 6px 6px 10px;
	position: relative;
	transition: background-color 0.15s, box-shadow 0.15s, border-color 0.15s;
	width: 100%;
}
.cpgc .cpgc-grid button > i {
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px rgba(20, 25, 40, 0.07), 0 10px 20px -14px rgba(20, 25, 40, 0.35);
	display: block;
	height: 0;
	padding-top: 56%;
	width: 100%;
}
.cpgc .cpgc-grid .cpgc-lb {
	color: var(--cpgc-ink);
	display: block;
	font-size: 15px;
	line-height: 1.3;
	overflow-wrap: anywhere;
	padding: 10px 6px 0;
}
.cpgc .cpgc-grid .cpgc-lb b {
	font-weight: 600;
}
.cpgc .cpgc-grid .cpgc-lb span {
	font-weight: 400;
}
.cpgc .cpgc-grid button:hover,
.cpgc .cpgc-grid button.is-current {
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 25, 40, 0.06), 0 14px 30px -16px rgba(20, 25, 40, 0.3);
}
.cpgc .cpgc-grid button.is-current {
	border-color: var(--cpgc-accent);
}
/* The colour the visitor came back from ("See all colours"). */
.cpgc .cpgc-grid button.is-flash {
	animation: cpgc-flash 0.9s ease-out 2;
}
@keyframes cpgc-flash {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cpgc-accent) 45%, transparent), 0 14px 30px -16px rgba(20, 25, 40, 0.3); }
	100% { box-shadow: 0 0 0 14px transparent, 0 14px 30px -16px rgba(20, 25, 40, 0.3); }
}
.cpgc .cpgc-grid button.is-fav::after {
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.4-7.5-10A4.3 4.3 0 0 1 12 8a4.3 4.3 0 0 1 7.5 2.5c0 5.6-7.5 10-7.5 10Z' fill='%23c0392b'/%3E%3C/svg%3E") center / 16px no-repeat;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(20, 25, 40, 0.2);
	content: "";
	height: 28px;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 28px;
}
.cpgc .cpgc-empty {
	background: var(--cpgc-soft);
	border-radius: 20px;
	color: var(--cpgc-muted);
	font-size: 17px;
	padding: 44px 20px;
	text-align: center;
}
.cpgc .cpgc-empty .cpgc-reset {
	background: var(--cpgc-accent);
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-size: 15px;
	font-weight: 500;
	margin-top: 16px;
	padding: 12px 22px;
}
/* Colour note (Settings / chart): an info box, plain text, line breaks kept. */
.cpgc .cpgc-note {
	align-items: flex-start;
	background: #f1f5f2;
	background: color-mix(in srgb, var(--cpgc-accent) 7%, #fff);
	border-radius: 14px;
	color: var(--cpgc-ink);
	display: flex;
	font-size: 14px;
	gap: 10px;
	line-height: 1.5;
	margin: 26px auto 0;
	max-width: 780px;
	padding: 12px 16px;
}
.cpgc .cpgc-note svg {
	color: var(--cpgc-accent);
	flex: none;
	margin-top: 1px;
}
.cpgc .cpgc-note p {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: pre-line;
}
.cpgc-up.cpgc-up {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	align-items: center;
	background: var(--cpgc-accent);
	border-radius: 50%;
	bottom: 20px;
	box-shadow: 0 10px 24px -8px rgba(20, 25, 40, 0.5);
	color: #fff;
	display: flex;
	height: 52px;
	justify-content: center;
	position: fixed;
	right: 20px;
	width: 52px;
	z-index: 900;
}
.cpgc-up.cpgc-up--raised {
	bottom: 84px;
}

/* ---------- "Choose a colour to compare" bar ---------- */
.cpgc-pick {
	align-items: center;
	background: var(--cpgc-ink);
	border-radius: 18px;
	bottom: 18px;
	box-shadow: 0 16px 40px -12px rgba(20, 25, 40, 0.6);
	color: #fff;
	display: flex;
	font-size: 15px;
	gap: 14px;
	left: 50%;
	max-width: calc(100vw - 24px);
	padding: 12px 12px 12px 18px;
	position: fixed;
	transform: translateX(-50%);
	width: max-content;
	z-index: 99990;
}
.cpgc-pick i {
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	flex: none;
	height: 28px;
	width: 28px;
}
.cpgc-pick button {
	background: rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	flex: none;
	font-weight: 500;
	padding: 9px 14px;
}

/* ---------- Detail window ---------- */
.cpgc-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 999999;
}
.cpgc-modal .cpgc-backdrop {
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	background: rgba(20, 24, 32, 0.55);
	inset: 0;
	position: absolute;
}
.cpgc-modal .cpgc-dialog {
	animation: cpgc-in 0.22s ease-out;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 40px 90px -30px rgba(10, 14, 22, 0.6);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	max-width: 1120px;
	outline: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}
@keyframes cpgc-in {
	from { opacity: 0; transform: translateY(14px) scale(0.985); }
	to { opacity: 1; transform: none; }
}
.cpgc-modal .cpgc-mhead {
	align-items: center;
	border-bottom: 1px solid var(--cpgc-line);
	display: flex;
	flex: none;
	gap: 14px;
	min-height: 68px;
	padding: 10px 16px 10px 20px;
}
.cpgc-modal .cpgc-nav {
	display: flex;
	flex: none;
	gap: 6px;
}
.cpgc-modal .cpgc-ib,
.cpgc-modal .cpgc-x {
	align-items: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--cpgc-line);
	display: flex;
	flex: none;
	height: 44px;
	justify-content: center;
	transition: background-color 0.15s;
	width: 44px;
}
.cpgc-modal .cpgc-ib:hover,
.cpgc-modal .cpgc-x:hover,
.cpgc-modal .cpgc-tb:hover {
	background: var(--cpgc-soft);
}
.cpgc-modal .cpgc-crumb {
	color: var(--cpgc-muted);
	flex: 1 1 auto;
	font-size: 15px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cpgc-modal .cpgc-crumb b {
	color: var(--cpgc-ink);
	font-weight: 600;
}
.cpgc-modal .cpgc-acts {
	align-items: center;
	display: flex;
	flex: none;
	gap: 4px;
}
.cpgc-modal .cpgc-tb {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 15px;
	font-weight: 500;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	white-space: nowrap;
}
.cpgc-modal .cpgc-tb[aria-pressed="true"] svg path {
	fill: #c0392b;
	stroke: #c0392b;
}
.cpgc-modal .cpgc-x {
	box-shadow: 0 2px 10px rgba(20, 25, 40, 0.14);
	margin-left: 8px;
}
.cpgc-modal .cpgc-mbody {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.cpgc-modal .cpgc-detail {
	display: grid;
	grid-template-areas: "info stage" "more more" "tip tip";
	grid-template-columns: 372px minmax(0, 1fr);
}
.cpgc-modal .cpgc-info {
	grid-area: info;
	padding: 30px 30px 26px 32px;
}
.cpgc-modal .cpgc-big {
	background-color: var(--cpgc-c);
	border-radius: 22px;
	box-shadow: inset 0 0 0 1px rgba(20, 25, 40, 0.07);
	height: 0;
	padding-top: 70%;
}
.cpgc-modal .cpgc-name {
	color: var(--cpgc-ink);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
	margin-top: 24px;
	overflow-wrap: anywhere;
}
.cpgc-modal .cpgc-name b {
	font-weight: 600;
}
.cpgc-modal .cpgc-desc {
	color: var(--cpgc-muted);
	font-size: 17px;
	line-height: 1.45;
	margin-top: 10px;
}
.cpgc-modal .cpgc-cta {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}
.cpgc-modal .cpgc-cta:empty {
	display: none;
}
.cpgc-modal a.cpgc-btn {
	align-items: center;
	background: var(--cpgc-accent);
	border-radius: 999px;
	box-shadow: 0 12px 24px -14px var(--cpgc-accent);
	color: #fff;
	display: flex;
	font-size: 16px;
	font-weight: 500;
	gap: 12px;
	min-height: 54px;
	padding: 0 24px;
	text-decoration: none;
}
.cpgc-modal a.cpgc-btn--ghost {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cpgc-line), 0 6px 16px -12px rgba(20, 25, 40, 0.3);
	color: var(--cpgc-ink);
}
.cpgc-modal a.cpgc-btn svg:last-child {
	margin-left: auto;
}
.cpgc-modal .cpgc-special {
	background: #fbf5e6;
	border-radius: 14px;
	color: #5f4b16;
	font-size: 14px;
	line-height: 1.45;
	margin-top: 18px;
	padding: 12px 14px;
}

.cpgc-modal .cpgc-stage {
	background-color: var(--cpgc-soft);
	grid-area: stage;
	min-height: 440px;
	overflow: hidden;
	position: relative;
}
.cpgc-modal .cpgc-scene {
	inset: 0;
	position: absolute;
}
.cpgc-modal .cpgc-scene > svg {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
/* Sample card: shown at once, and whenever there is no scene (universal charts, effect colours). */
.cpgc-modal .cpgc-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 60px -30px rgba(20, 25, 40, 0.5), 0 2px 6px rgba(20, 25, 40, 0.08);
	left: 50%;
	padding: 14px 14px 18px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-3deg);
	width: min(58%, 340px);
}
.cpgc-modal .cpgc-card i {
	background-color: var(--cpgc-c);
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px rgba(20, 25, 40, 0.07);
	display: block;
	height: 0;
	padding-top: 118%;
}
.cpgc-modal .cpgc-card span {
	display: block;
	font-size: 17px;
	font-weight: 600;
	overflow-wrap: anywhere;
	padding: 14px 4px 0;
}
/*
 * Light (representative): applies to the whole photo – room, furniture and painted surface
 * alike – never to the colour swatches. Daylight = the photo as it is; overcast = softer,
 * less contrast, slightly cooler and darker; evening = warmer and dimmer, with darker edges.
 */
.cpgc-modal .cpgc-scene {
	transition: filter 0.35s ease;
}
.cpgc-modal .cpgc-scene::before,
.cpgc-modal .cpgc-scene::after {
	content: "";
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.35s ease;
	z-index: 2;
}
.cpgc-modal .cpgc-stage[data-light="cloud"] .cpgc-scene {
	filter: brightness(0.97) contrast(0.86) saturate(0.84);
}
.cpgc-modal .cpgc-stage[data-light="cloud"] .cpgc-scene::after {
	mix-blend-mode: multiply; /* Only while this light is on: no blending cost in daylight. */
	background: linear-gradient(180deg, #d5dde8 0%, #e2e6ea 100%);
	opacity: 0.6;
}
.cpgc-modal .cpgc-stage[data-light="eve"] .cpgc-scene {
	filter: brightness(0.9) contrast(0.95) saturate(0.96);
}
.cpgc-modal .cpgc-stage[data-light="eve"] .cpgc-scene::after {
	mix-blend-mode: multiply; /* Only while this light is on: no blending cost in daylight. */
	background: linear-gradient(200deg, #ffe6c8 0%, #f3cfa6 100%);
	opacity: 0.6;
}
.cpgc-modal .cpgc-stage[data-light="eve"] .cpgc-scene::before {
	mix-blend-mode: multiply; /* Only while this light is on: no blending cost in daylight. */
	background: radial-gradient(ellipse 85% 80% at 50% 40%, transparent 55%, #b9a48f 100%);
	opacity: 0.55;
}
.cpgc-modal .cpgc-sarrow {
	align-items: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(20, 25, 40, 0.25);
	display: flex;
	height: 46px;
	justify-content: center;
	margin-top: -23px;
	position: absolute;
	right: 18px;
	top: 50%;
	width: 46px;
	z-index: 2;
}
.cpgc-modal .cpgc-sarrow[data-act="scene-prev"] {
	right: 74px;
}
.cpgc-modal .cpgc-scap {
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	background: rgba(255, 255, 255, 0.88);
	border-radius: 999px;
	bottom: 16px;
	color: var(--cpgc-ink);
	font-size: 13px;
	font-weight: 500;
	left: 16px;
	padding: 7px 14px;
	position: absolute;
	z-index: 2;
}
.cpgc-modal .cpgc-dots {
	bottom: 22px;
	display: flex;
	gap: 8px;
	position: absolute;
	right: 22px;
	z-index: 2;
}
.cpgc-modal .cpgc-dots i {
	background: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(20, 25, 40, 0.3);
	height: 9px;
	width: 9px;
}
.cpgc-modal .cpgc-dots i.is-on {
	background: var(--cpgc-accent);
}

.cpgc-modal .cpgc-more {
	display: grid;
	gap: 0 32px;
	grid-area: more;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 28px 32px 8px;
}
.cpgc-modal .cpgc-more h4 {
	color: var(--cpgc-ink);
	display: inline;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.cpgc-modal .cpgc-more .cpgc-hsub {
	color: var(--cpgc-muted);
	display: inline;
	font-size: 14px;
	margin-left: 12px;
}
.cpgc-modal .cpgc-simlist {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	margin-top: 16px;
}
.cpgc-modal .cpgc-simlist button {
	border-radius: 16px;
	display: block;
}
.cpgc-modal .cpgc-simlist i {
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px rgba(20, 25, 40, 0.07);
	display: block;
	height: 0;
	padding-top: 56%;
}
.cpgc-modal .cpgc-simlist span {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	overflow-wrap: anywhere;
	padding: 8px 4px 0;
}
.cpgc-modal .cpgc-simlist b {
	display: block;
	font-weight: 600;
}
.cpgc-modal .cpgc-light {
	border-left: 1px solid var(--cpgc-line);
	padding-left: 32px;
}
/* "See all colours in this chart (X)": back to the whole chart, no second scroll area. */
.cpgc-modal .cpgc-all {
	align-items: center;
	background: var(--cpgc-soft);
	border-radius: 999px;
	display: inline-flex;
	font-size: 15px;
	font-weight: 500;
	gap: 10px;
	margin-top: 18px;
	min-height: 46px;
	padding: 0 20px;
	transition: background-color 0.15s, box-shadow 0.15s;
}
.cpgc-modal .cpgc-all:hover {
	box-shadow: inset 0 0 0 1px #cfccc5;
}
.cpgc-modal .cpgc-all svg {
	height: 18px;
	width: 18px;
}
.cpgc-modal .cpgc-lights {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.cpgc-modal .cpgc-lights button {
	align-items: center;
	background: var(--cpgc-soft);
	border-radius: 999px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
}
.cpgc-modal .cpgc-lights button[aria-pressed="true"] {
	background: var(--cpgc-ink);
	color: #fff;
}
.cpgc-modal .cpgc-tip {
	align-items: flex-start;
	background: #f1f5f2;
	border-radius: 18px;
	color: #3c4a44;
	display: flex;
	font-size: 14px;
	gap: 12px;
	grid-area: tip;
	line-height: 1.5;
	margin: 22px 32px 30px;
	padding: 16px 20px;
}
.cpgc-modal .cpgc-tip svg {
	color: var(--cpgc-accent);
	margin-top: 1px;
}
.cpgc-modal .cpgc-foot {
	display: none;
}

/* Compare */
.cpgc-modal .cpgc-cmp {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: min(620px, calc(100vh - 140px));
}
.cpgc-modal .cpgc-cmp > div {
	background-color: var(--cpgc-c);
	box-shadow: inset 0 0 0 1px rgba(20, 25, 40, 0.05);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
}
.cpgc-modal .cpgc-cmp p {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 24px -14px rgba(20, 25, 40, 0.45);
	font-size: 18px;
	font-weight: 600;
	overflow-wrap: anywhere;
	padding: 14px 18px;
}
.cpgc-modal .cpgc-toast {
	background: var(--cpgc-ink);
	border-radius: 12px;
	bottom: 28px;
	color: #fff;
	font-size: 14px;
	left: 50%;
	opacity: 0;
	padding: 10px 16px;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	transition: opacity 0.2s;
	z-index: 5;
}
.cpgc-modal .cpgc-toast.is-on {
	opacity: 1;
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.cpgc-modal .cpgc-detail {
		grid-template-columns: 300px minmax(0, 1fr);
	}
	.cpgc-modal .cpgc-info {
		padding: 24px 22px 22px 24px;
	}
	.cpgc-modal .cpgc-name {
		font-size: 27px;
	}
	.cpgc-modal .cpgc-stage {
		min-height: 380px;
	}
	.cpgc-modal .cpgc-tb span {
		display: none;
	}
	.cpgc-modal .cpgc-tb {
		justify-content: center;
		padding: 0;
		width: 44px;
	}
	.cpgc-modal .cpgc-more {
		grid-template-columns: minmax(0, 1fr);
		padding: 24px 24px 4px;
	}
	.cpgc-modal .cpgc-light {
		border-left: 0;
		border-top: 1px solid var(--cpgc-line);
		margin-top: 22px;
		padding: 20px 0 0;
	}
	.cpgc-modal .cpgc-tip {
		margin: 20px 24px 26px;
	}
}

/* ---------- Narrow chart: phones and narrow theme columns ---------- */
@container cpgc (max-width: 1000px) {
	.cpgc ul.cpgc-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
}
@container cpgc (max-width: 720px) {
	.cpgc--hero .cpgc-head {
		border-radius: 22px;
		display: flex;
		flex-direction: column-reverse;
		min-height: 0;
	}
	.cpgc .cpgc-intro {
		padding: 22px 18px 22px;
	}
	.cpgc .cpgc-sub {
		font-size: 16px;
		margin: 8px 0 18px;
	}
	.cpgc .cpgc-art {
		border-radius: 0 0 50% 50% / 0 0 26px 26px;
		height: 168px;
		min-height: 0;
	}
	.cpgc .cpgc-art--fan > span {
		bottom: -40px;
		height: 96%;
		width: 22%;
	}
	.cpgc .cpgc-search {
		height: 52px;
		max-width: none;
	}
	.cpgc .cpgc-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 2px 2px 6px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.cpgc .cpgc-chips::-webkit-scrollbar {
		display: none;
	}
	.cpgc ul.cpgc-grid {
		gap: 8px 4px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cpgc .cpgc-grid .cpgc-lb {
		font-size: 14px;
		padding: 8px 4px 0;
	}
}
@container cpgc (min-width: 440px) and (max-width: 720px) {
	.cpgc ul.cpgc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
/* Browsers without container queries: the same rules by screen width. */
@supports not (container-type: inline-size) {
	@media (max-width: 720px) {
		.cpgc--hero .cpgc-head {
			border-radius: 22px;
			display: flex;
			flex-direction: column-reverse;
			min-height: 0;
		}
		.cpgc .cpgc-intro {
			padding: 22px 18px 22px;
		}
		.cpgc .cpgc-sub {
			font-size: 16px;
			margin: 8px 0 18px;
		}
		.cpgc .cpgc-art {
			border-radius: 0 0 50% 50% / 0 0 26px 26px;
			height: 168px;
			min-height: 0;
		}
		.cpgc .cpgc-art--fan > span {
			bottom: -40px;
			height: 96%;
			width: 22%;
		}
		.cpgc .cpgc-search {
			height: 52px;
			max-width: none;
		}
		.cpgc .cpgc-chips {
			flex-wrap: nowrap;
			overflow-x: auto;
			padding: 2px 2px 6px;
			scrollbar-width: none;
			-webkit-overflow-scrolling: touch;
		}
		.cpgc .cpgc-chips::-webkit-scrollbar {
			display: none;
		}
		.cpgc ul.cpgc-grid {
			gap: 8px 4px;
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
		.cpgc .cpgc-grid .cpgc-lb {
			font-size: 14px;
			padding: 8px 4px 0;
		}
	}
	@media (min-width: 480px) and (max-width: 720px) {
		.cpgc ul.cpgc-grid {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}
	}
}

/* ---------- Phone: a full-screen sheet, not a shrunken desktop window ---------- */
@media (max-width: 720px) {
	.cpgc-modal {
		padding: 0;
	}
	.cpgc-modal .cpgc-dialog {
		animation-name: cpgc-up;
		border-radius: 0;
		height: 100%;
		max-height: none;
		max-width: none;
	}
	@keyframes cpgc-up {
		from { opacity: 0; transform: translateY(24px); }
		to { opacity: 1; transform: none; }
	}
	.cpgc-modal .cpgc-mhead {
		gap: 8px;
		min-height: 60px;
		padding: 8px 10px 8px 14px;
	}
	.cpgc-modal .cpgc-nav {
		display: none;
	}
	.cpgc-modal .cpgc-crumb {
		font-size: 14px;
	}
	.cpgc-modal .cpgc-crumb .cpgc-crumb-chart,
	.cpgc-modal .cpgc-crumb .cpgc-crumb-sep {
		display: none;
	}
	.cpgc-modal .cpgc-acts {
		gap: 0;
	}
	.cpgc-modal .cpgc-x {
		margin-left: 4px;
	}
	.cpgc-modal .cpgc-detail {
		display: block;
	}
	.cpgc-modal .cpgc-stage {
		height: 0;
		min-height: 0;
		padding-top: 75%;
	}
	.cpgc-modal .cpgc-info {
		display: grid;
		gap: 0 16px;
		grid-template-columns: 84px minmax(0, 1fr);
		padding: 20px 18px 6px;
	}
	.cpgc-modal .cpgc-big {
		align-self: start;
		border-radius: 18px;
		grid-row: span 2;
		height: 84px;
		padding: 0;
	}
	.cpgc-modal .cpgc-name {
		font-size: 24px;
		margin-top: 2px;
	}
	.cpgc-modal .cpgc-desc {
		font-size: 15px;
		margin-top: 6px;
	}
	.cpgc-modal .cpgc-cta,
	.cpgc-modal .cpgc-special {
		grid-column: 1 / -1;
	}
	.cpgc-modal .cpgc-more {
		padding: 22px 18px 0;
	}
	.cpgc-modal .cpgc-more .cpgc-hsub {
		display: block;
		margin: 4px 0 0;
	}
	.cpgc-modal .cpgc-simlist {
		grid-auto-columns: 128px;
		grid-auto-flow: column;
		grid-template-columns: none;
		margin: 14px -18px 0;
		overflow-x: auto;
		padding: 0 18px 6px;
		scrollbar-width: none;
	}
	.cpgc-modal .cpgc-simlist::-webkit-scrollbar {
		display: none;
	}
	.cpgc-modal .cpgc-all {
		justify-content: center;
		width: 100%;
	}
	.cpgc-modal .cpgc-tip {
		margin: 20px 18px 22px;
	}
	.cpgc-modal .cpgc-foot {
		border-top: 1px solid var(--cpgc-line);
		display: grid;
		flex: none;
		gap: 10px;
		grid-template-columns: 1fr 1fr;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
	}
	.cpgc-modal .cpgc-foot button {
		align-items: center;
		background: var(--cpgc-soft);
		border-radius: 14px;
		display: flex;
		font-size: 15px;
		font-weight: 500;
		gap: 6px;
		justify-content: center;
		min-height: 48px;
	}
	.cpgc-modal .cpgc-cmp {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr 1fr;
		min-height: 100%;
	}
	.cpgc-modal .cpgc-mbody.is-cmp {
		display: flex;
		flex-direction: column;
	}
	.cpgc-modal .cpgc-mbody.is-cmp .cpgc-cmp {
		flex: 1 1 auto;
	}
	.cpgc-pick {
		font-size: 14px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cpgc *,
	.cpgc-modal * {
		animation: none !important;
		transition: none !important;
	}
}
@media print {
	.cpgc .cpgc-search,
	.cpgc .cpgc-chips,
	.cpgc-up,
	.cpgc-pick,
	.cpgc-modal {
		display: none !important;
	}
	.cpgc ul.cpgc-grid > li {
		content-visibility: visible;
	}
}

/* ---------- 4.1: tools, favourites → projects, products, texture ---------- */

.cpgc .cpgc-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.cpgc .cpgc-finder,
.cpgc .cpgc-pdf {
	align-items: center;
	background: #fff;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--cpgc-line);
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	transition: box-shadow 0.15s;
}
.cpgc .cpgc-finder:hover,
.cpgc .cpgc-pdf:hover {
	box-shadow: inset 0 0 0 1px #cfccc5;
}
.cpgc a.cpgc-pdf,
.cpgc a.cpgc-pdf:hover,
.cpgc a.cpgc-pdf:focus {
	color: var(--cpgc-ink);
	line-height: 1.2;
	text-decoration: none;
}
.cpgc .cpgc-toolmsg {
	color: #b3261e;
	flex-basis: 100%;
	font-size: 14px;
	line-height: 1.4;
	margin: 2px 0 0;
}
.cpgc .cpgc-finder svg,
.cpgc .cpgc-pdf svg {
	color: var(--cpgc-accent);
	flex: none;
}
.cpgc .cpgc-finder.is-pending {
	visibility: hidden; /* Space kept (no layout shift); shown by the script. */
}
.cpgc [aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}
.cpgc .cpgc-favbar {
	align-items: center;
	background: var(--cpgc-soft);
	border-radius: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: space-between;
	margin: 14px 0 4px;
	padding: 12px 16px;
}
.cpgc .cpgc-favbar p {
	color: var(--cpgc-muted);
	flex: 1 1 260px;
	font-size: 14px;
	margin: 0;
}
.cpgc .cpgc-favacts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cpgc .cpgc-favbtn {
	align-items: center;
	background: var(--cpgc-accent);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	min-height: 44px;
	padding: 0 18px;
}
.cpgc .cpgc-favbtn--ghost {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cpgc-line);
	color: var(--cpgc-ink);
}
.cpgc .cpgc-favbtn[disabled] {
	cursor: not-allowed;
	opacity: 0.45;
}

.cpgc-modal .cpgc-prods {
	border-top: 1px solid var(--cpgc-line);
	margin-top: 16px;
	padding-top: 8px;
}
.cpgc-modal .cpgc-prodbtn {
	align-items: center;
	display: flex;
	font-size: 15px;
	font-weight: 600;
	gap: 10px;
	min-height: 48px;
	width: 100%;
}
.cpgc-modal .cpgc-prodbtn span {
	flex: 1;
}
.cpgc-modal .cpgc-prodbtn .cpgc-chev {
	transition: transform 0.2s;
}
.cpgc-modal .cpgc-prodbtn[aria-expanded="true"] .cpgc-chev {
	transform: rotate(180deg);
}
.cpgc-modal .cpgc-prodlist {
	display: grid;
	gap: 8px;
	margin: 4px 0 6px;
}
.cpgc-modal a.cpgc-prod {
	all: unset;
	align-items: center;
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px var(--cpgc-line);
	box-sizing: border-box;
	color: var(--cpgc-ink);
	cursor: pointer;
	display: flex;
	gap: 12px;
	padding: 8px 12px 8px 8px;
	transition: box-shadow 0.15s;
}
.cpgc-modal a.cpgc-prod:hover {
	box-shadow: inset 0 0 0 1px #cfccc5;
}
.cpgc-modal a.cpgc-prod:focus-visible {
	outline: 3px solid var(--cpgc-accent);
	outline-offset: 2px;
}
.cpgc-modal .cpgc-prodimg {
	background: var(--cpgc-soft);
	border-radius: 10px;
	flex: none;
	height: 56px;
	overflow: hidden;
	width: 56px;
}
.cpgc-modal .cpgc-prodimg img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.cpgc-modal .cpgc-prodtxt {
	flex: 1;
	font-size: 14px;
	line-height: 1.35;
	min-width: 0;
	overflow-wrap: anywhere;
}
.cpgc-modal .cpgc-prodtxt b {
	display: block;
	font-weight: 600;
}
.cpgc-modal .cpgc-prodtxt small {
	color: var(--cpgc-muted);
	display: block;
	font-size: 12px;
}
.cpgc-modal a.cpgc-prod > svg {
	flex: none;
	height: 18px;
	width: 18px;
}
.cpgc-modal .cpgc-prodmsg {
	color: var(--cpgc-muted);
	font-size: 13px;
	line-height: 1.45;
	margin: 4px 0 0;
}

@media (max-width: 600px) {
	.cpgc .cpgc-favbtn {
		flex: 1 1 auto;
		justify-content: center;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cpgc-modal .cpgc-scene,
	.cpgc-modal .cpgc-scene::before,
	.cpgc-modal .cpgc-scene::after,
	.cpgc-modal .cpgc-prodbtn .cpgc-chev {
		transition: none;
	}
}
@media print {
	.cpgc .cpgc-tools,
	.cpgc .cpgc-favbar {
		display: none;
	}
}

/* ---------- 4.1: colour chip textures (representation; the colour value itself never changes) ---------- */
/* Grey relief tiles (mean 50 % grey) blended into the chip colour; metals/gloss/pearl add light. */
.cpgc-tx-grain-fine { background-image: url(../textures/grain-fine-s.webp), url(../textures/grain-fine.webp); background-size: 128px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-grain-coarse { background-image: url(../textures/grain-coarse-s.webp), url(../textures/grain-coarse.webp); background-size: 150px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-rubber { background-image: url(../textures/rubber-s.webp), url(../textures/rubber.webp); background-size: 160px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-plaster { background-image: url(../textures/plaster-s.webp), url(../textures/plaster.webp); background-size: 220px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-stone { background-image: url(../textures/stone-s.webp), url(../textures/stone.webp); background-size: 160px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-concrete { background-image: url(../textures/concrete-s.webp), url(../textures/concrete.webp); background-size: 200px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-wood { background-image: url(../textures/wood-s.webp), url(../textures/wood.webp); background-size: 220px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-wood-polished {
	background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 38%), url(../textures/wood-polished.webp);
	background-size: auto, 220px;
	background-blend-mode: screen, soft-light;
}
.cpgc-tx-wood-aged { background-image: url(../textures/wood-aged-s.webp), url(../textures/wood-aged.webp); background-size: 220px; background-blend-mode: multiply, soft-light; }
.cpgc-tx-metal {
	background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.18) 100%), url(../textures/metal.webp);
	background-size: auto, 160px;
	background-blend-mode: overlay, soft-light;
}
.cpgc-tx-metal-brushed {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0.16) 55%, rgba(255, 255, 255, 0.16) 100%), url(../textures/metal-brushed.webp);
	background-size: auto, 256px;
	background-blend-mode: overlay, soft-light;
}
.cpgc-tx-metallic {
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.22) 100%), url(../textures/metallic.webp);
	background-size: auto, 110px;
	background-blend-mode: overlay, overlay;
}
.cpgc-tx-chrome {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.15) 36%, rgba(0, 0, 0, 0.4) 50%, rgba(255, 255, 255, 0.45) 63%, rgba(0, 0, 0, 0.22) 100%);
	background-blend-mode: overlay;
}
.cpgc-tx-aluminium {
	background-image: linear-gradient(170deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.12) 100%), url(../textures/aluminium.webp);
	background-size: auto, 200px;
	background-blend-mode: overlay, soft-light;
}
.cpgc-tx-metal-satin {
	background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.1) 100%), url(../textures/metal-satin.webp);
	background-size: auto, 240px;
	background-blend-mode: overlay, soft-light;
}
.cpgc-tx-gloss {
	background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0) 46%);
	background-blend-mode: screen;
}
.cpgc-tx-pearl {
	background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 40%), linear-gradient(115deg, rgba(255, 196, 228, 0.32), rgba(196, 255, 236, 0.28) 50%, rgba(200, 208, 255, 0.32)), url(../textures/pearl.webp);
	background-size: auto, auto, 160px;
	background-blend-mode: screen, soft-light, soft-light;
}
.cpgc-tx-glitter { background-image: url(../textures/glitter.webp); background-size: 110px; background-blend-mode: overlay; }
.cpgc-tx-hammered {
	background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.16) 100%), url(../textures/hammered-s.webp), url(../textures/hammered.webp);
	background-size: auto, 140px, 140px;
	background-blend-mode: overlay, multiply, soft-light;
}
.cpgc-tx-ceramic {
	background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 40%), url(../textures/ceramic.webp);
	background-size: auto, 128px;
	background-blend-mode: screen, soft-light;
}
.cpgc-tx-custom { background-image: var(--cpgc-txc); background-size: cover; background-position: center; background-blend-mode: soft-light; }

/*
 * Colour texture on the painted surface of a scene (4.2.2). The textured colour layer sits inside
 * the masked paint layer, so it never leaves the surface, and it is multiplied with the shading of
 * the photo, so light and shadows stay. Tiles are drawn smaller than on the chips (a wall in a
 * photo is metres wide); the layer is enlarged and scaled down so the tiles keep their resolution.
 */
.cpgc-paint > i.cpgc-sctx {
	--cpgc-txs: 0.42;
	height: calc(100% / var(--cpgc-txs));
	transform: scale(var(--cpgc-txs));
	transform-origin: 0 0;
	width: calc(100% / var(--cpgc-txs));
}
.cpgc-paint > i.cpgc-sctx.cpgc-tx-plaster,
.cpgc-paint > i.cpgc-sctx.cpgc-tx-stone,
.cpgc-paint > i.cpgc-sctx.cpgc-tx-concrete {
	--cpgc-txs: 0.5;
}
.cpgc-paint > i.cpgc-sctx.cpgc-tx-wood,
.cpgc-paint > i.cpgc-sctx.cpgc-tx-wood-aged,
.cpgc-paint > i.cpgc-sctx.cpgc-tx-wood-polished {
	--cpgc-txs: 0.62;
}
.cpgc-paint > i.cpgc-sctx.cpgc-tx-wood-polished {
	background-image: url(../textures/wood-polished.webp); /* No gloss sheen on a photo. */
	background-blend-mode: soft-light;
}
.cpgc-paint > i.cpgc-sctx.cpgc-tx-custom {
	--cpgc-txs: 1;
}
@media (max-width: 760px) {
	.cpgc-paint > i.cpgc-sctx {
		--cpgc-txs: 0.3;
	}
	.cpgc-paint > i.cpgc-sctx.cpgc-tx-plaster,
	.cpgc-paint > i.cpgc-sctx.cpgc-tx-stone,
	.cpgc-paint > i.cpgc-sctx.cpgc-tx-concrete {
		--cpgc-txs: 0.36;
	}
	.cpgc-paint > i.cpgc-sctx.cpgc-tx-wood,
	.cpgc-paint > i.cpgc-sctx.cpgc-tx-wood-aged,
	.cpgc-paint > i.cpgc-sctx.cpgc-tx-wood-polished {
		--cpgc-txs: 0.45;
	}
	.cpgc-paint > i.cpgc-sctx.cpgc-tx-custom {
		--cpgc-txs: 1;
	}
}

/*
 * Rendered scenes (4.2.3): the gloss of the paint is its own layer, laid over the coloured surface
 * (screen) inside the mask – shine stays white on every colour, as on real satin paint. These
 * scenes need no extra light for dark colours: their gloss already shows the shape.
 */
.cpgc-paint > img.cpgc-spec {
	mix-blend-mode: screen;
}
.cpgc-paint.cpgc-hasspec::after {
	display: none;
}
