/* =========================================================
   ABV CALCULATOR — CARD
   ========================================================= */

.hgabv-calculator {
	padding: clamp(1.5rem, 4vw, 2.4rem);
	border: 1px solid var(--hg-line);
	border-radius: 18px;
	background: #fff;
	box-shadow:
		0 16px 44px
		rgba(11, 11, 11, .075);
}


.hgabv-intro {
	margin-bottom: 0;
}


/* =========================================================
   INPUT GRID
   ========================================================= */

.hgabv-input-grid {
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
	margin-top: 1.9rem;
}


.hgabv-field {
	min-width: 0;
}


.hgabv input {
	height: 52px;
	line-height: 1.2;
	font-size: 1.05rem;
}


/* =========================================================
   RESULT
   ========================================================= */

.hgabv-result {
	margin-top: 2rem;
	padding: 1.65rem;
	border-radius: 14px;
	background: var(--hg-charcoal);
	color: var(--hg-offwhite);
}


.hgabv-result-label {
	color: #D5D2CB;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .065em;
	text-transform: uppercase;
}


.hgabv-result-primary {
	margin-top: .25rem;
	color: var(--hg-amber);
	font-size: clamp(3rem, 8vw, 5.15rem);
	font-weight: 900;
	line-height: .98;
	letter-spacing: -.05em;
}


.hgabv-result-details {
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid #383838;
}


.hgabv-result-details div {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}


.hgabv-result-details span {
	color: #BDBAB2;
	font-size: .74rem;
	font-weight: 700;
	line-height: 1.35;
}


.hgabv-result-details strong {
	color: var(--hg-offwhite);
	font-size: 1.05rem;
	line-height: 1.25;
}


/* =========================================================
   INVALID INPUT WARNING
   ========================================================= */

.hgabv-invalid-warning {
	margin-top: 1rem;
	padding: .95rem 1rem;
	border-left: 5px solid #B42318;
	background: #FDECEC;
	color: #6B1510;
	line-height: 1.5;
}


/* =========================================================
   METHOD NOTE
   ========================================================= */

.hgabv-method-note {
	max-width: 760px;
	margin: 1rem 0 0;
	color: #555;
	font-size: .88rem;
	line-height: 1.55;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

	.hgabv {
		margin: 2rem 0;
	}

	.hgabv-calculator {
		padding: 1.25rem;
		border-radius: 14px;
	}

	.hgabv-input-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.hgabv-result {
		padding: 1.35rem;
	}

	.hgabv-result-primary {
		font-size: 3.5rem;
	}

	.hgabv-result-details {
		grid-template-columns: 1fr;
		gap: .75rem;
	}
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

	.hgabv-result-primary {
		font-size: 3rem;
	}
}
