/* RC Supply Peptide Calculator */
.rcspc {
	--rcspc-accent: #0f766e;
	--rcspc-ink: #0f172a;
	--rcspc-muted: #64748b;
	--rcspc-line: #e2e8f0;
	--rcspc-bg: #ffffff;
	--rcspc-soft: #f8fafc;
	--rcspc-radius: 14px;
	box-sizing: border-box;
	max-width: 980px;
	margin: 0 auto 2em;
	padding: 28px;
	background: var(--rcspc-bg);
	border: 1px solid var(--rcspc-line);
	border-radius: var(--rcspc-radius);
	box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .12);
	color: var(--rcspc-ink);
	font-size: 16px;
	line-height: 1.5;
}
.rcspc *, .rcspc *::before, .rcspc *::after { box-sizing: border-box; }

.rcspc__head { margin-bottom: 22px; }
.rcspc .rcspc__title { margin: 0 0 6px; font-size: 1.5em; line-height: 1.25; color: var(--rcspc-ink); }
.rcspc__sub { margin: 0; color: var(--rcspc-muted); }

.rcspc__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }

/* Inputs */
.rcspc__field { margin-bottom: 20px; }
.rcspc__field:last-child { margin-bottom: 0; }
.rcspc__label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; font-size: .95em; }
.rcspc__step {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--rcspc-accent); color: #fff; font-size: .75em; font-weight: 700;
}
.rcspc__input-wrap {
	display: flex; align-items: stretch;
	border: 1.5px solid var(--rcspc-line); border-radius: 10px; background: #fff;
	transition: border-color .15s, box-shadow .15s; overflow: hidden;
}
.rcspc__input-wrap:focus-within {
	border-color: var(--rcspc-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rcspc-accent) 18%, transparent);
}
.rcspc .rcspc__input {
	flex: 1; min-width: 0; width: 100%; height: 48px; margin: 0; padding: 0 14px;
	border: 0 !important; box-shadow: none !important; outline: none; background: transparent;
	font-size: 1.15em; font-weight: 600; color: var(--rcspc-ink);
	-moz-appearance: textfield;
}
.rcspc .rcspc__input::-webkit-outer-spin-button,
.rcspc .rcspc__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rcspc__suffix {
	display: flex; align-items: center; padding: 0 14px;
	background: var(--rcspc-soft); border-left: 1px solid var(--rcspc-line);
	color: var(--rcspc-muted); font-weight: 600;
}

/* Buttons (reset theme styles) */
.rcspc button {
	font: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal;
	box-shadow: none; line-height: 1.2;
}
.rcspc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rcspc .rcspc__chip {
	padding: 6px 12px; border: 1px solid var(--rcspc-line); border-radius: 999px;
	background: #fff; color: var(--rcspc-ink); font-size: .85em; font-weight: 500;
}
.rcspc .rcspc__chip:hover { border-color: var(--rcspc-accent); color: var(--rcspc-accent); background: #fff; }
.rcspc .rcspc__chip.is-active { background: var(--rcspc-accent); border-color: var(--rcspc-accent); color: #fff; }

.rcspc__toggle { display: flex; padding: 4px; gap: 2px; background: var(--rcspc-soft); border-left: 1px solid var(--rcspc-line); }
.rcspc .rcspc__toggle-btn {
	padding: 0 12px; border: 0; border-radius: 7px; background: transparent;
	color: var(--rcspc-muted); font-weight: 600; font-size: .9em;
}
.rcspc .rcspc__toggle-btn:hover { background: transparent; color: var(--rcspc-ink); }
.rcspc .rcspc__toggle-btn.is-active { background: var(--rcspc-accent); color: #fff; }

.rcspc__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rcspc .rcspc__seg-btn {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 10px 6px; border: 1.5px solid var(--rcspc-line); border-radius: 10px;
	background: #fff; color: var(--rcspc-ink); font-weight: 700;
}
.rcspc .rcspc__seg-btn small { font-weight: 500; font-size: .75em; color: var(--rcspc-muted); }
.rcspc .rcspc__seg-btn:hover { border-color: var(--rcspc-accent); background: #fff; color: var(--rcspc-ink); }
.rcspc .rcspc__seg-btn.is-active {
	border-color: var(--rcspc-accent);
	background: color-mix(in srgb, var(--rcspc-accent) 8%, #fff);
	color: var(--rcspc-accent);
}
.rcspc__hint { margin: 8px 0 0; font-size: .82em; color: var(--rcspc-muted); }

/* Result panel */
.rcspc__result {
	position: sticky; top: 20px;
	padding: 24px; border-radius: 12px; text-align: center;
	background: linear-gradient(160deg, color-mix(in srgb, var(--rcspc-accent) 10%, #fff), var(--rcspc-soft));
	border: 1px solid color-mix(in srgb, var(--rcspc-accent) 22%, var(--rcspc-line));
}
.rcspc__result-label { text-transform: uppercase; letter-spacing: .08em; font-size: .75em; font-weight: 700; color: var(--rcspc-muted); }
.rcspc__units { font-size: 3.2em; font-weight: 800; line-height: 1.05; color: var(--rcspc-accent); font-variant-numeric: tabular-nums; }
.rcspc__units small { font-size: .35em; font-weight: 700; }
.rcspc__ml { margin-top: 4px; color: var(--rcspc-muted); font-size: .92em; }

.rcspc__syringe { margin: 18px 0 6px; }
.rcspc__syringe svg { display: block; width: 100%; height: auto; overflow: visible; }
.rcspc-svg__barrel { fill: none; stroke: #94a3b8; stroke-width: 1.5; }
.rcspc-svg__fill { fill: color-mix(in srgb, var(--rcspc-accent) 45%, transparent); transition: width .25s ease; }
.rcspc-svg__fill.is-over { fill: rgba(220, 38, 38, .45); }
.rcspc-svg__tick { stroke: #94a3b8; stroke-width: 1; }
.rcspc-svg__tick.is-major { stroke: #475569; stroke-width: 1.3; }
.rcspc-svg__num { font-size: 8px; fill: #64748b; text-anchor: middle; font-family: inherit; }
.rcspc-svg__plunger { fill: #334155; transition: x .25s ease; }
.rcspc-svg__rod { stroke: #94a3b8; stroke-width: 3; }
.rcspc-svg__thumb { fill: #94a3b8; }
.rcspc-svg__needle { stroke: #94a3b8; stroke-width: 1.5; }
.rcspc-svg__needle-hub { fill: #cbd5e1; }

.rcspc__alert {
	margin: 10px 0 0; padding: 10px 12px; border-radius: 8px;
	background: #fef3c7; color: #92400e; font-size: .85em; text-align: left;
}
.rcspc__alert[hidden] { display: none; }

.rcspc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; padding: 0; }
.rcspc__stats > div { padding: 10px; border-radius: 8px; background: #fff; border: 1px solid var(--rcspc-line); text-align: left; }
.rcspc__stats dt { margin: 0; font-size: .72em; text-transform: uppercase; letter-spacing: .05em; color: var(--rcspc-muted); font-weight: 600; }
.rcspc__stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.rcspc .rcspc__cta {
	display: block; margin-top: 16px; padding: 13px 18px; border-radius: 10px;
	background: var(--rcspc-accent); color: #fff !important; text-decoration: none !important;
	font-weight: 700; transition: filter .15s;
}
.rcspc .rcspc__cta:hover { filter: brightness(1.1); }

/* Math + disclaimer */
.rcspc__math { margin-top: 24px; padding: 14px 18px; border: 1px solid var(--rcspc-line); border-radius: 10px; background: var(--rcspc-soft); }
.rcspc__math summary { cursor: pointer; font-weight: 600; }
.rcspc__math ul { margin: 12px 0 8px 1.2em; padding: 0; }
.rcspc__math li { margin-bottom: 4px; }
.rcspc__math p { margin: 0; color: var(--rcspc-muted); font-size: .9em; }
.rcspc__disclaimer { margin: 16px 0 0; font-size: .78em; color: var(--rcspc-muted); }

/* Responsive */
@media (max-width: 768px) {
	.rcspc { padding: 18px; }
	.rcspc__grid { grid-template-columns: 1fr; gap: 20px; }
	.rcspc__result { position: static; }
	.rcspc__units { font-size: 2.6em; }
}
