.fx-mcc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: start; }
.fx-mcc__copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fx-mcc__inputs { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }

/* Stepper cards */
.fx-mcc__in { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fx-mcc__in-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fx-mcc__in-label { font-weight: 600; font-size: 16px; color: var(--ink); }
.fx-mcc__in-help { font-size: 13px; color: var(--muted); }
.fx-mcc__in-row { display: flex; align-items: center; gap: 14px; }
.fx-mcc__step {
	flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	font-size: 22px; line-height: 1; cursor: pointer; transition: background-color 150ms, transform 150ms;
}
.fx-mcc__step:hover { background: var(--violet-soft); }
.fx-mcc__step:active { transform: scale(.92); }
.fx-mcc__step[aria-disabled="true"] { opacity: .4; cursor: default; background: var(--surface); }
.fx-mcc__in-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-mcc__val { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; text-align: center; color: var(--ink); }

/* Native range styled as the board's track + knob */
.fx-mcc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.fx-mcc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet) var(--pct, 0%), #EEEBF5 var(--pct, 0%)); }
.fx-mcc__range::-moz-range-track { height: 6px; border-radius: 3px; background: #EEEBF5; }
.fx-mcc__range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--violet); }
.fx-mcc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 5px; background: #fff; border: 2px solid var(--violet); box-shadow: 0 2px 6px rgba(23, 17, 46, .18); }
.fx-mcc__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 5px; background: #fff; border: 2px solid var(--violet); box-shadow: 0 2px 6px rgba(23, 17, 46, .18); }
.fx-mcc__range:focus-visible { outline: none; }
.fx-mcc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--violet-soft); }
.fx-mcc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--violet-soft); }

/* Result card */
.fx-mcc__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fx-mcc__card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 26px; border-radius: 26px; background: var(--ink); color: #fff; }
.fx-mcc__card > * { position: relative; margin: 0; }
.fx-mcc__card > .fx-mcc__glow { position: absolute; right: -120px; top: -150px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 43, 217, .7), transparent 68%); pointer-events: none; }
.fx-mcc__card > .fx-mcc__sq { position: absolute; right: 32px; bottom: 32px; width: 52px; height: 52px; border-radius: 10px; background: var(--coral); animation: fxMccBob 9s ease-in-out infinite; }
.fx-mcc__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-400); }
.fx-mcc__k { font-size: 16px; color: var(--dark-body); }
.fx-mcc__squares { display: flex; flex-wrap: wrap; gap: 5px; max-width: 420px; min-height: 20px; }
.fx-mcc__squares span { width: 20px; height: 20px; border-radius: 5px; background: var(--coral); animation: fxMccSq 380ms cubic-bezier(.3, 1.5, .5, 1) var(--d, 0ms) both; }
.fx-mcc__jobs { font-size: 15px; color: var(--dark-body); }
.fx-mcc .fx-mcc__jobs strong { color: #fff; font-weight: 600; }
.fx-mcc .fx-mcc__year strong { color: #fff; font-weight: 700; }
.fx-mcc__money { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid #2E2752; }
.fx-mcc__money > * { margin: 0; }
.fx-mcc__num { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: #FE7B5C; }
.fx-mcc__num.is-bump [data-month] { display: inline-block; animation: fxMccNum 360ms cubic-bezier(.2, .8, .2, 1) both; }
.fx-mcc__per { font-size: 22px; font-weight: 700; letter-spacing: 0; color: var(--dark-body); }
.fx-mcc__year { font-size: 16px; color: #fff; }
.fx-mcc__disc { font-size: 12.5px; line-height: 1.5; color: #A9A3C4; padding-right: 84px; }

/* Stat + buttons */
.fx-mcc__stat { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fx-mcc__stat-n { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.04em; color: var(--violet); }
.fx-mcc__stat-t { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.45; }
.fx-mcc__stat-src { font-family: var(--font-mono); font-size: 11px; line-height: 1.4; color: #706D86; }
.fx-mcc__btns { display: flex; gap: 10px; }
.fx-mcc__btns .fx-btn { height: 54px; }
.fx-mcc__go { flex: 1; }

@keyframes fxMccSq { from { transform: scale(0); } to { transform: none; } }
@keyframes fxMccNum { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fxMccBob { 0%, 100% { transform: translateY(0) rotate(14deg); } 50% { transform: translateY(-10px) rotate(24deg); } }

/* Article version: stacked in the text column */
.fx-mcc.is-post { margin-block: 32px; }
.fx-mcc.is-post .fx-mcc__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fx-mcc.is-post .fx-mcc__intro { font-size: 17px; }
.fx-mcc.is-post .fx-mcc__inputs { margin-top: 0; }
.fx-mcc.is-post .fx-mcc__num { font-size: 52px; }

/* Two columns: the estimate stays in view while the inputs scroll past. On short windows it pins
   higher so its bottom stays visible (view.js sets --mcc-side-h); below 560px tall it just scrolls. */
@media (min-width: 1101px) and (min-height: 560px) {
	.fx-mcc:not(.is-post) .fx-mcc__side { position: sticky; top: min(calc(var(--header-h, 72px) + 24px), calc(100vh - var(--mcc-side-h, 0px) - 16px)); }
}
@media (max-width: 1100px) {
	.fx-mcc__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
	.fx-mcc__in { padding: 14px 14px 16px; }
	.fx-mcc__in-row { gap: 10px; }
	.fx-mcc__val { font-size: 26px; }
	.fx-mcc__card { padding: 24px 20px 22px; border-radius: 22px; }
	.fx-mcc__card > .fx-mcc__sq { width: 40px; height: 40px; right: 20px; bottom: 22px; }
	.fx-mcc__num, .fx-mcc.is-post .fx-mcc__num { font-size: 44px; }
	.fx-mcc__per { font-size: 18px; }
	.fx-mcc__disc { padding-right: 60px; }
	.fx-mcc__btns { flex-direction: column; }
	.fx-mcc__go { flex: none; }
	.fx-mcc__btns .fx-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.fx-mcc__squares span, .fx-mcc__num.is-bump [data-month], .fx-mcc__card > .fx-mcc__sq { animation: none; }
	.fx-mcc__card > .fx-mcc__sq { transform: rotate(14deg); }
}

/* Page hero (the calculator's own page) */
.fx-mcc--hero { padding-top: 40px; }
.fx-mcc--hero .fx-mcc__h { font-size: 62px; line-height: 1; letter-spacing: -0.04em; }
@media (max-width: 960px) {
	.fx-mcc--hero .fx-mcc__h { font-size: 46px; }
}
@media (max-width: 600px) {
	.fx-mcc--hero { padding-top: 24px; }
	.fx-mcc--hero .fx-mcc__h { font-size: 38px; line-height: 1.04; }
}
.fx-mcc__also { margin-top: 14px; }
