/*
 * Policy - Compass.
 *
 * Read from cp-all-designer css/about-us-policy.css (.pocom, .pocwish), with
 * app.css's .glow, .h-sec and .h-sub.
 *
 * 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-compass {
	--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;
	/* about-us-policy.css .pocom — the full rhythm above, half below where the next band follows */
	padding: var(--custom-rhythm) var(--custom-pad) calc(var(--custom-rhythm) / 2);
	background:
		radial-gradient(120% 88% at 10% 4%, rgba(80, 163, 213, 0.2) 0%, rgba(80, 163, 213, 0) 62%),
		linear-gradient(168deg, var(--custom-pocom-a, #E3F1FA) 0%, #EFF7FC 34%, #F7FBFE 66%, var(--custom-pocom-d, #FFFFFF) 100%);
}

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

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

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

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

.custom-policy-compass__head {
	max-width: 720px;
	margin: 0 auto var(--custom-gap);
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
}

.custom-policy-compass__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-compass__title strong { font-weight: 700; }

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

.custom-policy-compass__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-compass [data-custom-sweep-ghost] em::after { opacity: 0.12; }

.custom-policy-compass__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-compass__title { font-size: clamp(22px, calc(6.2 * var(--custom-vwu)), 56px); }
	.custom-policy-compass__intro { margin-top: 14px; font-size: 14px; line-height: 1.5; }
}

.custom-policy-compass__sky {
	position: absolute;
	inset: 0 0 auto;
	z-index: 0;
	height: 62%;
	opacity: 0.5;
	pointer-events: none;
}

/* app.css:339-341 .glow */
.custom-policy-compass__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(6px);
	pointer-events: none;
}

.custom-policy-compass__glow--blue {
	top: -260px;
	left: -180px;
	width: 720px;
	height: 720px;
	background: radial-gradient(circle, rgba(80, 163, 213, 0.1) 0%, transparent 70%);
}

.custom-policy-compass__glow--green {
	top: 40px;
	right: -220px;
	width: 620px;
	height: 620px;
	background: radial-gradient(circle, rgba(92, 161, 63, 0.09) 0%, transparent 70%);
}

.custom-policy-compass__inner {
	position: relative;
	z-index: 2;
}

.custom-policy-compass__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
	gap: var(--custom-pair-gap);
	align-items: center;
	margin-top: clamp(24px, calc(3 * var(--custom-vwu)), 48px);
}

.custom-policy-compass__media {
	position: relative;
	z-index: 1;
	aspect-ratio: 5 / 4;
}

.custom-policy-compass__shot {
	position: absolute;
	margin: 0;
	overflow: hidden;
	border-radius: var(--custom-curl) 0 var(--custom-curl) 0;
	background: #E8F4FB;
	box-shadow: var(--custom-sh);
}

.custom-policy-compass__shot img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.custom-policy-compass__shot--a { left: 0; top: 0; width: 73%; height: 74%; }

.custom-policy-compass__shot--b {
	right: 0;
	bottom: 0;
	width: 56%;
	height: 54%;
	border: 6px solid #FFFFFF;
	border-radius: var(--custom-curl-sm) 0 var(--custom-curl-sm) 0;
	box-shadow: var(--custom-sh-lg);
}

.custom-policy-compass__shot.is-empty {
	background: linear-gradient(150deg, #F0F9FD 0%, #CCDAF2 100%);
}

.custom-policy-compass__copy {
	position: relative;
	z-index: 3;
	text-align: left;
	font-size: 16px;
	line-height: 1.6;
}

.custom-policy-compass__logo {
	display: block;
	width: clamp(120px, calc(11 * var(--custom-vwu)), 158px);
	max-width: none;
	height: auto;
	margin: 0 0 clamp(20px, calc(2.4 * var(--custom-vwu)), 34px);
}

/* app.css:238 .h-sub, about-us-policy.css .pocom__lbl */
.custom-policy-compass__lbl {
	margin: 0;
	padding: 0;
	font-size: clamp(18px, calc(2.5 * var(--custom-vwu)), 30px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: #16418C;
}

.custom-policy-compass__lbl + .custom-policy-compass__txt { margin-top: 10px; }
.custom-policy-compass__txt + .custom-policy-compass__lbl { margin-top: clamp(22px, calc(2.6 * var(--custom-vwu)), 38px); }

.custom-policy-compass__txt {
	max-width: 560px;
	margin: 0;
	font-size: clamp(16px, calc(1.25 * var(--custom-vwu)), 18px);
	font-weight: 300;
	line-height: 1.8;
	color: #475569;
}

/* the photo band — about-us-policy.css .pocwish */
.custom-policy-compass__wish {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(6px, calc(0.8 * var(--custom-vwu)), 12px);
	min-height: clamp(220px, calc(34 * var(--custom-vhu)), 320px);
	margin-top: clamp(40px, calc(5 * var(--custom-vwu)), 80px);
	padding: clamp(32px, calc(4 * var(--custom-vwu)), 56px) clamp(20px, calc(3 * var(--custom-vwu)), 48px);
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--custom-curl) 0 var(--custom-curl) 0;
	background: #0E1E54;
	box-shadow: var(--custom-sh);
	text-align: center;
}

.custom-policy-compass__wish-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.custom-policy-compass__wish-bg img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center 40%;
}

.custom-policy-compass__wish-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(70% 90% at 50% 50%, rgba(14, 30, 84, 0.42) 0%, rgba(14, 30, 84, 0.72) 100%),
		linear-gradient(180deg, rgba(22, 65, 140, 0.35) 0%, rgba(14, 30, 84, 0.55) 100%);
}

.custom-policy-compass__tag {
	margin: 0;
	font-size: clamp(18px, calc(1.7 * var(--custom-vwu)), 24px);
	font-weight: 500;
	line-height: 1.4;
	color: #FFFFFF;
}

/* app.css .h-sec on the band */
.custom-policy-compass__wish-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.04em;
	text-transform: none;
	color: #FFFFFF;
	text-shadow: 0 2px 18px rgba(14, 30, 84, 0.45);
}

@media (max-width: 1024px) {
	.custom-policy-compass__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, calc(4 * var(--custom-vwu)), 56px); }
	.custom-policy-compass__media { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
	.custom-policy-compass__wish-title { font-size: clamp(22px, calc(6.2 * var(--custom-vwu)), 56px); }
}

@media (max-width: 620px) {
	.custom-policy-compass__shot { border-radius: var(--custom-curl-sm) 0 var(--custom-curl-sm) 0; }
	.custom-policy-compass__shot--b { border-width: 4px; border-radius: 20px 0 20px 0; }
	.custom-policy-compass__wish { border-radius: var(--custom-curl-sm) 0 var(--custom-curl-sm) 0; }
}
