/* rd-eq — the site's other calculators in the look of the new payment calculator (rd-calc.css, owner pick
   "Match payment calculator"). One component for every .scene-est section: the dark dashboard card, the
   condensed Archivo display heading with the blue-dot label, a giant rolling result numeral, glowing range
   sliders, clean value rows, fine print and the bright blue button. Scoped under .rde; rd-calc.* is untouched.
   Words, fields, data-i18n keys and maths are the page's own: the equity maths stays in v9.r650.js, and
   assets/js/rd-eq.r700.js only draws the rolling numeral, the slider fill and the result colour.
   Users: Loan Transfer's "Seller Equity & Loan Payoff Calculator" ([data-eq]) and the "Does my vehicle qualify?"
   yes/no checker on Instant Loan and Vehicle Requirements ([data-elig], logic also in v9.r650.js). */
@font-face{font-family:"Archivo";src:url(../fonts/archivo-variable.woff2) format("woff2-variations");font-weight:100 900;font-stretch:62% 125%;font-display:swap}

.rde{--rde-w:#f3f2ee;--rde-mute:#a3a29d;--rde-blue:#3d8bff;--rde-amber:#f5a524;--rde-line:rgba(243,242,238,.16);
  --rde-gap:14px;--rde-pfh:116px;
  --rde-wide:"Archivo","Bricolage","Bricolage Grotesque",system-ui,sans-serif;
  --rde-body:"Jakarta","Plus Jakarta Sans","Inter",system-ui,sans-serif;
  position:relative;color:var(--rde-w);font-family:var(--rde-body)}

/* layout: label + heading top-left, description + fine print bottom-left, card right; phones stack
   heading, card, description (the DOM order stays heading, description, card) */
.rde .rde-g{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);grid-template-areas:"h d" "t d";gap:0 64px;align-items:start}
.rde .rde-g>*{margin-top:0}
.rde .rde-h{grid-area:h;min-width:0}
.rde .rde-t{grid-area:t;min-width:0}
.rde .rde-dash{grid-area:d;min-width:0}

/* label with the blue dot, giant condensed heading, description, fine print */
.rde .rde-lab{display:flex;align-items:center;gap:10px;margin:0;font-family:var(--rde-wide);font-size:15px;line-height:1.2;letter-spacing:.1em;text-transform:uppercase;
  font-weight:600;font-variation-settings:"wdth" 125,"wght" 600;color:var(--rde-w)}
.rde .rde-lab::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--rde-blue);flex:none}
.rde .rde-h2.rde-h{margin-top:0}
.rde .rde-h2{margin:16px 0 0;font-family:var(--rde-wide);font-weight:800;font-size:clamp(46px,6.4vw,104px);line-height:.88;text-transform:uppercase;
  font-variation-settings:"wdth" 62,"wght" 900;letter-spacing:-.005em;text-wrap:balance;color:var(--rde-w)}
.rde .rde-h2 em.ac{font-style:normal;background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:inherit}
.rde .rde-sub{margin:22px 0 0;font-size:18px;line-height:1.55;color:#bdbcb7;max-width:52ch}
.rde .rde-fine{margin:14px 0 0;font-size:15px;line-height:1.5;color:var(--rde-mute)}

/* the dashboard card: a column whose rows can be re-ordered visually (the outputs wrapper is transparent to layout) */
.rde .rde-dash{position:relative;display:flex;flex-direction:column;border-radius:30px;padding:18px 22px 20px;background:linear-gradient(180deg,#121212,#080808);border:1px solid var(--rde-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 40px 90px -40px rgba(61,139,255,.35)}
.rde .rde-out{display:contents}

/* result: small uppercase caption, then the giant numeral */
.rde .rde-out>.rde-res{order:-2}
.rde .rde-res{position:relative;display:flex;flex-direction:column;min-width:0}
.rde .rde-res>span:first-child{font-family:var(--rde-wide);font-size:15px;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;
  font-weight:600;font-variation-settings:"wdth" 125,"wght" 600;color:var(--rde-mute)}
.rde .rde-num,.rde .rde-odo{align-self:center;display:block;direction:ltr;unicode-bidi:isolate;white-space:nowrap;font-family:var(--rde-wide);
  font-size:min(var(--pf,clamp(56px,21vw,112px)),var(--rde-pfh));line-height:1;letter-spacing:-.01em;margin:8px 0 2px;padding-bottom:.06em;
  font-variant-numeric:tabular-nums;font-weight:700;font-variation-settings:"wdth" 100,"wght" 700;color:var(--rde-w);
  transition:color .45s,text-shadow .45s,filter .45s,font-variation-settings .8s cubic-bezier(.2,.7,.2,1),font-size .7s cubic-bezier(.2,.7,.2,1)}
/* result colour: the site's blue for equity, the amber the calculator already used for a shortfall, white at zero */
.rde[data-rde-state="pos"] :is(.rde-num,.rde-odo){color:var(--rde-blue)}
.rde[data-rde-state="neg"] :is(.rde-num,.rde-odo){color:var(--rde-amber)}
/* the glow sits on the whole numeral (a text-shadow would be cut square by each rolling digit window) */
.rde[data-rde-state="pos"] .rde-num{text-shadow:0 0 34px rgba(61,139,255,.38)}
.rde[data-rde-state="neg"] .rde-num{text-shadow:0 0 34px rgba(245,165,36,.3)}
.rde[data-rde-state="pos"] .rde-odo{filter:drop-shadow(0 0 22px rgba(61,139,255,.4))}
.rde[data-rde-state="neg"] .rde-odo{filter:drop-shadow(0 0 22px rgba(245,165,36,.32))}
/* with the script running, the real figure stays in the page for screen readers and search (clip method)
   and the rolling copy is drawn in its place */
.rde.rde-on .rde-num{position:absolute!important;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.rde .rde-odo{display:inline-flex}
.rde .rde-odo .dc{position:relative;display:inline-block;height:1em;overflow:hidden;vertical-align:top}
.rde .rde-odo .gh{visibility:hidden;display:block}
.rde .rde-odo .stp{position:absolute;left:0;right:0;top:0;text-align:center;transition:transform 1s cubic-bezier(.16,1,.3,1)}
.rde .rde-odo .stp span{display:block;height:1em}
.rde .rde-odo .sc{display:inline-block;height:1em}
.rde .rde-pmw{position:absolute;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;direction:ltr}
.rde .rde-pm{display:inline-block;white-space:nowrap;font-family:var(--rde-wide);font-size:100px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.01em}

/* the verdict sentence under the numeral, tinted by the result */
.rde .rde-out>.rde-say{order:-1}
.rde .rde-say{margin:6px 0 0;padding:11px 14px;border-radius:16px;font-size:15px;line-height:1.5;font-weight:500;color:#e4e3de;
  background:rgba(243,242,238,.05);border:1px solid var(--rde-line);transition:background-color .45s,border-color .45s}
.rde .rde-say.pos{background:rgba(61,139,255,.1);border-color:rgba(61,139,255,.36)}
.rde .rde-say.neg{background:rgba(245,165,36,.1);border-color:rgba(245,165,36,.4)}
/* yes/no checker: its answer box uses the same tints (ok = the site blue, no = the amber it already used) */
.rde .rde-say.ok{background:rgba(61,139,255,.1);border-color:rgba(61,139,255,.36)}
.rde .rde-say.no{background:rgba(245,165,36,.1);border-color:rgba(245,165,36,.4)}
.rde-elig .rde-say{margin-top:var(--rde-gap)}

/* slider fields: label + value on one line, the glowing slider under them */
.rde .rde-fld{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:0 12px;margin:var(--rde-gap) 0 0;font-family:var(--rde-wide);font-size:15px;line-height:1.2;
  text-transform:uppercase;letter-spacing:.08em;font-weight:600;font-variation-settings:"wdth" 125,"wght" 600;color:var(--rde-w);cursor:pointer}
.rde .rde-fld output{font-size:22px;letter-spacing:0;font-weight:800;font-variation-settings:"wdth" 80,"wght" 800;font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
.rde .rde-fld input{grid-column:1/-1}
.rde input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:36px;margin:4px 0 0;padding:0;background:transparent;cursor:pointer;outline:none}
.rde input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(90deg,var(--rde-blue) var(--f,30%),rgba(243,242,238,.16) var(--f,30%));box-shadow:0 0 18px -1px rgba(61,139,255,.55)}
.rde input[type=range]::-moz-range-track{height:6px;border-radius:6px;background:rgba(243,242,238,.16)}
.rde input[type=range]::-moz-range-progress{height:6px;border-radius:6px;background:var(--rde-blue);box-shadow:0 0 18px rgba(61,139,255,.6)}
.rde input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;margin-top:-12px;border-radius:50%;background:#fff;border:7px solid var(--rde-blue);box-shadow:0 0 0 6px rgba(61,139,255,.2),0 0 26px 4px rgba(61,139,255,.75)}
.rde input[type=range]::-moz-range-thumb{box-sizing:content-box;width:16px;height:16px;border-radius:50%;background:#fff;border:7px solid var(--rde-blue);box-shadow:0 0 22px 4px rgba(61,139,255,.75)}
.rde input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px #fff,0 0 26px 6px rgba(61,139,255,.9)}
.rde input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px #fff,0 0 26px 6px rgba(61,139,255,.9)}
[dir=rtl] .rde input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(270deg,var(--rde-blue) var(--f,30%),rgba(243,242,238,.16) var(--f,30%))}

/* yes/no questions: the question in the display face (plain case), then two keys in a dark tray like the
   payment calculator's term keys; the picked key is blue. v9.r650.js marks it with .on; rd-eq.r700.js mirrors
   that into aria-pressed */
.rde .rde-q{margin-top:calc(var(--rde-gap) + 4px)}
.rde .rde-q:first-child{margin-top:2px}
.rde .rde-q>span{display:block;font-family:var(--rde-wide);font-size:17px;line-height:1.35;font-weight:600;font-variation-settings:"wdth" 100,"wght" 600;color:var(--rde-w)}
.rde .rde-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:10px;padding:4px;border-radius:16px;background:#050505;border:1px solid var(--rde-line)}
.rde .rde-keys .chip{all:unset;box-sizing:border-box;min-height:44px;display:grid;place-items:center;padding:0 10px;border-radius:12px;text-align:center;font-family:var(--rde-wide);font-size:16px;line-height:1.2;
  font-weight:700;font-variation-settings:"wdth" 90,"wght" 700;color:#b9b8b3;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .25s,color .25s,box-shadow .25s}
.rde .rde-keys .chip.on{background:var(--rde-blue);color:#050505;box-shadow:0 6px 20px -6px rgba(61,139,255,.9)}
.rde .rde-keys .chip:focus-visible{outline:2px solid #fff;outline-offset:1px}
@media (hover:hover){.rde .rde-keys .chip:not(.on):hover{color:var(--rde-w);background:rgba(243,242,238,.06)}}

/* a clean value row (label in plain case, figure on the right) */
.rde .rde-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-top:var(--rde-gap);padding-top:calc(var(--rde-gap) - 2px);border-top:1px solid var(--rde-line);
  font-size:15px;line-height:1.4;color:#d4d3ce}
.rde .rde-row strong{font-family:var(--rde-wide);font-size:22px;line-height:1.2;letter-spacing:0;font-weight:800;font-variation-settings:"wdth" 80,"wght" 800;color:var(--rde-w);
  font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr;unicode-bidi:isolate}

/* the bright button */
.rde .rde-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-top:var(--rde-gap);padding:0 24px;border-radius:999px;
  font-family:var(--rde-wide);font-size:16px;line-height:1.2;text-align:center;font-weight:700;font-variation-settings:"wdth" 110,"wght" 700;letter-spacing:.01em;text-decoration:none;
  background:var(--rde-blue);color:#050505;border:1.5px solid transparent;box-shadow:0 10px 32px -8px rgba(61,139,255,.85),0 0 0 1px rgba(61,139,255,.35);
  -webkit-tap-highlight-color:transparent;transition:transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.rde .rde-btn::after{content:"";flex:none;width:18px;height:18px;background:currentColor;transition:transform .3s;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
[dir=rtl] .rde .rde-btn::after{transform:scaleX(-1)}
.rde .rde-btn:active{transform:scale(.96)}
.rde .rde-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (hover:hover){
  .rde .rde-btn:hover{box-shadow:0 16px 46px -6px rgba(61,139,255,1),0 0 0 1px rgba(61,139,255,.55)}
  .rde .rde-btn:hover::after{transform:translateX(4px)}
  [dir=rtl] .rde .rde-btn:hover::after{transform:scaleX(-1) translateX(4px)}
}

/* scripts without Latin capitals: no tracking (it breaks Arabic joining), roomier display line height */
.rde:lang(ar) :is(.rde-lab,.rde-res>span:first-child,.rde-fld,.rde-h2),
.rde:lang(pa) :is(.rde-lab,.rde-res>span:first-child,.rde-fld,.rde-h2),
.rde:lang(zh) :is(.rde-lab,.rde-res>span:first-child,.rde-fld,.rde-h2){letter-spacing:0}
.rde:lang(ar) .rde-h2,.rde:lang(pa) .rde-h2{line-height:1.22}
/* Punjabi and Arabic heading without Archivo: it is Latin only, yet it would still supply the space between
   words, and its condensed space runs the device font's wide words together (same rule as rd-calc.css) */
.rde:lang(ar) .rde-h2,.rde:lang(pa) .rde-h2{font-family:"Bricolage","Bricolage Grotesque",system-ui,sans-serif}
.rde:lang(zh) .rde-h2{line-height:1.08}

@media (min-width:900px){
  .rde{scroll-margin-top:70px}
}
@media (max-width:899px){
  .rde .rde-g{grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "d" "t";gap:26px}
  .rde .rde-dash{padding:16px 14px 18px;border-radius:26px}
  .rde .rde-h2{font-size:clamp(44px,12.4vw,92px)}
  .rde input[type=range]{height:44px}
  .rde .rde-fld{font-variation-settings:"wdth" 100,"wght" 600;letter-spacing:.06em}
  .rde .rde-sub{font-size:17px}
  .rde .rde-num,.rde .rde-odo{margin-top:6px}
  /* keyboard focus scrolls a control just into view: keep it clear of the fixed header above and the
     fixed back-to-top dock below (18px + 42px, proto.css, plus 12px) */
  .rde :is(input[type=range],.rde-keys .chip,.rde-btn){scroll-margin-block:80px 72px}
}
@media (max-width:899px) and (max-height:760px){
  .rde{--rde-gap:10px}
  .rde .rde-dash{padding-top:14px;padding-bottom:16px}
  .rde .rde-fld output,.rde .rde-row strong{font-size:20px}
  .rde .rde-say{padding:9px 12px;line-height:1.45}
  .rde .rde-btn{min-height:48px}
}

@media (prefers-reduced-motion:reduce){
  .rde :is(.rde-num,.rde-odo,.rde-odo .stp,.rde-say,.rde-keys .chip,.rde-btn,.rde-btn::after){transition:none}
  .rde .rde-btn:active{transform:none}
}
html.reduced .rde :is(.rde-num,.rde-odo,.rde-odo .stp,.rde-say,.rde-keys .chip){transition:none}
/* Spacing pass (owner 2026-11-14): as rd-calc.css — on two columns the description stays right under its heading
   instead of sharing the card's extra height with it. Layout only; phones (one column) unchanged. Linked ?v=rd2. */
@media (min-width:900px){.rde .rde-g{grid-template-rows:auto 1fr}}
/* Alignment pass (owner on his iPhone, 2026-11-14: "align anything that is misaligned or the space is not efficiently
   used"). Layout only, as rd-calc: on phones the description after the card sits at the grid gap (was gap + 22px); the
   eyebrow wraps in balanced lines. Linked ?v=rd3m. */
.rde .rde-lab{text-wrap:balance}
@media (max-width:899px){.rde .rde-sub{margin-top:0}}
