/*
 * Policy - Ethics.
 *
 * Read from cp-all-designer css/about-us-policy.css (.poet, .poec) and the
 * tokens of css/app.css it uses.
 *
 * What the Style tab sets arrives through the widget's selectors; a size
 * left empty there scales with the window the way the design's does,
 * through the two numbers below (app.css:127-128, 2889-2900).
 */

.custom-policy-ethics {
	--custom-vwu: 14.4px;
	--custom-vhu: clamp(5.2px, 1svh, 9px);
	--custom-pad: 90px;
	--custom-rhythm: min(clamp(52px, calc(8.6 * var(--custom-vwu)), 160px), calc(13.7 * var(--custom-vhu)));
	--custom-gap: min(clamp(32px, calc(4.5 * var(--custom-vwu)), 64px), calc(4.4 * var(--custom-vhu)));
	--custom-pair-gap: clamp(28px, calc(3.6 * var(--custom-vwu)), 60px);
	--custom-curl: clamp(56px, calc(6 * var(--custom-vwu)), 96px);
	--custom-curl-sm: clamp(30px, calc(3.2 * var(--custom-vwu)), 50px);
	--custom-sh: 0 18px 44px -14px rgba(22, 65, 140, 0.2);
	--custom-sh-lg: 0 34px 80px -20px rgba(22, 65, 140, 0.3);
	--custom-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	position: relative;
	display: block;
	box-sizing: border-box;
	overflow: hidden;
	/* app.css:385-389 .sec--rhythm, .container --pad */
	padding: var(--custom-rhythm) var(--custom-pad);
	letter-spacing: normal;
	--custom-po-gap: clamp(16px, calc(1.8 * var(--custom-vwu)), 26px);
	background: linear-gradient(180deg, var(--custom-poet-a, #EAF6FD) 0%, var(--custom-poet-b, #F7FBFE) 100%);
}

@media (max-width: 1280px) { .custom-policy-ethics { --custom-vwu: 12.2px; --custom-vhu: clamp(5.2px, 1svh, 8.5px); } }
@media (max-width: 1200px) { .custom-policy-ethics { --custom-vwu: 11.2px; --custom-vhu: clamp(5.2px, 1svh, 8.35px); } }
@media (max-width: 1024px) { .custom-policy-ethics { --custom-vwu: 9.2px; --custom-vhu: clamp(5.2px, 1svh, 8px); --custom-pad: 40px; } }
@media (max-width: 860px)  { .custom-policy-ethics { --custom-vwu: 7.7px; --custom-vhu: clamp(5.2px, 1svh, 7.8px); } }
@media (max-width: 640px)  { .custom-policy-ethics { --custom-vwu: 4.2px; --custom-vhu: clamp(5.2px, 1svh, 7.6px); --custom-pad: 24px; } }
@media (max-width: 380px)  { .custom-policy-ethics { --custom-vwu: 3.6px; --custom-vhu: clamp(5.2px, 1svh, 7.2px); } }

.custom-policy-ethics *,
.custom-policy-ethics *::before,
.custom-policy-ethics *::after {
	box-sizing: border-box;
}

.custom-policy-ethics .nb {
	white-space: nowrap;
}

/* app.css:350-360 .sec — a band shorter than the screen fills it and centres
   its content, above 1024px (app.css:2854 releases the rule below) */
.custom-policy-ethics--fill {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
}

@media (max-width: 1024px) {
	.custom-policy-ethics--fill { min-height: 0; }
}

/* ------------------------------------------------------------------ */
/* The head — app.css:230-252 (.h-sec), 291-294 (.lead), 404           */
/* ------------------------------------------------------------------ */

.custom-policy-ethics__head {
	max-width: none;
	margin: 0 0 var(--custom-gap);
	font-size: 16px;
	line-height: 1.6;
}

.custom-policy-ethics__title {
	margin: 0;
	padding: 0;
	font-size: min(clamp(28px, calc(3.9 * var(--custom-vwu)), 56px), calc(6.2 * var(--custom-vhu)));
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: wrap;
	color: #16418C;
}

.custom-policy-ethics__title strong { font-weight: 700; }

.custom-policy-ethics__title em {
	position: relative;
	display: inline-block;
	font-style: italic;
	font-weight: 700;
	color: #50A3D5;
}

.custom-policy-ethics__title em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.06em;
	height: 0.16em;
	border-radius: 3px;
	background: currentColor;
	opacity: 0.18;
}

.custom-policy-ethics [data-custom-sweep-ghost] em::after { opacity: 0.12; }

.custom-policy-ethics__intro {
	max-width: 870px;
	margin: min(22px, calc(2.4 * var(--custom-vhu))) 0 0;
	font-size: clamp(16px, calc(1.25 * var(--custom-vwu)), 18px);
	font-weight: 400;
	line-height: 1.7;
	color: #475569;
}

@media (max-width: 640px) {
	.custom-policy-ethics__title { font-size: clamp(22px, calc(6.2 * var(--custom-vwu)), 56px); }
	.custom-policy-ethics__intro { margin-top: 14px; font-size: 14px; line-height: 1.5; }
}

.custom-policy-ethics__inner {
	width: 100%;
}

.custom-policy-ethics__intro {
	max-width: none;
}

.custom-policy-ethics__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--custom-po-gap);
}

.custom-policy-ethics__card {
	--custom-accent: #50A3D5;
	position: relative;
	overflow: hidden;
	padding: clamp(28px, calc(2.8 * var(--custom-vwu)), 40px) clamp(24px, calc(2.4 * var(--custom-vwu)), 34px);
	border-radius: 28px;
	background: #FFFFFF;
	box-shadow: 0 4px 16px rgba(22, 65, 140, 0.1);
	font-size: 16px;
	line-height: 1.6;
	transition: transform 0.4s var(--custom-ease), box-shadow 0.4s var(--custom-ease);
}

/* the reveal's own transition gives way to the lift once the card is in */
.custom-policy-ethics__card[data-custom-reveal].is-in {
	transition: opacity 700ms var(--custom-ease), transform 0.4s var(--custom-ease), box-shadow 0.4s var(--custom-ease);
}

.custom-policy-ethics__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px -14px rgba(22, 65, 140, 0.22);
}

.custom-policy-ethics__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--custom-accent) 12%, transparent);
	color: var(--custom-accent);
}

.custom-policy-ethics__ico svg,
.custom-policy-ethics__ico i {
	width: 26px;
	height: 26px;
	font-size: 26px;
	fill: currentColor;
}

.custom-policy-ethics__card-title {
	margin: 0 0 12px;
	padding: 0;
	font-size: clamp(18px, calc(1.5 * var(--custom-vwu)), 22px);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
	color: #16418C;
}

.custom-policy-ethics__p {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.8;
	color: #475569;
}

.custom-policy-ethics__p + .custom-policy-ethics__p {
	margin-top: 14px;
}

@media (max-width: 860px) {
	.custom-policy-ethics__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.custom-policy-ethics__card { transition: none; }
}
