/*
 * History - Meaning.
 *
 * Read from cp-all-designer about-us/about-cp-all/history/ (section history-meaning, .abhmean) and css/about-us-history.css:805-860. What the Style tab sets arrives through
 * the widget's selectors; a size left empty there scales the way the
 * design's does.
 */
.custom-history-meaning {
	--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;
	isolation: isolate;
	color: #FFFFFF;
	background:
		radial-gradient(80% 110% at 10% -12%, rgba(80, 163, 213, 0.24) 0%, rgba(80, 163, 213, 0) 56%),
		radial-gradient(70% 100% at 90% 112%, rgba(206, 41, 41, 0.20) 0%, rgba(206, 41, 41, 0) 58%),
		linear-gradient(112deg, #0E1E54 0%, #10305F 18%, #2D789E 40%, #3A5B2A 68%, #6B170C 100%);
	--custom-sweep-ghost: #50A3D5;
	font-size: 16px;
	line-height: 1.6;
}

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

.custom-history-meaning *,
.custom-history-meaning *::before,
.custom-history-meaning *::after {
	box-sizing: border-box;
}

.custom-history-meaning .nb {
	white-space: nowrap;
}

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

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

.custom-history-meaning__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-history-meaning__title strong { font-weight: 700; }

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

.custom-history-meaning__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-history-meaning [data-custom-sweep-ghost] em::after { opacity: 0.12; }

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

.custom-history-meaning__grain {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.42;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 200px 200px;
	pointer-events: none;
}

.custom-history-meaning__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: calc(1440px - 2 * var(--custom-pad));
	margin: 0 auto;
}

/* about-us-history.css:830-845 — white heading, its highlight bar faint */
.custom-history-meaning__head {
	margin-bottom: clamp(30px, calc(3.4 * var(--custom-vwu)), 54px);
}

.custom-history-meaning__title,
.custom-history-meaning__title em {
	color: #FFFFFF;
}

.custom-history-meaning__title em::after {
	opacity: 0.34;
}

.custom-history-meaning [data-custom-sweep-ghost] em::after {
	opacity: 0.16;
}

.custom-history-meaning__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(26px, calc(3.2 * var(--custom-vwu)), 60px);
}

.custom-history-meaning__item {
	min-width: 0;
	margin: 0;
	padding-top: clamp(18px, calc(2 * var(--custom-vwu)), 26px);
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-history-meaning__tag {
	margin: 0 0 14px;
	font-size: clamp(14px, calc(1.15 * var(--custom-vwu)), 18px);
	font-weight: 700;
	line-height: 1.45;
	color: #FFFFFF;
}

.custom-history-meaning__quote {
	max-width: 46ch;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(14px, calc(1.12 * var(--custom-vwu)), 18px);
	font-style: normal;
	font-weight: 300;
	line-height: 1.95;
	color: rgba(255, 255, 255, 0.92);
	background: none;
}

.custom-history-meaning__quote::before,
.custom-history-meaning__quote::after {
	content: none;
}

@media (max-width: 999px) {
	.custom-history-meaning__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(22px, calc(3.4 * var(--custom-vwu)), 34px);
	}
}

/* the design wraps text plainly; some themes set "pretty" wrapping on
   paragraphs, which moves Thai line breaks */
.custom-history-meaning p,
.custom-history-meaning h2,
.custom-history-meaning h3,
.custom-history-meaning li,
.custom-history-meaning dt,
.custom-history-meaning dd,
.custom-history-meaning span {
	text-wrap: wrap;
	text-rendering: optimizeLegibility;
}
