.crp {
	color: var(--crp-text-color, inherit);
}

.crp-empty,
.crp-result {
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: 2px;
	background: var(--crp-neutral-bg, #f5f1ea);
	height: 100%;
	box-sizing: border-box;
}

.crp-empty p {
	margin: 0;
}

.crp-result__main {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1rem;
	border-radius: 2px;
	background: white;
	border-left: 4px solid var(--crp-item-color, var(--crp-fallback-accent, #c26a2d));
	box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.84);
	height: 100%;
	box-sizing: border-box;
}

.crp-result__icon {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.crp-result__content {
	display: flex;
	flex-direction: column;
}

.crp-result__title,
.crp-also__title {
	margin: 0 0 0.5rem;
	color: inherit;
}

.crp-result__eyebrow {
	margin-bottom: 0.35rem;
	color: inherit;
}

.crp-result__description > :first-child,
.crp-also-item__tooltip > :first-child {
	margin-top: 0;
}

.crp-result__description > :last-child,
.crp-also-item__tooltip > :last-child {
	margin-bottom: 0;
}

.crp-also {
	margin-top: 1rem;
}

.crp-also__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.crp-also-item {
	position: relative;
}

.crp-also-item__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--crp-item-color, var(--crp-fallback-accent, #c26a2d));
	border-radius: 2px;
	background: white;
	color: inherit;
	cursor: pointer;
}

.crp-also-item__icon {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.crp-also-item__tooltip {
	position: absolute;
	left: 0;
	top: calc(100% + 0.5rem);
	z-index: 5;
	width: min(280px, 80vw);
	padding: 0.85rem 1rem;
	border-radius: 2px;
	background: var(--crp-tooltip-bg, #1f2937);
	color: white;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 160ms ease, transform 160ms ease;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.crp-also-item:hover .crp-also-item__tooltip,
.crp-also-item:focus-within .crp-also-item__tooltip,
.crp-also-item__trigger[aria-expanded="true"] + .crp-also-item__tooltip {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.crp-chart-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: 2px;
	background: transparent;
	border: 0;
	height: 100%;
	box-sizing: border-box;
	overflow: visible;
}

.crp-chart {
	flex: 1 1 auto;
	height: 100%;
}

.crp-chart__svg {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	overflow: visible;
}

.crp-chart__circle {
	fill: var(--crp-item-color, var(--crp-fallback-accent, #c26a2d));
	fill-opacity: 0.88;
}

.crp-chart__node {
	cursor: pointer;
	outline: none;
}

.crp-chart__node:focus .crp-chart__circle {
	stroke: var(--crp-text-color, #1f2937);
	stroke-width: 2px;
}

.crp-chart__label {
	fill: white;
	font-size: 20px;
	font-weight: 600;
	font-family: "Open Sans", sans-serif;
	letter-spacing: 0.04em;
}

.crp-chart__label-path {
	fill: none;
	stroke: none;
}

.crp-chart__label-textpath {
	dominant-baseline: middle;
}

.crp-chart__tooltip {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 10;
	min-width: 280px;
	max-width: min(320px, 70vw);
	padding: 15px;
	border-style: solid;
	border-width: 1px 1px 1px 15px;
	border-radius: 2px;
	background: var(--e-global-color-secondary, #3c0f03);
	color: white;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
	pointer-events: none;
	transform: translate(-50%, -100%);
}

.crp-chart__tooltip-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: start;
}

.crp-chart__tooltip-copy {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.crp-chart__tooltip-title,
.crp-chart__tooltip-score {
	margin: 0;
	color: inherit;
}

.crp-chart__tooltip-title {
	font-family: "Publico Headline", Georgia, serif;
	font-size: 28px;
	line-height: 1.1;
}

.crp-chart__tooltip-score {
	font-family: "Aktiv Grotesk", "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 1.35;
}

.crp-chart__tooltip-icon-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	width: 48px;
	flex: 0 0 auto;
	padding: 0.35rem;
	background: var(--e-global-color-accent, #ece7da);
	align-self: start;
	justify-self: end;
}

.crp-chart__tooltip-icon {
	display: block;
	width: 48px;
	height: auto;
	object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
	.crp-also-item__tooltip {
		transition: none;
	}
}

@media (max-width: 680px) {
	.crp-result__main {
		grid-template-columns: 1fr;
	}

	.crp-result__icon {
		width: 56px;
		height: 56px;
	}

	.crp-chart__label {
		font-size: 20px;
	}
}
