/* Layout */

.ath-cpp-wrapper {
	width: 100%;
	margin: 0 auto;
}

.ath-cpp-card {
	background: #fff;
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
}

.ath-cpp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 2rem;
	row-gap: 1.5rem;
}

.ath-cpp-col {
	min-width: 0;
}

.ath-cpp-col-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-self: flex-start;
}

.ath-cpp-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ath-cpp-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.ath-cpp-tooltip,
.ath-cpp-field label .ath-cpp-tooltip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 0.35rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	color: #111;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	position: relative;
	flex-shrink: 0;
	text-transform: none;
	letter-spacing: 0;
	font-family: inherit;
	border: 1px solid rgba(0, 0, 0, 0.05);
	vertical-align: middle;
}

.ath-cpp-tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: 140%;
	transform: translateX(-50%) translateY(0);
	min-width: 180px;
	max-width: 260px;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.4;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 20;
}

.ath-cpp-tooltip:not([data-tooltip])::after,
.ath-cpp-tooltip[data-tooltip=""]::after {
	content: attr(aria-label);
}

.ath-cpp-tooltip::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 130%;
	transform: translateX(-50%) translateY(0);
	border-width: 6px 6px 0 6px;
	border-style: solid;
	border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
	opacity: 0;
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 19;
}

.ath-cpp-tooltip:hover::after,
.ath-cpp-tooltip:hover::before {
	opacity: 1;
	transform: translateX(-50%) translateY(-2px);
}

.ath-cpp-field input,
.ath-cpp-field select {
	width: 100%;
	padding: 0.45rem 0.75rem;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	font-size: 0.95rem;
}

.ath-cpp-col-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 520px;
	margin: 0 auto;
	padding: 0 1rem;
}

.ath-cpp-result {
	width: 100%;
	max-width: 520px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	text-align: center;
	margin: 0 auto;
}

.ath-cpp-result > * {
	text-align: center;
}

@media (max-width: 767px) {
	.ath-cpp-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 900px) {
}

/* Scale */


/* Main value + baseline */

.ath-cpp-main-line {
	font-size: 2.1rem;
	font-weight: 700;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
	white-space: nowrap;
}

.ath-cpp-main-unit {
	font-size: 1.4rem;
	font-weight: 600;
}

.ath-cpp-main-subtext {
	font-size: 0.95rem;
	font-weight: 400;
}

.ath-cpp-result-adjusted {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(0, 0, 0, 0.75);
}

.ath-cpp-adjusted {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(0, 0, 0, 0.75);
}

.ath-cpp-verdict-line {
	margin: 0.25rem 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(0, 0, 0, 0.85);
}

.ath-cpp-baseline {
	margin-top: 0.65rem;
	font-size: 0.9rem;
	color: rgba(0, 0, 0, 0.8);
}

.ath-cpp-meta {
	margin-top: 1.5rem;
	font-size: 0.85rem;
	color: rgba(0, 0, 0, 0.55);
	text-align: center;
	width: 100%;
}

.ath-cpp-meta-primary,
.ath-cpp-meta-secondary {
	display: block;
	line-height: 1.5;
}

.ath-cpp-meta-secondary {
	margin-top: 0.1rem;
}