/* calc-v2: the 2026-10-31 calculator design (first shipped on /gst-hst-calculator), shared by the
   calculator pages converted by scripts/apply-calc-v2.py. Everything is scoped under .cx-hero so the
   rest of each page keeps its own styles. Edit here, not in the pages. */

.cx-hero{--cx-green:#166534;--cx-green-dark:#14532d;--cx-navy:#0b1f4b;--cx-muted:#53637a;--cx-line:#dce6ef;
  --cx-red:#dc2626;--cx-mint:#99ff99;
  --cx-soft:#dcfce7; /* the Quick Answer box colour: inactive mode button, amount field, Total row, invoice panel */
  padding:100px 24px 48px;min-height:0;display:block;text-align:left;background:linear-gradient(180deg,#f5faff 0%,#fff 100%);color:var(--cx-navy);}
.cx-hero *{box-sizing:border-box;}
/* A notice placed above the calculator (reverse-qst Quebec note) must clear the fixed header: the hidden
   breadcrumbs used to give that space. The hero then needs no header clearance of its own. */
main > [role="note"]:first-child{margin-top:100px;}
main > [role="note"]:first-child + .cx-hero{padding-top:28px;}
/* A table in the left column scrolls inside its own box instead of widening the page. */
.cx-hero .cx-copy > .ict-after{min-width:0;max-width:100%;}
#breadcrumbs-container{display:none !important;}

.cx-head{max-width:1180px;margin:0 auto 18px;}
.cx-head .hero-description{margin-bottom:0;}
.cx-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:56px;align-items:start;}
.cx-copy{min-width:0;}
.cx-calc{min-width:0;}

/* Left column */
.cx-hero .hero-badge{display:inline-flex;align-items:center;gap:.5rem;margin:0 0 10px;}
.cx-hero h1.hero-title{font-weight:800;font-size:clamp(26px,3.2vw,30px);line-height:1.15;letter-spacing:-0.03em;color:var(--cx-navy);margin:0 0 8px;text-align:left;}
.cx-hero h1.hero-title .highlight{color:var(--cx-green);}
.cx-hero .hero-description{font-size:16px;line-height:1.55;color:#334155;margin:0 0 18px;max-width:none;text-align:left;}
.cx-hero .cx-qa{margin:0 0 20px !important;max-width:none !important;text-align:left !important;padding:14px 18px !important;}

/* iBill Features box */
.cx-hero .sft-box{border:2px solid var(--cx-green);border-radius:16px;background:#fff;padding:24px 26px;}
.cx-hero .sft-title{font-weight:800;font-size:24px;letter-spacing:-0.01em;color:var(--cx-green-dark);margin:0 0 14px;}
.cx-hero .sft-list{list-style:none;margin:0;padding:0;min-height:calc(8 * 1.4em);font-size:22px;line-height:1.4;color:var(--cx-navy);transition:opacity .6s ease;}
.cx-hero .sft-list.sft-fade{opacity:0;}
.cx-hero .sft-list li{display:flex;align-items:flex-start;gap:12px;margin:0;}
.cx-hero .sft-list li::before{content:'';flex:0 0 auto;width:.85em;height:.85em;margin-top:.275em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 6 19 12 13 18'/%3E%3C/svg%3E") no-repeat center/contain;}
.cx-hero .sft-btn{display:block;width:max-content;max-width:100%;margin:22px auto 0;padding:13px 34px;border-radius:10px;background:var(--cx-green);color:#fff;font-weight:800;font-size:16px;text-decoration:none;text-align:center;}
.cx-hero .sft-btn:hover{filter:brightness(1.08);}
.cx-hero .sft-btn:focus-visible{outline:3px solid rgba(8,116,67,.35);outline-offset:2px;}
@media(prefers-reduced-motion:reduce){.cx-hero .sft-list{transition:none;}}

/* Calculator card */
.cx-hero .calculator-card{background:#fff;border:1px solid #e3eaf2;border-radius:16px;box-shadow:0 14px 40px rgba(11,31,75,.08);padding:16px 20px;margin:0;max-width:none;text-align:left;}
.cx-hero .calculator-title{font-size:20px;font-weight:800;letter-spacing:-0.02em;color:var(--cx-navy);margin:0 0 2px;text-align:left;}
.cx-hero .calculator-subtitle{font-size:13px;color:var(--cx-muted);margin:0 0 10px;text-align:left;}
.cx-hero .calc-mode-toggle{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 10px;padding:0;background:none;border:0;}
.cx-hero .calc-mode-btn{border:0;border-radius:10px;padding:10px;font-weight:800;font-size:14px;cursor:pointer;background:var(--cx-soft);color:var(--cx-navy);transition:background .2s,color .2s;}
.cx-hero .calc-mode-btn.active{background:var(--cx-green);color:#fff;}
.cx-hero .calc-mode-btn:focus-visible,.cx-hero .cx-quick button:focus-visible{outline:3px solid rgba(8,116,67,.35);outline-offset:2px;}
.cx-hero .calc-input-group{margin:0 0 10px;}
.cx-hero .cx-amount-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 6px;}
.cx-hero .calc-label{font-size:14px;font-weight:800;color:var(--cx-navy);margin:0 0 6px;text-transform:none;letter-spacing:0;display:block;}
.cx-hero .cx-amount-head .calc-label{margin:0;}
.cx-hero .cx-quick{display:flex;flex-wrap:wrap;gap:8px;}
.cx-hero .cx-quick button{border:1px solid #d7e4ef;background:#f2f7fc;color:var(--cx-navy);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;min-height:30px;cursor:pointer;}
.cx-hero .cx-quick button:hover{border-color:var(--cx-green);color:var(--cx-green);}
.cx-hero .calc-input,.cx-hero .province-select{width:100%;height:44px;border:1px solid #cfd9e5;border-radius:8px;padding:0 14px;font-size:17px;font-weight:600;color:var(--cx-navy);background-color:var(--cx-soft);text-align:left;}
.cx-hero .calc-input:focus,.cx-hero .province-select:focus{outline:none;border-color:var(--cx-green);box-shadow:0 0 0 3px rgba(8,116,67,.12);}

/* Results + tax-rate ring */
.cx-hero .calc-results{border-top:1px solid var(--cx-line);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;align-items:center;margin:0;padding:10px 14px;border:1px solid var(--cx-line);border-radius:10px;background:#fbfdff;}
.cx-hero .calc-results > .calc-result-row{grid-column:1;}
.cx-hero .calc-result-row{display:flex;justify-content:space-between;padding:5px 0;font-size:14px;color:#334155;border:0;gap:10px;}
.cx-hero .calc-result-value{font-weight:700;color:var(--cx-navy);}
.cx-hero .calc-result-row.total{margin:6px 0 0;padding:8px 12px;border-radius:8px;background:var(--cx-soft);border:0;font-size:16px;}
.cx-hero .calc-result-row.total .calc-result-label,.cx-hero .calc-result-row.total .calc-result-value{color:#0b5f3b;font-weight:800;}
.cx-hero .calc-result-row.total .calc-result-value{font-size:20px;}
/* A row the page script hides (e.g. no provincial tax in Alberta) must disappear: the row's own display:flex beat [hidden]. */
.cx-hero .calc-result-row[hidden]{display:none;}
.cx-ring{grid-column:2;grid-row:1 / span 8;position:relative;width:96px;height:96px;}
.cx-ring svg{width:100%;height:100%;transform:rotate(-90deg);}
.cx-ring-bg{stroke:var(--cx-mint);}
.cx-ring-arc{stroke:var(--cx-red);stroke-linecap:round;transition:stroke-dasharray .7s cubic-bezier(.4,0,.2,1);}
.cx-ring-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;}
.cx-ring-pct{font-size:20px;font-weight:800;color:var(--cx-red);line-height:1;}
.cx-ring-pct.cx-long{font-size:15px;letter-spacing:-0.02em;}
.cx-ring-lbl{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--cx-muted);margin-top:4px;}
.cx-hero .calc-formula-box{display:none;}
.cx-hero .calc-rounding-note{margin:4px 0 0 !important;font-size:12px !important;}
.cx-hero .calc-note{margin:8px 0 0;padding:8px 12px;font-size:13px;line-height:1.45;border-radius:8px;}
/* Two-sentence notes: one sentence per line, centred (owner 2026-10-31) */
.cx-hero .cx-line{display:block;}
.cx-hero .calc-note,.cx-hero .calculator-cta p{text-align:center;}

/* Cards built by scripts/build-calculator-tools.py (.ict): same colours */
.cx-hero .ict-mode{background:none;border:0;padding:0;gap:6px;margin:10px 0 12px;}
.cx-hero .ict-mode button{background:var(--cx-soft);color:var(--cx-navy);font-weight:800;border-radius:10px;}
.cx-hero .ict-mode button[aria-pressed="true"]{background:var(--cx-green);color:#fff;box-shadow:none;}
.cx-hero .ict-select,.cx-hero .ict-input-wrap{background-color:var(--cx-soft);}
.cx-hero .ict-input{background:transparent;}
.cx-hero .ict-row-total{background:var(--cx-soft);border-radius:8px;padding-left:12px;padding-right:12px;}

/* One invoice prompt only: the page scripts add a second "Need to invoice this amount?" panel after
   the first result, which now shows at once (the box starts at 100). The panel under the card stays. */
.cx-hero #result-cta-inline{display:none !important;}

/* Invoice call-to-action under the card: compact light-green panel */
.cx-hero .calculator-cta{margin:12px 0 0 !important;padding:12px 16px;border-radius:12px;background:var(--cx-soft);border:1px solid #86efac;color:var(--cx-navy);text-align:center;}
.cx-hero .calculator-cta h3,.cx-hero .calculator-cta h2{font-size:15px;font-weight:800;color:var(--cx-navy);margin:0 0 4px;}
.cx-hero .calculator-cta p{font-size:13px;color:#334155;opacity:1;margin:0 auto 8px;}
.cx-hero .calculator-cta .btn{background:var(--cx-green);color:#fff;padding:8px 20px;border-radius:999px;font-size:13px;font-weight:700;}
.cx-hero .calculator-cta .btn:hover{transform:none;box-shadow:none;filter:brightness(1.08);}
.cx-hero .calculator-cta .trust-line{margin-top:6px;font-size:12px;color:var(--cx-muted);opacity:1;}

/* ---- Wave 2 pages (2026-11-02) ---- */
/* CCA: the calculator follows the page's own green header and tabs, which already clear the fixed header. */
.cx-hero[data-cx-after]{padding-top:28px;}
/* Ontario's own .hero rule caps the width at 1200px; the calculator band runs edge to edge like the others. */
section.cx-hero{max-width:none;}
/* Titles and intros that are not .hero-title / .hero-description (Ontario, Reverse HST) */
.cx-hero .cx-head h1{font-weight:800;font-size:clamp(26px,3.2vw,30px);line-height:1.15;letter-spacing:-0.03em;color:var(--cx-navy);margin:0 0 8px;max-width:none;text-align:left;}
.cx-hero .cx-head h1 .highlight{color:var(--cx-green);background:none;-webkit-text-fill-color:currentColor;}
.cx-hero .cx-head .lede,.cx-hero .cx-head .rv-hero-desc{font-size:16px;line-height:1.55;color:#334155;margin:0;max-width:none;text-align:left;}
.cx-hero .cx-head .pill,.cx-hero .cx-head .rv-eyebrow{margin:0 0 10px;}
.cx-hero .cx-head > p[style]{margin-top:6px !important;}
/* Left-column text that came from a centred hero (mileage) */
.cx-hero .cx-copy > p{text-align:left !important;margin:0 0 20px !important;max-width:none !important;}
/* Quick answers in their own markup (Ontario answer box, Reverse HST formula box) */
.cx-hero .cx-copy > .answer-box{margin:0 0 20px;max-width:none;}
.cx-hero .cx-copy > .rv-formula-box{margin:0 0 20px;grid-template-columns:minmax(0,1fr);}
.cx-hero .cx-copy > .sidebar{margin-top:20px;}

/* Mileage and CCA cards (.calculator-box): compact, same colours */
.cx-hero .calculator-box{border-radius:16px;padding:20px;box-shadow:0 14px 40px rgba(11,31,75,.08);border:1px solid #e3eaf2;}
.cx-hero .calculator-box h2{font-size:20px;margin-bottom:2px;color:var(--cx-navy);}
.cx-hero .calculator-box .subtitle{font-size:13px;color:var(--cx-muted);margin-bottom:12px;}
.cx-hero .calculator-box .input-group{margin-bottom:12px;}
.cx-hero .calculator-box .input-wrapper{max-width:none;}
/* room for the km / % unit at the right of the box */
.cx-hero .calculator-box .input-wrapper .calc-input{padding-right:3rem;}
.cx-hero .calc-select{width:100%;max-width:none;height:44px;padding:0 14px;border:1px solid #cfd9e5;border-radius:8px;font-size:15px;background-color:var(--cx-soft);color:var(--cx-navy);}
.cx-hero .calculator-box .rate-info{padding:12px 16px;margin-bottom:12px;}
.cx-hero .calculator-box .results{padding:12px 16px;margin-top:12px;}
.cx-hero .calculator-box .result-row.total{background:var(--cx-soft);margin:8px 0 0;padding:10px 12px;border-radius:8px;}
.cx-hero .calculator-box .result-row.total .result-label,.cx-hero .calculator-box .result-row.total .result-value{color:#0b5f3b;font-weight:800;}
.cx-hero .mileage-mode{background:none;border:0;padding:0;gap:6px;}
.cx-hero .mileage-mode button{background:var(--cx-soft);color:var(--cx-navy);font-weight:800;border-radius:10px;}
.cx-hero .mileage-mode button[aria-pressed="true"]{background:var(--cx-green);color:#fff;box-shadow:none;}

/* Reverse HST: its two panels stack inside the right column */
.cx-hero .cx-calc .rv-calculator{grid-template-columns:minmax(0,1fr);}
.cx-hero .cx-calc .rv-results{border-left:0;border-top:1px solid var(--rv-line);}
.cx-hero .cx-calc .rv-inputs,.cx-hero .cx-calc .rv-results{padding:22px 24px;}
.cx-hero .rv-input,.cx-hero .rv-select{background-color:var(--cx-soft);}
.cx-hero .rv-total,.cx-hero .rv-total span,.cx-hero .rv-total strong{background:var(--cx-soft);color:#0b5f3b;}
.cx-hero .rv-total span{background:none;}
.cx-hero .rv-total strong{background:none;font-weight:800;}

/* Ontario: its card keeps its own design; the amount field gets the calc-v2 colour */
.cx-hero .cx-calc .calc{padding:24px;}
.cx-hero .cx-calc .input-wrap{background:var(--cx-soft);border-radius:10px;padding:4px 12px 8px;}

/* ---- One type scale for every calculator card (owner 2026-11-02: match /reverse-qst-calculator) ----
   Measured on reverse-qst: card title 20/800, mode buttons + field labels 14/800, amount box 17/600,
   quick amounts 13/700, result labels 16/400, result values 17.6/700, total label 17.6/800, total
   20/800, secondary text 13, notes 12, invoice-panel title 15/800. The template cards (wave 1, QC,
   BC) already use it; the rules below bring the other card designs onto the same sizes. */
.cx-hero{--fs-title:20px;--fs-label:14px;--fs-input:17px;--fs-chip:13px;--fs-row:16px;--fs-val:17.6px;--fs-total-label:17.6px;--fs-total:20px;--fs-small:13px;--fs-note:12px;--fs-cta:15px;}

/* Manitoba (shared card from scripts/build-calculator-tools.py) */
.cx-hero .ict-mode button{font-size:var(--fs-label);font-weight:800;}
.cx-hero .ict-label{font-size:var(--fs-label);font-weight:800;}
.cx-hero .ict-input,.cx-hero .ict-select{font-size:var(--fs-input);font-weight:600;}
.cx-hero .ict-preset,.cx-hero .ict-presets-head .ict-preset{font-size:var(--fs-chip);font-weight:700;}
.cx-hero .ict-row{font-size:var(--fs-row);}
.cx-hero .ict-row > :last-child{font-size:var(--fs-val);font-weight:700;}
.cx-hero .ict-row-total{font-size:var(--fs-total-label);font-weight:800;}
.cx-hero .ict-row-total > :last-child{font-size:var(--fs-total);font-weight:800;}

/* Ontario */
.cx-hero .cx-calc .calc-eyebrow{font-size:var(--fs-note);}
.cx-hero .cx-calc .toggle button{font-size:var(--fs-label);font-weight:800;}
.cx-hero .cx-calc .input-label{font-size:var(--fs-label);font-weight:800;}
.cx-hero .cx-calc .input-label .hint{font-size:var(--fs-note);}
.cx-hero .cx-calc .input-label{text-transform:none;letter-spacing:0;color:var(--cx-navy);}
/* figures left, donut right, the rounding note on its own line below both (it used to take the donut's place) */
.cx-hero .cx-calc .result-grid{grid-template-columns:minmax(0,1fr) auto;}
.cx-hero .cx-calc .result-grid > .result-numbers{grid-column:1;grid-row:1;}
.cx-hero .cx-calc .result-grid > .donut-wrap{grid-column:2;grid-row:1;}
.cx-hero .cx-calc .result-grid > .calc-rounding-note{grid-column:1 / -1;grid-row:2;text-align:center;}
/* Ontario (owner sample 2026-11-02): quick amounts on the label row — label, $500/$1,000/$5,000, then the hint at the right */
.cx-hero .cx-calc .input-section{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;column-gap:12px;row-gap:8px;}
.cx-hero .cx-calc .input-section > .input-label{display:contents;}
.cx-hero .cx-calc .input-section #inputLabel{grid-column:1;grid-row:1;}
.cx-hero .cx-calc .input-section .presets{grid-column:2;grid-row:1;margin:0;flex-wrap:nowrap;gap:8px;}
.cx-hero .cx-calc .input-section .hint{grid-column:3;grid-row:1;justify-self:end;}
.cx-hero .cx-calc .input-section > .input-wrap{grid-column:1 / -1;grid-row:2;margin:0;}
/* too narrow for one row: phones, and the two-column layout below 1200px (the calculator column is ~440px) */
@media(max-width:600px),(min-width:981px) and (max-width:1199px){
  .cx-hero .cx-calc .input-section{grid-template-columns:minmax(0,1fr) auto;}
  .cx-hero .cx-calc .input-section .hint{grid-column:2;}
  .cx-hero .cx-calc .input-section .presets{grid-column:1 / -1;grid-row:2;flex-wrap:wrap;}
  .cx-hero .cx-calc .input-section > .input-wrap{grid-row:3;}
}
@media(max-width:600px){
  .cx-hero .cx-calc .result-grid{grid-template-columns:minmax(0,1fr);}
  .cx-hero .cx-calc .result-grid > .donut-wrap{grid-column:1;grid-row:2;margin:8px auto 0;}
  .cx-hero .cx-calc .result-grid > .calc-rounding-note{grid-row:3;}
}
.cx-hero .cx-calc .amount{font-size:var(--fs-input);font-weight:600;letter-spacing:0;}
.cx-hero .cx-calc .dollar-sign{font-size:var(--fs-input);font-weight:600;}
.cx-hero .cx-calc .input-wrap{align-items:center;padding:10px 14px;}
.cx-hero .cx-calc .preset{font-size:var(--fs-chip);font-weight:700;}
.cx-hero .cx-calc .result-row{font-size:var(--fs-row);}
.cx-hero .cx-calc .result-row .val,.cx-hero .cx-calc .legend-val{font-size:var(--fs-val);font-weight:700;}
.cx-hero .cx-calc .result-total-label{font-size:var(--fs-total-label);font-weight:800;letter-spacing:0;text-transform:none;}
.cx-hero .cx-calc .result-total{font-size:var(--fs-total);font-weight:800;letter-spacing:0;}
.cx-hero .cx-calc .donut-pct{font-size:var(--fs-total);}
.cx-hero .cx-calc .donut-label{font-size:var(--fs-note);}
.cx-hero .cx-calc .legend-name{font-size:var(--fs-row);font-weight:400;}
.cx-hero .cx-calc .legend-pct{font-size:var(--fs-note);}
.cx-hero .cx-calc .icon-btn,.cx-hero .cx-calc .multiline-toggle{font-size:var(--fs-chip);font-weight:700;}
.cx-hero .cx-calc .btn-primary .main{font-size:var(--fs-cta);font-weight:800;}
.cx-hero .cx-calc .btn-primary small{font-size:var(--fs-small);}
/* Ontario side cards (left column): nothing under 12px */
.cx-hero .sidebar .card-label,.cx-hero .sidebar .pct-label,.cx-hero .sidebar .ref-table th,.cx-hero .sidebar .history-item .h-mode,.cx-hero .sidebar .province .rate{font-size:var(--fs-note);}
.cx-hero .sidebar .formula-chunk .pct{font-size:var(--fs-total);}
.cx-hero .sidebar .ref-table td,.cx-hero .sidebar .province,.cx-hero .sidebar .history-item,.cx-hero .sidebar .history-empty{font-size:var(--fs-small);}

/* Reverse HST */
.cx-hero .cx-calc .rv-kicker,.cx-hero .cx-calc .rv-chip,.cx-hero .cx-calc .rv-note,.cx-hero .cx-calc .rv-live,.cx-hero .cx-calc .rv-label small{font-size:var(--fs-note);}
.cx-hero .cx-calc .rv-inputs-title,.cx-hero .cx-calc .rv-result-title{font-size:var(--fs-title);font-weight:800;letter-spacing:-0.02em;}
.cx-hero .cx-calc .rv-lead,.cx-hero .cx-calc .rv-answer-note{font-size:var(--fs-small);}
.cx-hero .cx-calc .rv-label{font-size:var(--fs-label);font-weight:800;}
.cx-hero .cx-calc .rv-input,.cx-hero .cx-calc .rv-select{font-size:var(--fs-input);font-weight:600;}
.cx-hero .cx-calc .rv-amount span{font-size:var(--fs-input);}
.cx-hero .cx-calc .rv-quick button{font-size:var(--fs-chip);font-weight:700;}
.cx-hero .cx-calc .rv-calculate{font-size:var(--fs-label);font-weight:800;}
.cx-hero .cx-calc .rv-answer-label{font-size:var(--fs-total-label);font-weight:800;letter-spacing:0;text-transform:none;}
.cx-hero .cx-calc .rv-answer-number{font-size:var(--fs-total);font-weight:800;letter-spacing:0;}
.cx-hero .cx-calc .rv-bcard small,.cx-hero .cx-calc .rv-total span{font-size:var(--fs-row);font-weight:400;}
.cx-hero .cx-calc .rv-bcard strong,.cx-hero .cx-calc .rv-total strong{font-size:var(--fs-val);font-weight:700;}
.cx-hero .cx-calc .rv-live-formula,.cx-hero .cx-calc .rv-live-formula .calc-formula{font-size:var(--fs-small);}
.cx-hero .cx-calc .rv-visual-top,.cx-hero .cx-calc .rv-visual-top b,.cx-hero .cx-calc .rv-rate-mini b{font-size:var(--fs-note);}
.cx-hero .cx-calc .rv-rate-mini span{font-size:var(--fs-val);font-weight:700;}
.cx-hero .cx-calc .rv-auto-tax h2{font-size:var(--fs-cta);}
.cx-hero .cx-calc .rv-auto-tax p{font-size:var(--fs-small);}
.cx-hero .cx-calc .rv-auto-tax .trust-line{font-size:var(--fs-note);}
.cx-hero .cx-calc .rv-auto-tax .rv-btn{font-size:var(--fs-chip);}
/* Reverse HST quick formula box (left column) = the Quick Answer sizes */
.cx-hero .rv-formula-title{font-size:16px;}
.cx-hero .rv-formula-main{font-size:20px;font-weight:900;}
.cx-hero .rv-formula-examples{font-size:15.2px;}

/* Mileage and CCA (.calculator-box) */
.cx-hero .calculator-box h2{font-weight:800;}
.cx-hero .calculator-box .input-group label,.cx-hero .calculator-box .checkbox-group label{font-size:var(--fs-label);font-weight:800;}
.cx-hero .calculator-box .hint,.cx-hero .calculator-box .subtitle{font-size:var(--fs-small) !important;}
.cx-hero .calculator-box .calc-input{font-size:var(--fs-input);font-weight:600;}
.cx-hero .calculator-box .calc-select{font-size:var(--fs-input);font-weight:600;}
.cx-hero .calculator-box .suffix,.cx-hero .calculator-box .prefix{font-size:var(--fs-label);}
.cx-hero .calculator-box .rate-info h3{font-size:var(--fs-row);font-weight:800;}
.cx-hero .calculator-box .rate-label,.cx-hero .calculator-box .result-label{font-size:var(--fs-row);}
.cx-hero .calculator-box .rate-value,.cx-hero .calculator-box .result-value{font-size:var(--fs-val);font-weight:700;}
.cx-hero .calculator-box .result-row.total .result-label{font-size:var(--fs-total-label);font-weight:800;}
.cx-hero .calculator-box .result-row.total .result-value{font-size:var(--fs-total);font-weight:800;}
.cx-hero .calculator-box .formula{font-size:var(--fs-note);}
.cx-hero .calculator-box > h3{font-size:var(--fs-row) !important;font-weight:800;}
.cx-hero .calculator-box .projection-table th,.cx-hero .calculator-box .projection-table td{font-size:var(--fs-small);}
.cx-hero .calculator-box .projection-table td:first-child{white-space:nowrap;}
.cx-hero .mileage-rate-note{font-size:var(--fs-small) !important;}

/* Rotating sample report cards in the left column (@report-cards; reverse GST/QST/HST, owner 2026-10-31 and 2026-11-02) */
.cx-hero .rg-cards{background:#fff;border:1px solid #e3eaf2;border-radius:16px;box-shadow:0 14px 40px rgba(11,31,75,.08);padding:16px 18px 12px;}
.cx-hero .rg-card{margin:0;text-align:center;}
.cx-hero .rg-card img{display:block;width:100%;height:auto;max-width:504px;margin:0 auto;}
.cx-hero .rg-card figcaption{margin-top:8px;font-size:13px;color:#53637a;}
.cx-hero .rg-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:10px;}
.cx-hero .rg-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid #cfd9e5;background:#fff;color:#0b1f4b;font-size:24px;line-height:1;cursor:pointer;}
.cx-hero .rg-btn:hover{border-color:#087443;color:#087443;}
.cx-hero .rg-btn:focus-visible{outline:3px solid rgba(8,116,67,.35);outline-offset:2px;}
.cx-hero .rg-count{font-size:14px;font-weight:700;color:#0b1f4b;min-width:4.5em;text-align:center;}
@media(pointer:coarse){.cx-hero .rg-btn{width:44px;height:44px;}}
@media(max-width:980px){.cx-hero .rg-cards{order:4;margin-top:24px;}}

/* Quick Answer under the invoice panel, and a paragraph after the features box (New Brunswick, owner sample 2026-11-02) */
.cx-hero .cx-calc > .cx-qa{margin:12px 0 0 !important;}
.cx-hero .cx-copy > .cx-after-box{margin:20px 0 0 !important;}
@media(max-width:980px){.cx-hero .cx-copy > .cx-after-box{order:4;}}

/* ---- Compact fit (owner 2026-11-02: "compact calculators that easily fit on desktops and phones") ---- */
/* Manitoba's shared card: the same row and label spacing as the template card */
.cx-hero .ict-mode{margin:6px 0 6px;}
.cx-hero .ict-label{margin:6px 0 4px;}
.cx-hero .ict-select,.cx-hero .ict-input-wrap{min-height:44px;}
.cx-hero .ict-input{padding:6px 0;}
.cx-hero .ict-mode button{min-height:40px;padding:8px;}
.cx-hero .ict-sub,.cx-hero .calculator-subtitle{margin-bottom:6px;}
.cx-hero .ict-results{margin:8px 0 4px;padding:2px 14px;}
.cx-hero .ict-row{padding:5px 0;border-bottom:0;}
.cx-hero .ict-row-total{background:var(--cx-soft);border-radius:8px;padding:8px 12px;margin:6px 0 4px;}
/* Mileage and CCA cards: tighter spacing */
.cx-hero .mileage-rate-note{padding:10px 14px !important;margin:0 0 12px !important;line-height:1.5 !important;}
.cx-hero .calculator-box .subtitle{margin-bottom:10px;}
.cx-hero .mileage-mode{margin:0 0 10px;}
.cx-hero .calculator-box .input-group{margin-bottom:10px;}
.cx-hero .calculator-box .input-group label{margin-bottom:4px;}
.cx-hero .calculator-box .hint{margin-top:2px !important;line-height:1.4;}
.cx-hero .calculator-box .rate-info{padding:8px 14px;margin-bottom:10px;}
.cx-hero .calculator-box .rate-info h3{margin-bottom:4px;}
.cx-hero .calculator-box .rate-row{padding:4px 0;}
.cx-hero .calculator-box .results{padding:8px 14px;margin-top:10px;}
.cx-hero .calculator-box .result-row{padding:5px 0;}
.cx-hero .calculator-box .checkbox-group{padding:8px 12px;margin-bottom:10px;}
.cx-hero .calculator-box .calc-input{padding-top:0;padding-bottom:0;height:44px;}

/* Desktop: the title stays on two lines */
@media(min-width:981px){.cx-hero h1.hero-title{font-size:30px;}}

/* One column (tablets, phones): calculator right after the intro, then the answer box and features */
@media(max-width:980px){
  .cx-grid{display:flex;flex-direction:column;gap:0;}
  .cx-copy{display:contents;}
  /* stretch: the grid aligns items to the start, so on one column the calculator sized itself to its
     content (the amount input's built-in width made the Manitoba card 341px wide on 320px phones). */
  .cx-calc{order:1;margin-top:6px;align-self:stretch;}
  .cx-hero .cx-qa{order:2;margin-top:24px !important;}
  .cx-hero .sft-box{order:3;margin-top:24px;}
  .cx-hero .cx-copy > .ict-after{order:4;margin-top:24px;}
  .cx-hero .cx-copy > .answer-box,.cx-hero .cx-copy > .rv-formula-box{order:2;margin-top:24px;}
  .cx-hero .cx-copy > .sidebar{order:4;margin-top:24px;}
}
@media(max-width:600px){
  .cx-hero{padding:88px 16px 36px;}
  /* compact title area: the calculator starts higher */
  .cx-hero .cx-head{margin-bottom:12px;}
  .cx-hero .cx-head .hero-badge,.cx-hero .cx-head .pill,.cx-hero .cx-head .rv-eyebrow{margin:0 0 6px;padding:4px 10px;font-size:13px;}
  .cx-hero h1.hero-title,.cx-hero .cx-head h1{font-size:22px !important;line-height:1.2;margin:0 0 6px;}
  .cx-hero .cx-head .hero-description,.cx-hero .cx-head .lede,.cx-hero .cx-head .rv-hero-desc{font-size:14px;line-height:1.45;}
  .cx-hero .cx-head > p[style]{font-size:14px !important;margin-top:4px !important;}
  .cx-hero .calculator-card{padding:14px;}
  .cx-hero .calculator-box{padding:14px;}
  .cx-hero .cx-calc .calc{padding:16px;}
  /* smaller ring so the result labels keep one line on phones */
  .cx-ring{width:72px;height:72px;}
  .cx-ring-pct{font-size:16px;}
  .cx-ring-pct.cx-long{font-size:12px;}
  .cx-ring-lbl{font-size:12px;letter-spacing:.04em;}
  .cx-hero .calc-results{column-gap:12px;padding:10px 12px;}
  main > [role="note"]:first-child{margin-top:88px;}
  main > [role="note"]:first-child{font-size:13px !important;line-height:1.4 !important;padding:8px 12px !important;}
  main > [role="note"]:first-child + .cx-hero{padding-top:20px;}
  .cx-hero .sft-box{padding:18px 18px 20px;}
  .cx-hero .sft-list{font-size:18px;}
}
@media(max-width:480px){
  /* narrow phones: the ring sits small and centred above the rows, which take the full width */
  .cx-hero .calc-results{grid-template-columns:minmax(0,1fr);}
  .cx-ring{display:none;}
}
/* Touch screens: the site's 44px touch size */
@media(pointer:coarse){.cx-hero .cx-quick button{min-height:44px;padding-top:0;padding-bottom:0;}}
