/* Fitness Calculators — fitcalcs.css */
.fitcalc-card,
.fitcalc-card * {
	box-sizing: border-box;
}

.fitcalc-card {
	max-width: 640px;
	margin: 24px 0;
	padding: 22px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	color: #111827;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fitcalc-card [hidden] {
	display: none !important;
}

.fitcalc-title {
	margin: 0 0 14px;
	font-size: 1.3em;
	font-weight: 700;
	line-height: 1.3;
}

/* Unit toggle */
.fitcalc-units {
	display: inline-flex;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 16px;
}

.fitcalc-unit-btn {
	appearance: none;
	border: 0;
	background: #f3f4f6;
	color: #374151;
	padding: 7px 16px;
	font: inherit;
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
}

.fitcalc-unit-btn.is-active {
	background: #2563eb;
	color: #ffffff;
}

.fitcalc-unit-btn:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* Fields */
.fitcalc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.fitcalc-field label,
.fitcalc-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9em;
	font-weight: 600;
	color: #374151;
}

.fitcalc-field input,
.fitcalc-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	font: inherit;
	font-size: 1em;
}

.fitcalc-field input:focus,
.fitcalc-field select:focus {
	border-color: #2563eb;
	outline: 2px solid rgba(37, 99, 235, 0.35);
	outline-offset: 0;
}

.fitcalc-inline {
	display: flex;
	gap: 8px;
}

.fitcalc-inline input {
	flex: 1 1 0;
	min-width: 0;
}

.fitcalc-inline select {
	flex: 0 0 auto;
	width: auto;
}

/* Calculate button */
.fitcalc-btn {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 12px 16px;
	border: 0;
	border-radius: 8px;
	background: #2563eb;
	color: #ffffff;
	font: inherit;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
}

.fitcalc-btn:hover {
	background: #1d4ed8;
}

.fitcalc-btn:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* Error */
.fitcalc-error {
	margin: 14px 0 0;
	padding: 10px 12px;
	border: 1px solid #fecaca;
	border-radius: 8px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.92em;
}

/* Results */
.fitcalc-results {
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	background: #eff6ff;
}

.fitcalc-result-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.fitcalc-result-row:last-child {
	border-bottom: 0;
}

.fitcalc-result-row span {
	color: #374151;
}

.fitcalc-result-row strong {
	text-align: right;
	white-space: nowrap;
}

.fitcalc-result-main {
	font-size: 1.08em;
}

.fitcalc-result-main strong {
	color: #2563eb;
}

.fitcalc-result-note {
	margin: 12px 0 2px;
	font-size: 0.92em;
	font-weight: 600;
	color: #374151;
}

/* Percentage table (1RM) */
.fitcalc-table {
	width: 100%;
	margin-top: 14px;
	border-collapse: collapse;
	font-size: 0.95em;
}

.fitcalc-table th,
.fitcalc-table td {
	padding: 7px 10px;
	border: 1px solid #bfdbfe;
	text-align: left;
}

.fitcalc-table th {
	background: #dbeafe;
	color: #1e3a8a;
}

.fitcalc-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.6);
}

/* Disclaimer */
.fitcalc-disclaimer {
	margin: 14px 0 0;
	font-size: 0.78em;
	color: #6b7280;
}

/* Small screens */
@media (max-width: 480px) {
	.fitcalc-card {
		padding: 16px;
	}

	.fitcalc-grid {
		grid-template-columns: 1fr;
	}

	.fitcalc-result-row strong {
		white-space: normal;
	}
}
