/* PSTS Chemical Compatibility — every color is a custom property so Elementor controls can override it. */
.psts-cc {
	--psts-cc-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--psts-cc-a: #15803d;
	--psts-cc-b: #65a30d;
	--psts-cc-c: #d97706;
	--psts-cc-d: #dc2626;
	--psts-cc-none: #94a3b8;
	--psts-cc-heading: #0f2a43;
	--psts-cc-text: #334155;
	--psts-cc-muted: #64748b;
	--psts-cc-border: #dbe3ec;
	--psts-cc-card-bg: #ffffff;
	--psts-cc-soft: #f5f8fb;
	--psts-cc-accent: #1d6fd1;
	--psts-cc-radius: 12px;

	font-family: var(--psts-cc-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--psts-cc-text);
	-webkit-font-smoothing: antialiased;
}

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

.psts-cc a {
	color: var(--psts-cc-accent);
}

/* ---------- Back link ---------- */
.psts-cc__back {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 500;
}

.psts-cc__back a {
	text-decoration: none;
}

.psts-cc__back a:hover,
.psts-cc__back a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Breadcrumbs ---------- */
.psts-cc .psts-cc__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--psts-cc-muted);
}

.psts-cc .psts-cc__crumbs li {
	margin: 0;
	padding: 0;
}

.psts-cc .psts-cc__crumbs li + li::before {
	content: "›";
	margin: 0 8px;
	color: var(--psts-cc-border);
	font-weight: 600;
}

.psts-cc__crumbs a {
	font-weight: 500;
	text-decoration: none;
}

.psts-cc__crumbs a:hover,
.psts-cc__crumbs a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Header ---------- */
.psts-cc__header {
	margin: 0 0 24px;
}

.psts-cc .psts-cc__title {
	margin: 0 0 12px;
	font-family: var(--psts-cc-font);
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--psts-cc-heading);
	text-align: center;
	text-wrap: balance;
}

.psts-cc__suffix {
	display: block;
	margin-top: 6px;
	font-size: 0.5em;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--psts-cc-muted);
}

.psts-cc__info {
	max-width: 75ch;
	color: var(--psts-cc-text);
}

.psts-cc__info > :last-child {
	margin-bottom: 0;
}

/* ---------- At a glance ---------- */
.psts-cc__summary {
	margin: 0 0 20px;
	padding: 18px 22px;
	background: color-mix(in srgb, var(--psts-cc-accent) 6%, var(--psts-cc-card-bg));
	border: 1px solid color-mix(in srgb, var(--psts-cc-accent) 22%, transparent);
	border-radius: var(--psts-cc-radius);
}

.psts-cc .psts-cc__summary-title {
	margin: 0 0 6px;
	font-family: var(--psts-cc-font);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--psts-cc-accent);
}

.psts-cc__summary p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--psts-cc-heading);
}

/* ---------- Legend ---------- */
.psts-cc .psts-cc__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0 0 24px;
	padding: 14px 18px;
	list-style: none;
	font-size: 13px;
	line-height: 1.4;
	background: var(--psts-cc-soft);
	border: 1px solid var(--psts-cc-border);
	border-radius: var(--psts-cc-radius);
}

.psts-cc__legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.psts-cc__legend strong {
	font-weight: 600;
	color: var(--psts-cc-heading);
}

/* ---------- Badges ---------- */
.psts-cc__badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	border-radius: 7px;
	font-variant-numeric: tabular-nums;
}

.psts-cc__badge--a { background: var(--psts-cc-a); }
.psts-cc__badge--b { background: var(--psts-cc-b); }
.psts-cc__badge--c { background: var(--psts-cc-c); }
.psts-cc__badge--d { background: var(--psts-cc-d); }
.psts-cc__badge--none { background: var(--psts-cc-none); }

/* ---------- Grid of section cards ---------- */
.psts-cc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.psts-cc__card {
	padding: 22px 22px 14px;
	background: var(--psts-cc-card-bg);
	border: 1px solid var(--psts-cc-border);
	border-radius: var(--psts-cc-radius);
}

.psts-cc .psts-cc__card-title {
	margin: 0 0 4px;
	font-family: var(--psts-cc-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--psts-cc-heading);
}

.psts-cc__intro {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--psts-cc-muted);
}

/* ---------- Tables ---------- */
.psts-cc .psts-cc__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-family: var(--psts-cc-font);
	font-size: 15px;
	background: transparent;
}

.psts-cc .psts-cc__table th,
.psts-cc .psts-cc__table td {
	padding: 11px 10px;
	text-align: left;
	vertical-align: middle;
	border: 0;
	border-top: 1px solid var(--psts-cc-border);
	background: transparent;
}

.psts-cc .psts-cc__table thead th {
	padding-top: 0;
	padding-bottom: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--psts-cc-muted);
	border-top: 0;
}

.psts-cc .psts-cc__table tbody th {
	font-weight: 600;
	color: var(--psts-cc-heading);
}

.psts-cc .psts-cc__table .psts-cc__rating-col {
	width: 48%;
}

.psts-cc .psts-cc__table .psts-cc__cost-col {
	width: 22%;
	white-space: nowrap;
}

.psts-cc-tint-yes .psts-cc__row--a td,
.psts-cc-tint-yes .psts-cc__row--a th { background: color-mix(in srgb, var(--psts-cc-a) 7%, transparent); }
.psts-cc-tint-yes .psts-cc__row--b td,
.psts-cc-tint-yes .psts-cc__row--b th { background: color-mix(in srgb, var(--psts-cc-b) 7%, transparent); }
.psts-cc-tint-yes .psts-cc__row--c td,
.psts-cc-tint-yes .psts-cc__row--c th { background: color-mix(in srgb, var(--psts-cc-c) 8%, transparent); }
.psts-cc-tint-yes .psts-cc__row--d td,
.psts-cc-tint-yes .psts-cc__row--d th { background: color-mix(in srgb, var(--psts-cc-d) 7%, transparent); }

.psts-cc__rating {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
}

.psts-cc__rating--a .psts-cc__rating-label { color: color-mix(in srgb, var(--psts-cc-a) 85%, #000); }
.psts-cc__rating--b .psts-cc__rating-label { color: color-mix(in srgb, var(--psts-cc-b) 75%, #000); }
.psts-cc__rating--c .psts-cc__rating-label { color: color-mix(in srgb, var(--psts-cc-c) 75%, #000); }
.psts-cc__rating--d .psts-cc__rating-label { color: color-mix(in srgb, var(--psts-cc-d) 85%, #000); }
.psts-cc__rating--none .psts-cc__rating-label { color: var(--psts-cc-muted); font-weight: 500; }

.psts-cc__note {
	display: block;
	margin: 4px 0 0 35px;
	font-size: 13px;
	color: var(--psts-cc-muted);
}

.psts-cc__cost {
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--psts-cc-heading);
}

.psts-cc__cost-dim {
	color: var(--psts-cc-border);
}

.psts-cc__cost-inline {
	display: none;
}

/* ---------- Call to action ---------- */
.psts-cc__cta {
	margin: 24px 0 0;
}

.psts-cc .psts-cc__button {
	display: inline-block;
	padding: 12px 22px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: var(--psts-cc-accent);
	border-radius: var(--psts-cc-radius);
	transition: filter 0.15s ease;
}

.psts-cc .psts-cc__button:hover,
.psts-cc .psts-cc__button:focus-visible {
	color: #fff;
	filter: brightness(1.1);
}

/* ---------- Product links in the resin table ---------- */
.psts-cc .psts-cc__material-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--psts-cc-accent) 45%, transparent);
	text-underline-offset: 3px;
}

.psts-cc .psts-cc__material-link:hover,
.psts-cc .psts-cc__material-link:focus-visible {
	color: var(--psts-cc-accent);
	text-decoration-color: currentColor;
}

/* ---------- Related chemicals ---------- */
.psts-cc__related {
	margin: 28px 0 0;
}

.psts-cc .psts-cc__related-title {
	margin: 0 0 12px;
	font-family: var(--psts-cc-font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--psts-cc-heading);
}

.psts-cc .psts-cc__related ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psts-cc .psts-cc__related li {
	margin: 0;
	padding: 0;
}

.psts-cc .psts-cc__related a {
	display: inline-block;
	padding: 7px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--psts-cc-heading);
	text-decoration: none;
	background: var(--psts-cc-card-bg);
	border: 1px solid var(--psts-cc-border);
	border-radius: 999px;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.psts-cc .psts-cc__related a:hover,
.psts-cc .psts-cc__related a:focus-visible {
	color: var(--psts-cc-accent);
	border-color: var(--psts-cc-accent);
}

/* ---------- Disclaimer ---------- */
.psts-cc__disclaimer {
	margin: 28px 0 0;
	padding: 16px 20px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--psts-cc-text);
	background: color-mix(in srgb, var(--psts-cc-c) 7%, var(--psts-cc-card-bg));
	border: 1px solid color-mix(in srgb, var(--psts-cc-c) 30%, transparent);
	border-left: 4px solid var(--psts-cc-c);
	border-radius: var(--psts-cc-radius);
}

.psts-cc .psts-cc__disclaimer-title {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--psts-cc-heading);
}

.psts-cc__disclaimer p:last-child {
	margin-bottom: 0;
}

/* ---------- Messages ---------- */
.psts-cc__notice {
	padding: 18px 20px;
	background: var(--psts-cc-soft);
	border: 1px dashed var(--psts-cc-border);
	border-radius: var(--psts-cc-radius);
}

.psts-cc--error {
	padding: 12px 16px;
	color: #8a1c1c;
	background: #fdecec;
	border: 1px solid #f3c2c2;
	border-radius: 8px;
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.psts-cc__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.psts-cc__card {
		padding: 18px 16px 10px;
	}

	.psts-cc .psts-cc__legend {
		flex-direction: column;
		gap: 8px;
	}

	.psts-cc .psts-cc__table th,
	.psts-cc .psts-cc__table td {
		padding: 10px 6px;
	}

	/* Resins: fold the cost column under the material name. */
	.psts-cc .psts-cc__table .psts-cc__cost-col {
		display: none;
	}

	.psts-cc__cost-inline {
		display: block;
		margin-top: 2px;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.08em;
		color: var(--psts-cc-muted);
	}

	.psts-cc .psts-cc__table .psts-cc__rating-col {
		width: 55%;
	}
}

/* ---------- Print ---------- */
@media print {
	.psts-cc__back,
	.psts-cc__cta {
		display: none;
	}

	.psts-cc__card {
		break-inside: avoid;
	}

	.psts-cc__badge {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
