/* =============================================
   Area Calculator — TrueNorth Handyman
   Fira Sans | All black | Transparent bg
   ============================================= */

.area-calc-outer {
	display: flex;
	justify-content: center;
	width: 100%;
}

.area-calc-wrapper {
	display: inline-block;
	font-family: 'Fira Sans', sans-serif;
	border: 2px solid #000;
	border-radius: 6px;
	background: transparent;
	padding: 18px 24px;
	box-sizing: border-box;
}

.area-calc-row {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---- Individual field group ---- */
.area-calc-field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.area-calc-label {
	font-family: 'Fira Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #000;
	line-height: 1;
	background: transparent;
}

/* ---- Input + unit inline wrapper ---- */
.area-calc-input-wrap {
	display: flex;
	flex-direction: row;
	align-items: center;
	border-bottom: 2px solid #000;
	padding-right: 5px;
	gap: 4px;
}

.area-calc-input {
	font-family: 'Fira Sans', sans-serif;
	font-size: 20px;
	font-weight: 500;
	color: #000;
	background: transparent;
	border: none;
	border-radius: 0;
	outline: none;
	width: 90px;
	padding: 6px 0 6px 4px;
	box-sizing: border-box;
	-moz-appearance: textfield;
	appearance: textfield;
	line-height: 1.2;
}

/* Remove browser number spinners */
.area-calc-input::-webkit-outer-spin-button,
.area-calc-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.area-calc-input::placeholder {
	color: #999;
	opacity: 1;
}

.area-calc-input-wrap:focus-within {
	border-bottom-color: #000;
	border-bottom-width: 2px;
}

/* ---- Result field ---- */
.area-calc-result {
	cursor: default;
	caret-color: transparent;
	font-weight: 600;
	width: 110px;
}

.area-calc-result-field .area-calc-unit {
	font-weight: 500;
}

/* ---- Unit label (ft / sq ft) ---- */
.area-calc-unit {
	font-family: 'Fira Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #000;
	letter-spacing: 0.05em;
	background: transparent;
	pointer-events: none;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ---- Operator symbols (× and =) ---- */
.area-calc-operator {
	font-family: 'Fira Sans', sans-serif;
	font-size: 22px;
	font-weight: 400;
	color: #000;
	line-height: 1;
	padding-bottom: 8px;
	flex-shrink: 0;
	user-select: none;
	background: transparent;
}

/* ---- Responsive: stack on very narrow containers ---- */
@media (max-width: 480px) {
	.area-calc-row {
		gap: 16px;
	}

	.area-calc-operator {
		padding-bottom: 0;
		align-self: center;
	}
}
