/* rd-calc — gauge payment estimator (redesign item 1, owner-approved final prototype "Get Pre-Approved").
   Two columns on desktop (label + heading top-left, description bottom-left, dashboard card right);
   stacked on phones (heading, card, description). The card: dashboard gauge with an amber needle,
   a giant rolling payment numeral, the summary line, a glowing vehicle-amount slider, term keys,
   a rate slider, fine print and the "real rate" button. Everything is scoped under .rdc.
   Owner change list 2026-11-11 (item 5): a Monthly | Bi-weekly switch in the top row, typed entry in the
   big values (price, term, rate), the rate slider, and a "Sales tax [province] 12%  +$3,600" line under
   the price. Behaviour lives in assets/js/rd-calc.r701.js. Linked ?v=rd2. */
@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}

.rdc{--rdc-w:#f3f2ee;--rdc-mute:#a3a29d;--rdc-blue:#3d8bff;--rdc-line:rgba(243,242,238,.16);
  --rdc-gap:14px;--rdc-gwh:236px;--rdc-pfh:116px;   /* spacing / gauge / numeral caps: tightened on short screens below */
  --rdc-wide:"Archivo","Bricolage","Bricolage Grotesque",system-ui,sans-serif;
  --rdc-body:"Jakarta","Plus Jakarta Sans","Inter",system-ui,sans-serif;
  position:relative;color:var(--rdc-w);font-family:var(--rdc-body)}
.rdc .rdc-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}
.rdc .rdc-g>*{margin-top:0}
.rdc .rdc-h{grid-area:h;min-width:0}
.rdc .rdc-t{grid-area:t;min-width:0}
.rdc .rdc-dash{grid-area:d;min-width:0}

/* left column: label with the blue dot, giant condensed heading, description */
.rdc .rdc-lab{display:flex;align-items:center;gap:10px;margin:0;font-family:var(--rdc-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(--rdc-w)}
.rdc .rdc-lab::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--rdc-blue);flex:none}
.rdc .rdc-h2{margin:16px 0 0;font-family:var(--rdc-wide);font-weight:800;font-size:clamp(50px,7.4vw,118px);line-height:.86;text-transform:uppercase;
  font-variation-settings:"wdth" 62,"wght" 900;letter-spacing:-.005em;text-wrap:balance;color:var(--rdc-w)}
.rdc .rdc-h2 em.ac{font-style:normal;background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:inherit}
.rdc .rdc-sub{margin:22px 0 0;font-size:18px;line-height:1.55;color:#bdbcb7;max-width:52ch}

/* the dashboard card */
.rdc .rdc-dash{position:relative;border-radius:30px;padding:18px 22px 20px;background:linear-gradient(180deg,#121212,#080808);border:1px solid var(--rdc-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 40px 90px -40px rgba(61,139,255,.35)}
.rdc .rdc-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;font-family:var(--rdc-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(--rdc-mute)}
/* the label may take two lines before the switch drops to a line of its own */
.rdc .rdc-top>span:first-child{flex:1 1 0;min-width:min-content}

/* Monthly | Bi-weekly: a slim segmented switch, styled like the term keys */
.rdc .rdc-freq{flex:none;display:inline-flex;gap:2px;margin-inline-start:auto;padding:3px;border-radius:12px;background:#050505;border:1px solid var(--rdc-line)}
.rdc .rdc-freq[hidden]{display:none}
.rdc .rdc-freq button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 12px;border-radius:9px;
  font-family:var(--rdc-wide);font-size:13px;line-height:1.1;font-weight:700;font-variation-settings:"wdth" 100,"wght" 700;letter-spacing:.01em;text-transform:none;white-space:nowrap;
  color:#b9b8b3;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .25s,color .25s,box-shadow .25s}
.rdc .rdc-freq button[aria-pressed="true"]{background:var(--rdc-blue);color:#050505;box-shadow:0 4px 16px -6px rgba(61,139,255,.9)}
.rdc .rdc-freq button:focus-visible{outline:2px solid #fff;outline-offset:1px}
@media (hover:hover){.rdc .rdc-freq button[aria-pressed="false"]:hover{color:var(--rdc-w);background:rgba(243,242,238,.06)}}
.rdc .rdc-gw{position:relative;width:min(180px,60%,var(--rdc-gwh));aspect-ratio:1/1;margin:2px auto 0}
/* no JavaScript (or the script failed): the dial is drawn by rd-calc.r701.js, so an empty box would be
   a blank square; hide it and let the static $511/mo sit under the top row */
.rdc .rdc-gw:empty{display:none}
.rdc .rdc-gw:empty+.rdc-pay{margin-top:6px}
.rdc .rdc-gw svg{display:block;width:100%;height:auto}
.rdc .rdc-gw text{font-family:var(--rdc-wide)}

/* giant rolling payment numeral: each digit is a 0-9 strip that slides to its value */
.rdc .rdc-pay{display:flex;align-items:baseline;justify-content:center;gap:10px;margin-top:-6px;white-space:nowrap;overflow:hidden;position:relative;padding-bottom:.06em}
.rdc .rdc-odo{display:inline-flex;direction:ltr;unicode-bidi:isolate;font-family:var(--rdc-wide);font-size:min(var(--pf,112px),var(--rdc-pfh));line-height:1;letter-spacing:-.01em;
  font-variant-numeric:tabular-nums;font-weight:600;font-variation-settings:"wdth" 100,"wght" 700;
  transition:font-variation-settings .8s cubic-bezier(.2,.7,.2,1),font-size .7s cubic-bezier(.2,.7,.2,1)}
.rdc .rdc-odo .dc{position:relative;display:inline-block;height:1em;overflow:hidden;vertical-align:top}
.rdc .rdc-odo .gh{visibility:hidden;display:block}
.rdc .rdc-odo .stp{position:absolute;left:0;right:0;top:0;text-align:center;transition:transform 1s cubic-bezier(.16,1,.3,1)}
.rdc .rdc-odo .stp span{display:block;height:1em}
.rdc .rdc-odo .sc{display:inline-block;height:1em}
.rdc .rdc-cu{font-family:var(--rdc-wide);font-size:22px;line-height:1.2;color:var(--rdc-blue);font-weight:700;font-variation-settings:"wdth" 125,"wght" 700}
.rdc .rdc-pm{position:absolute;visibility:hidden;white-space:nowrap;font-family:var(--rdc-wide);font-size:100px;line-height:1;font-variant-numeric:tabular-nums;left:0;top:0;pointer-events:none}
.rdc .rdc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.rdc .rdc-meta{margin:4px 0 0;text-align:center;font-size:15px;line-height:1.5;color:var(--rdc-mute)}

/* vehicle amount, term and rate rows: label at the start, the big value at the end */
.rdc .rdc-fld{margin-top:var(--rdc-gap)}
.rdc .rdc-lb{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;font-family:var(--rdc-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(--rdc-w);cursor:default}
.rdc .rdc-lb>:first-child{min-width:0}
.rdc .rdc-lb label{cursor:pointer}
.rdc .rdc-v{font-family:var(--rdc-wide);font-size:22px;line-height:1.2;letter-spacing:0;font-weight:800;font-variation-settings:"wdth" 80,"wght" 800;font-variant-numeric:tabular-nums;
  color:var(--rdc-w);white-space:nowrap;direction:ltr;unicode-bidi:isolate;text-transform:none}
.rdc .rdc-vr{color:var(--rdc-blue)}
/* typed entry: the big value is an input that looks like the value, with a dashed underline that says
   "you can type here"; on focus it becomes a lit field */
.rdc input.rdc-in{-webkit-appearance:none;appearance:none;flex:none;box-sizing:content-box;min-width:1.5ch;max-width:62%;margin:0 -4px 0 0;padding:1px 4px 2px;border:0;border-bottom:1.5px dashed rgba(243,242,238,.4);
  border-radius:7px 7px 0 0;background:transparent;text-align:end;caret-color:var(--rdc-blue);cursor:text;outline:none;
  transition:border-color .2s,background-color .2s,box-shadow .2s}
[dir=rtl] .rdc input.rdc-in{margin:0 0 0 -4px}
.rdc input.rdc-vr.rdc-in{border-bottom-color:rgba(61,139,255,.55)}
.rdc input.rdc-in:focus{background:rgba(61,139,255,.14);border-bottom-color:transparent;border-radius:7px;box-shadow:0 0 0 2px var(--rdc-blue)}
@media (hover:hover){.rdc input.rdc-in:hover{border-bottom-color:var(--rdc-blue)}}
.rdc .rdc-mz{position:absolute;left:0;top:0;visibility:hidden;white-space:pre;pointer-events:none}
/* a typed value outside the range is brought back into it: a short amber note under the value */
.rdc .rdc-hint{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:3;padding:5px 9px;border-radius:9px;background:#ffb547;color:#140d00;
  font-family:var(--rdc-body);font-size:13px;line-height:1.25;font-weight:700;letter-spacing:0;text-transform:none;font-variation-settings:normal;white-space:nowrap;
  pointer-events:none;opacity:0;transform:translateY(-3px);transition:opacity .2s,transform .2s}
.rdc .rdc-hint.on{opacity:1;transform:none}

/* "Sales tax [BC] 12%   +$3,600" under the price: the chip is a native select (the list opens in the
   device's own picker), drawn as a small blue chip with a pin and a caret */
.rdc .rdc-tax{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:0;font-size:14px;line-height:1.3;color:var(--rdc-mute)}
.rdc .rdc-tax[hidden]{display:none}
.rdc .rdc-tl{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0}
.rdc .rdc-prov{position:relative;display:inline-flex;flex:none}
.rdc .rdc-prov select{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;font-size:16px;-webkit-appearance:none;appearance:none;color:#111;background:#fff}
.rdc .rdc-chip{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 9px 0 8px;border-radius:999px;border:1px solid rgba(61,139,255,.6);background:rgba(61,139,255,.12);
  color:var(--rdc-w);font-family:var(--rdc-wide);font-size:13px;line-height:1;font-weight:700;font-variation-settings:"wdth" 100,"wght" 700;letter-spacing:.04em;direction:ltr;transition:background-color .2s}
.rdc .rdc-chip::before,.rdc .rdc-chip::after{content:"";flex:none;background:currentColor}
.rdc .rdc-chip::before{width:12px;height:12px;background:var(--rdc-blue);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%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'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat}
.rdc .rdc-chip::after{width:10px;height:10px;
  -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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat}
.rdc .rdc-prov:focus-within .rdc-chip{outline:2px solid #fff;outline-offset:2px}
@media (hover:hover){.rdc .rdc-prov:hover .rdc-chip{background:rgba(61,139,255,.24)}}
.rdc .rdc-tp{color:var(--rdc-w);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr;unicode-bidi:isolate}
.rdc .rdc-tv{font-family:var(--rdc-wide);font-size:17px;line-height:1.2;font-weight:800;font-variation-settings:"wdth" 80,"wght" 800;color:var(--rdc-w);font-variant-numeric:tabular-nums;
  white-space:nowrap;direction:ltr;unicode-bidi:isolate}

/* glowing amount / rate sliders */
.rdc 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}
.rdc input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(90deg,var(--rdc-blue) var(--f,26%),rgba(243,242,238,.16) var(--f,26%));box-shadow:0 0 18px -1px rgba(61,139,255,.55)}
.rdc input[type=range]::-moz-range-track{height:6px;border-radius:6px;background:rgba(243,242,238,.16)}
.rdc input[type=range]::-moz-range-progress{height:6px;border-radius:6px;background:var(--rdc-blue);box-shadow:0 0 18px rgba(61,139,255,.6)}
.rdc 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(--rdc-blue);box-shadow:0 0 0 6px rgba(61,139,255,.2),0 0 26px 4px rgba(61,139,255,.75)}
.rdc input[type=range]::-moz-range-thumb{box-sizing:content-box;width:16px;height:16px;border-radius:50%;background:#fff;border:7px solid var(--rdc-blue);box-shadow:0 0 22px 4px rgba(61,139,255,.75)}
.rdc input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px #fff,0 0 26px 6px rgba(61,139,255,.9)}
.rdc 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] .rdc input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(270deg,var(--rdc-blue) var(--f,26%),rgba(243,242,238,.16) var(--f,26%))}

/* term keys */
.rdc .rdc-keys{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:8px;padding:4px;border-radius:16px;background:#050505;border:1px solid var(--rdc-line)}
.rdc .rdc-keys button{all:unset;box-sizing:border-box;min-height:42px;display:grid;place-items:center;border-radius:12px;font-family:var(--rdc-wide);font-size:16px;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}
.rdc .rdc-keys button[aria-pressed="true"]{background:var(--rdc-blue);color:#050505;box-shadow:0 6px 20px -6px rgba(61,139,255,.9)}
.rdc .rdc-keys button:focus-visible{outline:2px solid #fff;outline-offset:1px}
@media (hover:hover){.rdc .rdc-keys button[aria-pressed="false"]:hover{color:var(--rdc-w);background:rgba(243,242,238,.06)}}

/* fine print, button */
.rdc .rdc-fine{margin:calc(var(--rdc-gap) - 4px) 0 0;font-size:15px;line-height:1.5;color:var(--rdc-mute)}
.rdc .rdc-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-top:var(--rdc-gap);padding:0 24px;border-radius:999px;
  font-family:var(--rdc-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(--rdc-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}
.rdc .rdc-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] .rdc .rdc-btn::after{transform:scaleX(-1)}
.rdc .rdc-btn:active{transform:scale(.96)}
.rdc .rdc-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (hover:hover){
  .rdc .rdc-btn:hover{box-shadow:0 16px 46px -6px rgba(61,139,255,1),0 0 0 1px rgba(61,139,255,.55)}
  .rdc .rdc-btn:hover::after{transform:translateX(4px)}
  [dir=rtl] .rdc .rdc-btn:hover::after{transform:scaleX(-1) translateX(4px)}
}

/* scripts without Latin capitals: no tracking (it breaks Arabic joining), roomier display line height */
.rdc:lang(ar) :is(.rdc-lab,.rdc-top,.rdc-lb,.rdc-h2,.rdc-cu,.rdc-freq button,.rdc-chip),
.rdc:lang(pa) :is(.rdc-lab,.rdc-top,.rdc-lb,.rdc-h2,.rdc-cu,.rdc-freq button,.rdc-chip),
.rdc:lang(zh) :is(.rdc-lab,.rdc-top,.rdc-lb,.rdc-h2,.rdc-cu,.rdc-freq button,.rdc-chip){letter-spacing:0}
.rdc:lang(ar) .rdc-h2,.rdc:lang(pa) .rdc-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 (.11em at wdth 62) runs the device font's wide words together. Bricolage's space (.22em)
   is the word gap this heading has on the live site. Chinese has no spaces between words. */
.rdc:lang(ar) .rdc-h2,.rdc:lang(pa) .rdc-h2{font-family:"Bricolage","Bricolage Grotesque",system-ui,sans-serif}
.rdc:lang(zh) .rdc-h2{line-height:1.08}
/* French: the accent of "MENSUALITÉ" touched the line above at .86 (final audit 2026-11-12); .93 clears it */
.rdc:lang(fr) .rdc-h2{line-height:.93}

@media (min-width:900px){
  .rdc{scroll-margin-top:70px}
}
@media (max-width:899px){
  .rdc .rdc-g{grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "d" "t";gap:26px}
  .rdc .rdc-dash{padding:16px 14px 18px;border-radius:26px}
  .rdc .rdc-gw{width:min(236px,66%,var(--rdc-gwh))}
  .rdc input[type=range]{height:40px;margin-top:2px}
  .rdc .rdc-keys button{min-height:42px}
  .rdc .rdc-top{font-size:14px;letter-spacing:.06em;gap:8px 10px}
  .rdc .rdc-freq button{min-height:30px;padding:0 10px;font-size:12.5px}
  .rdc .rdc-v{font-size:21px;line-height:1.1}
  .rdc input.rdc-in{padding:1px 4px}
  .rdc .rdc-tax{margin-top:-4px}
  .rdc .rdc-sub{font-size:17px}
  .rdc .rdc-meta{font-size:14px}
  /* keyboard focus scrolls a control just into view, at the screen's edge: keep it clear of the fixed header above
     (--rdc-hd, measured by rd-calc.r701.js) and the fixed back-to-top dock below (18px + 42px, plus 12px) */
  .rdc :is(input,select,.rdc-keys button,.rdc-freq button,.rdc-btn){scroll-margin-block:calc(var(--rdc-hd,68px) + 12px) 72px}
}
/* seven term keys stay on one row down to 340px (each key is still 38px wide at 360px) */
@media (max-width:339px){.rdc .rdc-keys{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* height-aware compaction (owner: "card compacted to fit one screen"): the card fits between the fixed
   header and the bottom of the screen where the screen allows it. Gaps tighten in steps as the screen gets
   shorter. What is left for the gauge + numeral is
     room = screen - header (--rdc-hd) - the rest of the card (--rdc-F) - air below the card (--rdc-air);
   the numeral takes 40% of it (between its floor --rdc-pfmin and its preferred height-scaled size --rdc-pfa)
   and the gauge the rest, down to its floor --rdc-gwmin. With the owner's 2026-11-11 controls (rate slider,
   typed values, Monthly | Bi-weekly, the sales-tax line) the rest of the card is ~90px taller than before, so on
   the shortest phones the floors win and the card runs a little past the screen instead of shrinking the
   gauge to nothing. The --rdc-F / --rdc-hd figures below are the English measurements, used until
   rd-calc.r701.js measures the real header and card in the current language and sets them on the section.
   The description keeps 18px / 17px. Phones in landscape keep the normal card: no height could hold it there.
   On phones the air below the card is the room the fixed back-to-top dock takes (18px + 42px, proto.css, plus 12px
   less the card's own bottom padding), so the card's last row, the button, sits above the dock instead of under it. */
@media (min-width:900px) and (max-height:900px),(max-width:899px) and (orientation:portrait){
  .rdc{--rdc-room:calc(100svh - var(--rdc-hd,75px) - var(--rdc-F,480px) - var(--rdc-air,9px));
    --rdc-pfh:clamp(var(--rdc-pfmin,72px),var(--rdc-room) * .4,var(--rdc-pfa,116px));
    --rdc-gwh:max(var(--rdc-gwmin,110px),var(--rdc-room) - var(--rdc-pfh))}
}
@media (min-width:900px) and (max-height:860px){
  .rdc{--rdc-gap:10px;--rdc-F:470px;--rdc-hd:75px;--rdc-gwmin:110px;--rdc-pfmin:72px;--rdc-pfa:clamp(84px,33svh - 138px,116px)}
  .rdc .rdc-dash{padding-top:16px;padding-bottom:18px}
}
@media (min-width:900px) and (max-height:700px){
  .rdc{--rdc-gap:8px;--rdc-F:450px}
  .rdc .rdc-dash{padding-top:14px;padding-bottom:16px}
  .rdc .rdc-v{font-size:20px}
}
@media (min-width:900px) and (min-height:861px) and (max-height:900px){
  .rdc{--rdc-F:498px;--rdc-hd:75px;--rdc-gwmin:110px;--rdc-pfmin:72px;--rdc-pfa:116px}
}
@media (max-width:899px) and (orientation:portrait){
  .rdc{--rdc-hd:68px;--rdc-F:540px;--rdc-gwmin:100px;--rdc-pfmin:60px;--rdc-pfa:clamp(88px,25svh - 100px,112px);--rdc-air:56px}
}
@media (max-width:899px) and (max-height:900px) and (orientation:portrait){
  .rdc{--rdc-gap:9px;--rdc-F:500px}
  .rdc .rdc-dash{padding-top:14px;padding-bottom:16px}
}
@media (max-width:899px) and (max-height:760px) and (orientation:portrait){
  .rdc{--rdc-gap:8px;--rdc-F:480px;--rdc-pfa:clamp(64px,20svh - 66px,100px)}
  .rdc .rdc-dash{padding-top:12px;padding-bottom:14px}
  .rdc .rdc-v{font-size:20px}
  .rdc .rdc-keys{margin-top:6px}
  .rdc .rdc-meta{margin-top:2px}
  .rdc .rdc-fine{line-height:1.4}
  .rdc .rdc-btn{min-height:48px}
}
/* the narrowest phones: row labels, summary and fine print one step smaller so they keep their lines */
@media (max-width:380px) and (max-height:900px) and (orientation:portrait){.rdc{--rdc-F:520px;--rdc-gwmin:92px;--rdc-pfmin:56px}}
@media (max-width:380px){
  .rdc .rdc-lb{font-size:14px;letter-spacing:.06em}
  .rdc .rdc-v{font-size:19px}
  .rdc .rdc-meta,.rdc .rdc-fine{font-size:14px}
  .rdc .rdc-top{font-size:13px}
  .rdc .rdc-freq button{padding:0 8px;font-size:12px}
}

@media (prefers-reduced-motion:reduce){
  .rdc .rdc-odo,.rdc .rdc-odo .stp,.rdc .rdc-keys button,.rdc .rdc-btn,.rdc .rdc-btn::after{transition:none}
  .rdc .rdc-btn:active{transform:none}
}
html.reduced .rdc .rdc-odo,html.reduced .rdc .rdc-odo .stp{transition:none}
/* Spacing pass (owner 2026-11-14, "align them better and use the space in a better way"). Two columns: the description
   sits right under its heading. The card spans both rows of the left column, and with two auto rows the grid shared the
   card's extra height between them, so the description floated ~200px below the heading (the card grew with the
   owner's tax line and rate slider). The first row now keeps its own height and the second takes the rest.
   Layout only; phones (one column, below 900px) are unchanged. Linked ?v=rd4. */
@media (min-width:900px){.rdc .rdc-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. Phones (one column, below 900px): the description that follows the card kept its 22px top margin
   on top of the grid's 26px gap, so it read as a separate block ~50px under the card; it now sits at the grid gap, as the
   card's own caption. The eyebrow wraps in balanced lines. Linked ?v=rd5m. */
.rdc .rdc-lab{text-wrap:balance}
@media (max-width:899px){.rdc .rdc-sub{margin-top:0}}
/* Trade-in value | Loan owing on trade-in | Down payment (owner 2026-11-20: "you forgot to add the trading value and then
   lean or loan on the trade and then also add another column for down payment"). Three typed fields in ONE compact row,
   in the vehicle-amount group under the price slider and its sales-tax line: a small label (the size and colour of
   "Sales tax") over a value you type in, drawn exactly like the price value: the value with its dashed underline (the
   same typed entry; behaviour and arithmetic in assets/js/rd-calc.r702.js). The whole cell takes the tap. One row keeps
   the card's growth to a label line and a value line. The first field sits at the card's start edge, the last at its end
   edge (under "+$3,600", as the values above it) and the middle one between them. The columns take the width their
   label needs (the middle label is the long one in every language), so in English the three labels stay on one line
   from 390px up; a longer translation or a narrower phone wraps a label onto a second line, never the row. A column is
   never narrower than the widest value ($250,000), so nothing moves while typing. Where the screen's height sizes the
   gauge ("height-aware compaction" above), rd-calc.r702.js measures the taller card and the gauge and numeral give up
   the room, down to their floors. Pages still on the r701 markup have no .rdc-x3: nothing here applies to them.
   Linked ?v=rd6. */
.rdc .rdc-x3{display:grid;grid-template-columns:repeat(3,minmax(84px,auto));gap:0 8px;margin-top:8px}
.rdc .rdc-x{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-width:0;cursor:text}
.rdc .rdc-x:nth-child(2){align-items:center;text-align:center}
.rdc .rdc-x:nth-child(3){align-items:flex-end;text-align:end}
.rdc .rdc-x label{display:block;align-self:stretch;margin:0;font-family:var(--rdc-body);font-size:14px;line-height:1.25;font-weight:400;letter-spacing:0;text-transform:none;
  color:var(--rdc-mute);text-wrap:balance;overflow-wrap:break-word;cursor:pointer}
.rdc:lang(pa) .rdc-x label,.rdc:lang(ar) .rdc-x label{line-height:1.4}
/* the value: 18px (iOS zooms the page when a field under 16px takes focus). The static <b> (before the script turns it
   into the field) has the field's exact box, so the swap moves nothing. The size is also read by the script's
   measuring span, so it is set on the value class alone; the box only inside a cell. The value is always written left
   to right ($10,000: direction ltr on the value itself), so its alignment and its 4px outdent are physical (logical
   properties would follow the value's own direction): start / centre / end of the row, mirrored by hand in Arabic. */
.rdc .rdc-v.rdc-vx{font-size:18px;line-height:22.5px}
.rdc .rdc-x .rdc-v.rdc-vx{display:block;box-sizing:content-box;height:22.5px;max-width:calc(100% - 4px);margin:0 0 0 -4px;padding:1px 4px;text-align:left}
.rdc .rdc-x:nth-child(2) .rdc-v.rdc-vx{max-width:calc(100% - 8px);margin:0;text-align:center}
.rdc .rdc-x:nth-child(3) .rdc-v.rdc-vx{margin:0 -4px 0 0;text-align:right}
[dir=rtl] .rdc .rdc-x:nth-child(1) .rdc-v.rdc-vx{margin:0 -4px 0 0;text-align:right}
[dir=rtl] .rdc .rdc-x:nth-child(3) .rdc-v.rdc-vx{margin:0 0 0 -4px;text-align:left}
.rdc .rdc-x b.rdc-vx{border-bottom:1.5px solid transparent}
/* the amber "Maximum $250,000" note opens under its own field: from the field's start edge, the last one from its end
   edge, so it never leaves the card */
.rdc .rdc-x .rdc-hint{inset-inline:0 auto}
.rdc .rdc-x:last-child .rdc-hint{inset-inline:auto 0}
@media (max-width:899px){
  .rdc .rdc-x3{margin-top:6px}
  .rdc .rdc-x label{font-size:12.5px}
}
