/*
 * IPOGMPHub — GMP TREND
 * Premium responsive component
 * Layout: 50% desktop / 100% mobile
 */

/* ---------- Card ---------- */

.ipogmphub-gmp-chart {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: calc(50% - 8px);
	min-width: 0;
	margin: 28px 0;
	padding: 22px;
	background: #fff;
	border: 1px solid #dce7f3;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(35, 75, 125, .055);
	color: var(--ipogmphub-text, #152238);
	overflow: hidden;
	vertical-align: top;
}

/* When Trend follows History */
.ipogmphub-gmp-history + .ipogmphub-gmp-chart {
	margin-left: 12px;
}

/* ---------- Heading ---------- */

.ipogmphub-gmp-chart .ipogmphub-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.ipogmphub-gmp-chart .ipogmphub-eyebrow {
	display: block;
	margin: 0 0 4px;
	color: #1264d8;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.ipogmphub-gmp-chart .ipogmphub-section-heading h2 {
	margin: 0;
	color: #10213d;
	font-size: 23px;
	font-weight: 850;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.ipogmphub-chart-count {
	flex: 0 0 auto;
	margin-top: 4px;
	color: #6b7d95;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}

/* ---------- Chart ---------- */

.ipogmphub-chart-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 245px;
	padding: 4px 0 0;
	overflow: hidden;
}

.ipogmphub-chart-svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.ipogmphub-grid-line {
	stroke: #e9eff6;
	stroke-width: 1;
}

.ipogmphub-y-label,
.ipogmphub-date-label {
	fill: #6b7d95;
	font-size: 10px;
}

.ipogmphub-chart-line {
	stroke: #1769e0;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ipogmphub-chart-area {
	opacity: .9;
}

.ipogmphub-chart-point {
	fill: #fff;
	stroke: #1769e0;
	stroke-width: 2.5;
}

.ipogmphub-chart-point-current {
	r: 5.5;
	stroke-width: 3;
}

.ipogmphub-point-label {
	fill: #10213d;
	font-size: 10px;
	font-weight: 800;
}

.ipogmphub-point-label-current {
	fill: #10213d;
}

/* ---------- Tooltip / supporting content ---------- */

.ipogmphub-chart-tooltip {
	margin-top: 8px;
	padding: 9px 11px;
	background: #f7faff;
	border: 1px solid #dfe8f2;
	border-radius: 10px;
}

/* ---------- Tablet ---------- */

@media (max-width: 980px) and (min-width: 681px) {
	.ipogmphub-gmp-chart {
		padding: 20px;
	}

	.ipogmphub-gmp-chart .ipogmphub-section-heading h2 {
		font-size: 21px;
	}

	.ipogmphub-chart-wrap {
		min-height: 220px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
	.ipogmphub-gmp-chart {
		width: 100%;
		min-height: 0;
		margin: 20px 0;
		padding: 17px 14px;
		border-radius: 15px;
	}

	.ipogmphub-gmp-history + .ipogmphub-gmp-chart {
		margin-left: 0;
	}

	.ipogmphub-gmp-chart .ipogmphub-section-heading {
		margin-bottom: 14px;
	}

	.ipogmphub-gmp-chart .ipogmphub-section-heading h2 {
		font-size: 21px;
	}

	.ipogmphub-chart-wrap {
		min-height: 190px;
		padding-top: 2px;
	}
}

/* ---------- Small mobile ---------- */

@media (max-width: 430px) {
	.ipogmphub-gmp-chart {
		padding: 15px 12px;
	}

	.ipogmphub-gmp-chart .ipogmphub-section-heading h2 {
		font-size: 20px;
	}

	.ipogmphub-chart-count {
		font-size: 10px;
	}
}
