/* John Weaver lender page: "Your home budget" on phones (HQ, Oct 26, Gabbie: "make it more mobile friendly"; then "if it's bigger is it now also longer? i dont want people not to be able to zoom"). Phones only; desktop unchanged. Pinch-to-zoom always works (the page allows it; the sliders say pinch-zoom). Same height as before or shorter. No em dashes. */
.calc-live{display:none}
@media (max-width:700px){
  .hero-in>*,.calc{min-width:0}
  /* bigger, easier taps */
  .calc .toggle button{min-height:44px;padding-left:16px;padding-right:16px;font-size:12px}
  .loan-t{gap:4px;padding:4px}
  .loan-t button{min-height:46px;font-size:12px;letter-spacing:.04em;padding:0 4px}
  /* sliders: a thumb a thumb can find */
  .calc input[type=range]{height:44px;touch-action:pan-y pinch-zoom}
  .calc input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:4px}
  .calc input[type=range]::-webkit-slider-thumb{width:30px;height:30px;margin-top:-11px;border-width:3px}
  .calc input[type=range]::-moz-range-track{height:8px;border-radius:4px}
  .calc input[type=range]::-moz-range-progress{height:8px;border-radius:4px}
  .calc input[type=range]::-moz-range-thumb{width:26px;height:26px;border-width:3px}
  .calc .sl{margin-top:6px;gap:0}
  .calc .sl-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px}
  .calc .sl-top label{flex:1 1 auto;min-width:0}
  .calc .sl-top output{flex:none;white-space:nowrap;text-align:right;margin-left:auto}
  /* no zoom-in when you tap a box (iPhone zooms on text under 16px) */
  .calc select,.reach-f input{font-size:16px;min-height:44px}
  .reach-f input{width:100%;min-width:0;box-sizing:border-box}
  .selrow select{max-width:62%}
  .reach-c{font-size:13px}
  .reach-c input{width:22px;height:22px;margin-top:0}
  .calc .btn{min-height:48px;width:100%;white-space:normal;line-height:1.3;justify-content:center;text-align:center}
  /* the gauge takes less of the screen */
  .gauge{max-width:210px;margin-left:auto;margin-right:auto;margin-top:8px}
  .calc .note a{display:inline-block;padding:4px 0}
  /* the number stays in sight while you slide */
  .calc-live{display:flex;position:fixed;z-index:60;left:12px;right:12px;top:var(--cl-top,8px);align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-radius:14px;background:var(--ink,#1A1F2A);color:#FFFFFF;box-shadow:0 10px 24px -12px rgba(10,14,24,.55);opacity:0;transform:translateY(-8px);pointer-events:none;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s}
  .calc-live.on{opacity:1;transform:none;visibility:visible}
  .calc-live .cl-z{display:inline-block;padding:3px 8px;border-radius:999px;background:#2F6B4F;color:#FFFFFF;font:700 10.5px/1.2 var(--label,inherit);letter-spacing:.1em;text-transform:uppercase}
  .calc-live .cl-z:empty{display:none}
  .calc-live .cl-v{font:600 20px/1.1 var(--sans,inherit);white-space:nowrap}
  .calc-live .cl-k{display:block;font-size:11.5px;opacity:.75;margin-top:2px}
}
@media (max-width:360px){.rate,.rate-x{padding:16px}.calc{padding:18px}.loan-t{grid-template-columns:max-content repeat(3,1fr)}.loan-t button{font-size:10.5px;letter-spacing:.02em;padding:0 6px}.calc .toggle button{padding-left:12px;padding-right:12px}}
@media (prefers-reduced-motion:reduce){.calc-live{transition:none}}
