/*
 * History - Facts.
 *
 * Read from cp-all-designer about-us/about-cp-all/history/ (section history-company, .abhfact) and css/about-us-history.css:31-95, 860-870. 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-facts {
	--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;
	background: #FFFFFF;
	font-size: 16px;
	line-height: 1.6;
}

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

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

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

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

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

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

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

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

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

.custom-history-facts__inner {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

/* about-us-history.css:47-50 */
.custom-history-facts__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: var(--custom-pair-gap);
	align-items: start;
}

.custom-history-facts__lead,
.custom-history-facts__panel {
	min-width: 0;
}

.custom-history-facts__head {
	margin: 0;
}

/* about-us-history.css:52-56 — (มหาชน) in the brand's green */
.custom-history-facts__title {
	margin: 0 0 clamp(18px, calc(2 * var(--custom-vwu)), 26px);
}

.custom-history-facts__title em {
	color: #5CA13F;
}

.custom-history-facts__p {
	max-width: 54ch;
	margin: 0 0 14px;
	font-size: clamp(16px, calc(1.1 * var(--custom-vwu)), 18px);
	font-weight: 300;
	line-height: 1.85;
	letter-spacing: normal;
	color: #475569;
}

.custom-history-facts__p:last-child {
	margin-bottom: 0;
}

/* about-us-history.css:64-88 — a register: lines between the fields only */
.custom-history-facts__panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid #EEF2F7;
}

.custom-history-facts__row {
	min-width: 0;
	margin: 0;
	padding: clamp(16px, calc(1.5 * var(--custom-vwu)), 22px) 0;
	border-bottom: 1px solid #EEF2F7;
}

.custom-history-facts__row:nth-child(odd) {
	padding-right: clamp(16px, calc(1.6 * var(--custom-vwu)), 28px);
}

.custom-history-facts__row:nth-child(even) {
	padding-left: clamp(16px, calc(1.6 * var(--custom-vwu)), 28px);
}

.custom-history-facts__row--wide {
	grid-column: 1 / -1;
	padding-left: 0;
	padding-right: 0;
}

/* a wide row moves the ones after it a column: they keep the design's
   left/right insets by counting from the wide row */
.custom-history-facts__row--wide ~ .custom-history-facts__row:nth-child(odd) {
	padding-left: 0;
}

.custom-history-facts__label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.08em;
	color: #94A3B8;
}

.custom-history-facts__value {
	margin: 0;
	font-size: clamp(16px, calc(1.15 * var(--custom-vwu)), 18px);
	font-weight: 500;
	line-height: 1.6;
	color: #16418C;
}

.custom-history-facts__row--wide .custom-history-facts__value {
	font-weight: 400;
}

.custom-history-facts__value a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(22, 65, 140, 0.28);
	transition: color 0.2s var(--custom-ease), border-color 0.2s var(--custom-ease);
}

.custom-history-facts__value a:hover {
	color: #50A3D5;
	border-bottom-color: #50A3D5;
}

/* app.css:920 .br-lg — the heading's and the paragraph's line breaks are
   the design's large-screen ones */
@media (max-width: 1024px) {
	.custom-history-facts__title br,
	.custom-history-facts__p br { display: none; }
}

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

@media (max-width: 699px) {
	.custom-history-facts__panel { grid-template-columns: minmax(0, 1fr); }
	.custom-history-facts__row,
	.custom-history-facts__row:nth-child(odd),
	.custom-history-facts__row:nth-child(even),
	.custom-history-facts__row--wide {
		grid-column: auto;
		padding-left: 0;
		padding-right: 0;
	}
}

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