/*
 * About - Chart.
 *
 * Read from cp-all-designer css/about-us-organization-chart.css (and its twin,
 * css/about-us-group-structure.css), with app.css's .sec__head, .h-sec, .lead.
 *
 * 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-about-chart {
	--custom-vwu: 14.4px;
	--custom-vhu: clamp(5.2px, 1svh, 9px);
	--custom-pad: 90px;
	position: relative;
	display: block;
	box-sizing: border-box;
	overflow: hidden;
	/* app.css:385-389 .sec--rhythm, .container --pad */
	padding: min(clamp(52px, calc(8.6 * var(--custom-vwu)), 160px), calc(13.7 * var(--custom-vhu))) var(--custom-pad);
	background-color: #FFFFFF;
	letter-spacing: normal;
}

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

.custom-about-chart *,
.custom-about-chart *::before,
.custom-about-chart *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* The head — app.css:230-252, 291-294, 404                            */
/* ------------------------------------------------------------------ */

.custom-about-chart__head {
	margin-bottom: min(clamp(32px, calc(4.5 * var(--custom-vwu)), 64px), calc(4.4 * var(--custom-vhu)));
	font-size: 16px;
	line-height: 1.6;
}

.custom-about-chart__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-wrap: wrap;
}

.custom-about-chart__title strong { font-weight: 700; }

.custom-about-chart__title em {
	position: relative;
	display: inline-block;
	font-style: italic;
	font-weight: 700;
}

.custom-about-chart__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-about-chart [data-custom-sweep-ghost] em::after { opacity: 0.12; }

.custom-about-chart__intro {
	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;
}

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

/* ------------------------------------------------------------------ */
/* The chart — about-us-organization-chart.css:12-38                   */
/* ------------------------------------------------------------------ */

.custom-about-chart__img {
	margin-top: clamp(32px, calc(4 * var(--custom-vwu)), 60px);
}

.custom-about-chart .custom-about-chart__btn {
	position: relative;
	display: block;
	width: 100%;
	max-width: 960px;
	min-height: 0;
	margin: 0 auto;
	padding: 0;
	overflow: hidden;
	border: none;
	border-radius: 14px 0 14px 0;
	background: #FFFFFF;
	box-shadow: none;
	font: inherit;
	line-height: 1.6;
	text-align: left;
	color: inherit;
}

.custom-about-chart button.custom-about-chart__btn {
	cursor: zoom-in;
}

.custom-about-chart .custom-about-chart__btn:hover,
.custom-about-chart .custom-about-chart__btn:focus {
	background: #FFFFFF;
	color: inherit;
}

.custom-about-chart__btn img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
}

.custom-about-chart__hint {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 6px 12px;
	border-radius: 8px;
	background: rgba(14, 30, 84, 0.72);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	color: #FFFFFF;
}

/* no picture yet: a pale brand tile with the chart's name */
.custom-about-chart .custom-about-chart__img.is-empty .custom-about-chart__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background: linear-gradient(158deg, #F0F9FD 0%, #CCDAF2 100%);
	cursor: default;
}

.custom-about-chart__img.is-empty .custom-about-chart__btn::after {
	content: attr(data-empty);
	font-size: 14px;
	font-weight: 500;
	color: #16418C;
}

/* ------------------------------------------------------------------ */
/* The large view — about-us-organization-chart.css:40-71              */
/* ------------------------------------------------------------------ */

.custom-about-chart__light {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(6, 14, 40, 0.92);
}

.custom-about-chart__light[hidden] {
	display: none;
}

.custom-about-chart__scroll {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: clamp(24px, calc(4 * var(--custom-vwu)), 64px);
	overflow: auto;
}

.custom-about-chart__scroll img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100svh - 96px);
	margin: 0;
	border-radius: 8px;
	background: #FFFFFF;
	cursor: zoom-in;
}

.custom-about-chart__scroll img.is-zoomed {
	width: 1800px;
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}

.custom-about-chart .custom-about-chart__close {
	position: fixed;
	top: 32px;
	right: 32px;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	font-size: 18px;
	line-height: 1;
	color: #FFFFFF;
	cursor: pointer;
	transition: background 0.2s;
}

.custom-about-chart .custom-about-chart__close:hover,
.custom-about-chart .custom-about-chart__close:focus {
	background: rgba(255, 255, 255, 0.26);
	color: #FFFFFF;
}
