/* v29.71: New build mode of the buyer credit calculator (commissions.html) and its compact copy on new-construction pages. */
.calc-field--tight { margin-top: 14px; }
.calc-field--tight .calc-check { margin-top: 0; }
.calc-custom { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }
.calc-custom label { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.calc .calc-custom input[type="number"], .guide-section .calc .calc-custom input[type="number"] { width: 112px; min-height: 52px; padding: 0 12px; font: inherit; font-size: 18px; font-weight: 600; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 0 !important; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.calc-custom input[type="number"]::-webkit-outer-spin-button, .calc-custom input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-custom input[type="number"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.calc-custom-unit { font-size: 18px; font-weight: 600; color: var(--navy); margin-left: -4px; }
.calc-custom-msg { margin: 6px 0 0; min-height: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.calc-custom-msg:empty { display: none; }
.calc [hidden] { display: none !important; }
/* Compact copy on new-construction pages and the New build switch: square corners */
.calc--nc, .calc--nc .calc-seg, .calc--nc .calc-result, .calc--nc .calc-more { border-radius: 0; }
.calc--nc { max-width: 760px; }
.calc--nc .seg-btn { font-size: 18px; }
.nc-calc-section .calc { margin-top: 14px; }
.nc-calc-note { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 480px) { .calc--nc .seg-btn { font-size: 17px; } .calc-custom input[type="number"] { width: 96px; } }

/* nc-toggle-draft: Existing home / New build switch on the closing costs, rent vs. buy and investment pages */
[data-nc-only][hidden], [data-nc-panel][hidden] { display: none !important; }
.calc-panel[data-nc-panel] { border-left: 4px solid var(--gold, #c8a45a); }
