/* Height Calculator — Teal & Navy theme */

.htc-widget {
	--htc-navy-950: #0a1120;
	--htc-navy-900: #0f172a;
	--htc-navy-800: #16223b;
	--htc-navy-700: #1e2c4a;
	--htc-teal-300: #5eead4;
	--htc-teal-400: #2dd4bf;
	--htc-teal-600: #0d9488;
	--htc-text-soft: #94a3b8;
	--htc-text-faint: #4c5c7a;

	max-width: 440px;
	margin: 2rem auto;
	padding: 2rem 1.75rem 1.75rem;
	border-radius: 22px;
	background: linear-gradient(160deg, var(--htc-navy-900) 0%, var(--htc-navy-950) 100%);
	box-shadow:
		0 20px 45px -15px rgba(10, 17, 32, 0.55),
		0 0 0 1px rgba(45, 212, 191, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

.htc-widget *,
.htc-widget *::before,
.htc-widget *::after {
	box-sizing: border-box;
}

.htc-widget::before {
	content: "";
	position: absolute;
	top: -60%;
	left: 50%;
	width: 140%;
	height: 140%;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(45, 212, 191, 0.14) 0%, rgba(45, 212, 191, 0) 60%);
	pointer-events: none;
}

.htc-header {
	text-align: center;
	margin-bottom: 1.25rem;
	position: relative;
}

.htc-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--htc-teal-300);
	text-transform: uppercase;
}

.htc-title {
	margin: 0.35rem 0 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: #f1f5f9;
	letter-spacing: -0.01em;
}

.htc-tabs,
.htc-unit-toggle {
	display: flex;
	gap: 0.3rem;
	padding: 0.3rem;
	margin-bottom: 0.85rem;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(94, 234, 212, 0.15);
	border-radius: 14px;
}

.htc-unit-toggle {
	margin-bottom: 1.25rem;
}

.htc-tab,
.htc-unit-btn {
	flex: 1;
	padding: 0.6rem 0.4rem;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--htc-text-soft);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.htc-tab:hover,
.htc-unit-btn:hover {
	color: #e2e8f0;
}

.htc-tab.is-active,
.htc-unit-btn.is-active {
	background: linear-gradient(135deg, var(--htc-teal-400), var(--htc-teal-600));
	color: var(--htc-navy-950);
	box-shadow: 0 6px 16px -6px rgba(20, 184, 166, 0.6);
}

.htc-parent {
	margin-bottom: 0.9rem;
}

.htc-parent-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--htc-teal-300);
	margin-bottom: 0.4rem;
}

.htc-parent-fields {
	position: relative;
}

.htc-ftin-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
}

.htc-input {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border-radius: 12px;
	border: 1px solid rgba(94, 234, 212, 0.18);
	background: var(--htc-navy-800);
	color: #f1f5f9;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.htc-input::placeholder {
	color: #506080;
	font-weight: 500;
}

.htc-input:focus {
	border-color: var(--htc-teal-400);
	box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.htc-result {
	margin-top: 1.25rem;
	padding: 1.25rem;
	border-radius: 14px;
	background: rgba(30, 44, 74, 0.45);
	border: 1px solid rgba(94, 234, 212, 0.15);
	text-align: center;
}

.htc-result-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--htc-text-faint);
	margin-bottom: 0.35rem;
}

.htc-result-value {
	display: block;
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--htc-teal-300);
	text-shadow: 0 0 18px rgba(45, 212, 191, 0.25);
}

.htc-result-sub {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.85rem;
	color: var(--htc-text-soft);
}

.htc-result-range {
	display: block;
	margin-top: 0.6rem;
	font-size: 0.78rem;
	color: var(--htc-text-faint);
}

.htc-note {
	margin: 1.1rem 0 0;
	font-size: 0.74rem;
	line-height: 1.55;
	color: var(--htc-text-faint);
	text-align: center;
}

@media (max-width: 400px) {
	.htc-ftin-fields {
		grid-template-columns: 1fr 1fr;
	}
}
