/*
 * 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 > i.cpgc-paint,
.cpgc-modal .cpgc-scene > img,
.cpgc-modal .cpgc-scene > i.cpgc-paint {
	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%;
}
/* The paint layer: colour x neutral shading of the photo, only where the mask is opaque. */
.cpgc .cpgc-art > i.cpgc-paint,
.cpgc-modal .cpgc-scene > i.cpgc-paint {
	background-color: var(--cpgc-c);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: cover;
	mask-size: cover;
	mix-blend-mode: multiply;
}
.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;
}
.cpgc .cpgc-note {
	color: var(--cpgc-muted);
	font-size: 13px;
	margin: 26px 0 0;
	text-align: center;
}
.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;
}
.cpgc-modal .cpgc-stage[data-light="cloud"] .cpgc-scene::after,
.cpgc-modal .cpgc-stage[data-light="eve"] .cpgc-scene::after {
	content: "";
	inset: 0;
	mix-blend-mode: multiply;
	pointer-events: none;
	position: absolute;
}
.cpgc-modal .cpgc-stage[data-light="cloud"] .cpgc-scene::after {
	background: #c3cad6;
}
.cpgc-modal .cpgc-stage[data-light="eve"] .cpgc-scene::after {
	background: linear-gradient(200deg, #ffd9a6, #d99a6a);
}
.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;
	}
}
