.smid-revenue-chart-section {
	padding: var(--mt-section-py, clamp(64px, 7vw, 120px)) 0;
}

.smid-revenue-chart {
	margin: 0;
	color: var(--mt-color-text, #0f223b);
}

.smid-revenue-chart-layout {
	display: grid;
	grid-template-columns: minmax(0, .96fr) minmax(340px, 1fr);
	gap: clamp(42px, 7vw, 112px);
	align-items: center;
}

.smid-revenue-chart-layout--image-left .smid-revenue-chart-layout__media {
	order: -1;
}

.smid-revenue-chart-layout__media {
	overflow: hidden;
	border-radius: var(--mt-radius-sm, 5px);
}

.smid-revenue-chart-layout__image {
	display: block;
	width: 100%;
	aspect-ratio: 1.3 / 1;
	object-fit: cover;
}

.smid-revenue-chart__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
	gap: clamp(28px, 6vw, 96px);
	align-items: end;
	margin-bottom: clamp(26px, 4vw, 58px);
}

.smid-revenue-chart__header h2 {
	margin: 0;
	color: var(--mt-color-heading, #0f223b);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.15;
}

.smid-revenue-chart__intro {
	max-width: 520px;
	color: rgba(15, 34, 59, 0.72);
	font-size: clamp(16px, 1.15vw, 19px);
	line-height: 1.7;
}

.smid-revenue-chart__intro > :first-child {
	margin-top: 0;
}

.smid-revenue-chart__intro > :last-child {
	margin-bottom: 0;
}

.smid-revenue-chart__canvas {
	position: relative;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(15, 34, 59, 0.35) transparent;
}

.smid-revenue-chart__canvas svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.smid-revenue-chart__data-table {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.smid-revenue-chart__grid line {
	stroke: rgba(15, 34, 59, 0.14);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.smid-revenue-chart__grid line.is-axis {
	stroke: rgba(15, 34, 59, 0.82);
}

.smid-revenue-chart__y-label,
.smid-revenue-chart__x-label,
.smid-revenue-chart__axis-label {
	fill: var(--mt-color-text, #0f223b);
	font-family: var(--mt-font-body, inherit);
}

.smid-revenue-chart__y-label {
	font-size: 15px;
	text-anchor: end;
	opacity: 0.78;
}

.smid-revenue-chart__x-label {
	font-size: 15px;
	text-anchor: middle;
	opacity: 0.88;
}

.smid-revenue-chart__x-label.is-hidden-label {
	display: none;
}

.smid-revenue-chart__x-label.is-recent {
	font-weight: 600;
}

.smid-revenue-chart__axis-label {
	font-size: 17px;
	font-style: italic;
	font-weight: 500;
}

.smid-revenue-chart__axis-label--x {
	text-anchor: middle;
}

.smid-revenue-chart__axis-label--y {
	text-anchor: middle;
}

.smid-revenue-chart__area {
	opacity: 0;
	transition: opacity 0.5s ease;
}

.smid-revenue-chart__line {
	fill: none;
	stroke: #3366cc;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.smid-revenue-chart__point {
	fill: #3366cc;
	stroke: #fff;
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
	transition: fill 0.18s ease, stroke 0.18s ease;
}

.smid-revenue-chart__point.is-last {
	fill: var(--mt-color-primary, #b8d000);
	stroke: var(--mt-color-text, #0f223b);
}

.smid-revenue-chart__point-wrap {
	outline: none;
	cursor: pointer;
}

.smid-revenue-chart__point-wrap:hover .smid-revenue-chart__point,
.smid-revenue-chart__point-wrap:focus .smid-revenue-chart__point,
.smid-revenue-chart__point-wrap.is-active .smid-revenue-chart__point {
	fill: var(--mt-color-primary, #b8d000);
	stroke: var(--mt-color-text, #0f223b);
}

.smid-revenue-chart__value {
	fill: var(--mt-color-text, #0f223b);
	font-size: 15px;
	font-weight: 700;
	text-anchor: middle;
	pointer-events: none;
	paint-order: stroke;
	stroke: #fff;
	stroke-width: 5px;
	stroke-linejoin: round;
}

.smid-revenue-chart__value.is-last {
	fill: var(--mt-color-primary, #b8d000);
	font-size: 18px;
}

.smid-revenue-chart__value.is-hover-value {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	transform: translateY(4px) scale(0.94);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.smid-revenue-chart__point-wrap:hover .smid-revenue-chart__value.is-hover-value,
.smid-revenue-chart__point-wrap:focus .smid-revenue-chart__value.is-hover-value,
.smid-revenue-chart__point-wrap.is-active .smid-revenue-chart__value.is-hover-value {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.smid-revenue-chart__tooltip {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.smid-revenue-chart__tooltip rect {
	fill: #ffffff;
	stroke: rgba(15, 34, 59, 0.16);
	stroke-width: 1;
	filter: drop-shadow(0 10px 18px rgba(15, 34, 59, 0.14));
}

.smid-revenue-chart__tooltip text {
	font-family: var(--mt-font-body, inherit);
	text-anchor: middle;
}

.smid-revenue-chart__tooltip-year {
	fill: rgba(15, 34, 59, 0.72);
	font-size: 12px;
	font-weight: 600;
}

.smid-revenue-chart__tooltip-amount {
	fill: var(--mt-color-text, #0f223b);
	font-size: 14px;
	font-weight: 700;
}

.smid-revenue-chart__point-wrap:hover .smid-revenue-chart__tooltip,
.smid-revenue-chart__point-wrap:focus .smid-revenue-chart__tooltip,
.smid-revenue-chart__point-wrap.is-active .smid-revenue-chart__tooltip {
	opacity: 1;
}

.smid-revenue-chart--animated .smid-revenue-chart__line {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.smid-revenue-chart--animated .smid-revenue-chart__point,
.smid-revenue-chart--animated .smid-revenue-chart__value.is-always-visible {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	transform: scale(0.72);
}

.smid-revenue-chart--animated.is-visible .smid-revenue-chart__line {
	animation: smidRevenueLine 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.smid-revenue-chart--animated.is-visible .smid-revenue-chart__area {
	opacity: 1;
	transition-delay: 0.88s;
}

.smid-revenue-chart--animated.is-visible .smid-revenue-chart__point,
.smid-revenue-chart--animated.is-visible .smid-revenue-chart__value.is-always-visible {
	animation: smidRevenuePoint 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: calc(0.45s + (var(--i, 0) * 32ms));
}

@keyframes smidRevenueLine {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes smidRevenuePoint {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 991px) {
	.smid-revenue-chart-section {
		padding-block: clamp(52px, 8vw, 82px);
	}

	.smid-revenue-chart-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.smid-revenue-chart__header {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.smid-revenue-chart__header h2 {
		font-size: 34px;
	}

	.smid-revenue-chart__canvas {
		margin-inline: calc(var(--mitera-container-padding, 24px) * -1);
		padding-inline: var(--mitera-container-padding, 24px);
	}
}

@media (max-width: 767px) {
	.smid-revenue-chart__canvas {
		overflow-x: hidden;
	}

	.smid-revenue-chart__y-label,
	.smid-revenue-chart__x-label {
		font-size: 17px;
	}

	.smid-revenue-chart__axis-label {
		font-size: 19px;
	}

	.smid-revenue-chart__x-label {
		transform: translateY(0);
	}
}

@media (max-width: 520px) {
	.smid-revenue-chart__x-label {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.smid-revenue-chart--animated .smid-revenue-chart__line,
	.smid-revenue-chart--animated .smid-revenue-chart__point,
	.smid-revenue-chart--animated .smid-revenue-chart__value {
		animation: none !important;
		opacity: 1;
		stroke-dashoffset: 0;
		transform: none;
	}

	.smid-revenue-chart--animated .smid-revenue-chart__area {
		opacity: 1;
	}
}
