/* =========================================================
   HYDROMETER TEMPERATURE CORRECTION — CARD
   ========================================================= */

.hghc-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);
}


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


/* =========================================================
   TEMPERATURE UNIT
   ========================================================= */

.hghc-unit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.7rem;
	padding: .9rem 1rem;
	border-radius: 10px;
	background: var(--hg-soft);
}


.hghc-unit-row .hghc-field-label {
	margin-bottom: 0;
}


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

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


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


/*
 * Keep all control rows aligned even when a label wraps
 * onto two lines.
 */
.hghc-field > label {
	display: flex;
	align-items: flex-end;
	min-height: 2.65rem;
}


.hghc input {
	height: 52px;
	line-height: 1.2;
}


.hghc-field-note {
	max-width: 30rem;
}


/* =========================================================
   TEMPERATURE CONTROLS
   ========================================================= */

.hghc-control-row {
	align-items: center;
}


.hghc-temperature-symbol {
	min-width: 34px;
	font-size: 1rem;
	font-weight: 800;
}


/* =========================================================
   CALIBRATION PRESETS
   ========================================================= */

.hghc-presets {
	margin-top: .65rem;
}


.hghc-presets button {
	line-height: 1.25;
}


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

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


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


.hghc-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;
}


.hghc-result-secondary {
	margin-top: .45rem;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 800;
}


.hghc-result-detail {
	margin: .45rem 0 0;
	color: #D5D2CB;
	font-size: .9rem;
}


/* =========================================================
   WARNINGS
   ========================================================= */

.hghc-large-correction-warning,
.hghc-hot-sample-warning {
	margin-top: 1rem;
	padding: .95rem 1rem;
	line-height: 1.5;
}


.hghc-large-correction-warning {
	border-left: 5px solid var(--hg-amber);
	background: #FFF6CF;
}


.hghc-hot-sample-warning {
	border-left: 5px solid #B42318;
	background: #FDECEC;
	color: #6B1510;
}


/* =========================================================
   NOTES
   ========================================================= */

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


/* =========================================================
   SAFETY
   ========================================================= */

.hghc-safety {
	margin-top: 2rem;
	padding: 1.25rem 1.4rem;
	border-left: 6px solid var(--hg-amber);
	background: #FFF8D9;
}


.hghc-safety > strong {
	font-size: 1.05rem;
}


.hghc-safety p {
	line-height: 1.55;
}


.hghc-safety p:last-child {
	margin-bottom: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {

	.hghc-input-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

	.hghc-field:first-child {
		grid-column: 1 / 3;
	}


	/*
	 * Labels no longer need equal-height alignment when
	 * fields begin wrapping onto separate rows.
	 */
	.hghc-field > label {
		min-height: 0;
	}
}


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

@media (max-width: 680px) {

	.hghc {
		margin: 2rem 0;
	}

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

	.hghc-unit-row {
		align-items: flex-start;
		flex-direction: column;
	}

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

	.hghc-field:first-child {
		grid-column: auto;
	}

	.hghc-result {
		padding: 1.35rem;
	}

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


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

@media (max-width: 420px) {

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

	.hghc-presets {
		flex-direction: column;
		align-items: flex-start;
	}
}
