/* Transfer calculator. Builds on how.css tokens + budget.css (.bg-layout/.bg-form/.bg-field/.bg-input/.btn.small/.ml-empty/.ml-link). */
.calc-page .page-intro{border-bottom:none}

/* mode tabs */
.cx-tabs-wrap{display:flex;justify-content:center;padding-top:28px}
.cx-tabs{display:inline-flex;gap:6px;padding:6px;background:var(--bg-soft);border:1px solid var(--border);border-radius:999px}
.cx-tab{border:none;background:transparent;color:var(--navy);font-weight:700;font-size:15px;padding:11px 30px;border-radius:999px;transition:background .15s ease,color .15s ease}
.cx-tab:hover{color:var(--green)}
.cx-tab[aria-selected="true"]{background:var(--green);color:#fff;box-shadow:var(--shadow-soft)}
.cx-tab:focus-visible,.cx-go:focus-visible,.ml-link:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* form */
.cx-layout{padding-top:24px}
.cx-form{top:96px}
.cx-form .bg-field{margin-bottom:22px}
.cx-req{color:#c0392b;margin-inline-start:2px}
.cx-opt{font-style:normal;font-weight:600;font-size:12px;color:var(--text-light);background:var(--bg-soft);border-radius:999px;padding:2px 9px;margin-inline-start:6px}
.cx-words{min-height:0;margin-top:6px;font-size:13px;font-weight:700;color:var(--pt-accent,#138A12);line-height:1.5}
.cx-words:empty{display:none}
.cx-hint{margin-top:6px;font-size:13px;color:var(--text-light);line-height:1.7}
.cx-err{margin-top:6px;font-size:13px;font-weight:600;color:#c0392b;line-height:1.7}
.cx-err[hidden]{display:none}
.bg-input.bad{border-color:#c0392b}
.bg-input input::placeholder{font-weight:400;font-size:14px;color:#9aa4b2}
.cx-go{width:100%;justify-content:center;margin-top:4px}
.cx-try{text-align:center;margin-top:12px}
.cx-example{margin-top:10px;font-size:13px;color:#8a5a00;background:#fff4dc;border-radius:var(--radius-sm);padding:9px 12px;line-height:1.7}
.cx-example[hidden]{display:none}

/* results */
.cx-out[hidden]{display:none}
.cx-empty{margin:0;max-width:none;min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;border:1.5px dashed var(--border)}
.cx-empty .icon{width:44px;height:44px;color:var(--green);margin:0 auto 14px}
.cx-empty p{max-width:380px;margin:0 auto;font-size:15.5px}
.cx-verdict{background:var(--green-soft);border:1px solid var(--green-soft-2);border-radius:var(--radius-lg);padding:18px 22px}
.cx-verdict h2{font-size:18px;margin-bottom:6px;color:var(--navy)}
.cx-verdict p{font-size:14.5px;line-height:1.9;color:var(--text)}
.cx-verdict.warn{background:#fff4dc;border-color:#f3dfae}
.cx-verdict.warn h2,.cx-verdict.warn p{color:#8a5a00}
.cx-verdict .cx-big{font-size:34px;font-weight:700;line-height:1.3;margin:2px 0 6px}
.cx-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.cx-cards.one{grid-template-columns:1fr}
.cx-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px 22px 22px;box-shadow:var(--shadow-card);display:flex;flex-direction:column}
.cx-card.win{border:1.5px solid var(--green)}
.cx-card h3{font-size:16.5px;margin-bottom:6px}
.cx-card dl{margin:0}
.cx-row{padding:13px 0;border-top:1px solid var(--border)}
.cx-row:first-child{border-top:none}
.cx-row dt{font-size:13px;color:var(--text-light);margin-bottom:3px}
.cx-row dd{margin:0;font-weight:700;font-size:20px;color:var(--navy);line-height:1.5}
.cx-row dd .neg{color:#b3261e}
.cx-row dd .pos,.cx-big.pos{color:var(--pt-accent,#138A12)}
.cx-row small{display:block;margin-top:3px;font-size:12.5px;line-height:1.7;color:var(--text-light)}
.cx-diff{margin-top:auto;background:#edf6ee;border-radius:var(--radius-sm);padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.cx-card dl+.cx-diff{margin-top:14px}
.cx-diff span{font-size:13px;color:var(--text-light)}
.cx-diff b{font-size:22px;color:var(--pt-accent,#138A12)}
.cx-sub{margin-top:12px;font-size:13.5px;color:var(--text-light);line-height:1.7}
.cx-est{display:flex;gap:10px;align-items:flex-start;margin-top:16px;background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--radius-md);padding:12px 14px;font-size:13.5px;line-height:1.8;color:var(--text-light)}
.cx-chip{flex-shrink:0;display:inline-block;background:#fff;color:var(--green-dark);font-weight:700;font-size:12.5px;padding:3px 11px;border-radius:999px;border:1px solid var(--border)}
.cx-cta{margin-top:18px;background:linear-gradient(120deg,var(--navy),var(--navy-2));border-radius:var(--radius-lg);padding:26px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;color:#fff}
.cx-cta h2{color:#fff;font-size:20px;margin-bottom:4px}
.cx-cta p{color:rgba(255,255,255,.82);font-size:14.5px}
.cx-cta-btns{display:flex;gap:10px;flex-wrap:wrap}
.btn.ghost-w{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55)}
.btn.ghost-w:hover{background:rgba(255,255,255,.12);border-color:#fff}
.cx-disclaimer{color:var(--text-light);font-size:13px;line-height:1.8;padding-bottom:56px}

/* logo size (theme.css sizes logos per data-page) */
html[data-page] .site-header .logo img{height:38px}
@media(max-width:700px){html[data-page] .site-header .logo img{height:26px}}
.cx-layout>*{min-width:0}

@media (max-width:1024px){
  .cx-form{position:static}
}
@media (max-width:700px){
  .cx-tabs-wrap{padding-top:20px}
  .cx-tabs{display:flex;width:100%}
  .cx-tab{flex:1;padding:11px 10px;font-size:14.5px}
  .cx-cards{grid-template-columns:1fr}
  .cx-est{flex-direction:column;gap:8px}
  .cx-cta{padding:22px 20px}
  .cx-cta-btns{width:100%}
  .cx-cta-btns .btn{flex:1;justify-content:center;white-space:normal;text-align:center}
  .cx-verdict .cx-big{font-size:28px}
  .cx-empty{min-height:220px}
}

/* ---- B3 (18 Oct): free exit report request (direction-neutral) ---- */
.cx-exit{margin-top:18px;border:1.5px solid #bfe0c2;background:#f4fbf4;border-radius:var(--radius-lg,14px);padding:20px 22px}
.cx-exit-h h3{font-size:19px;color:var(--navy);margin:8px 0 4px}
.cx-exit-h p{font-size:14px;line-height:1.85;color:var(--text-light,#4b5a70);margin:0 0 14px}
.cx-exit>.btn{display:inline-flex;justify-content:center}
.cx-exit-form{margin-top:4px;display:grid;grid-template-columns:1fr 1fr;gap:0 16px;align-items:start}
.cx-exit-form[hidden],.cx-exit-ok[hidden],#cxExitBtn[hidden]{display:none}
.cx-exit-form .bg-field{margin-bottom:16px}
.cx-exit-form .bg-field:nth-child(3){grid-column:1/-1}
.cx-exit-form>.btn{grid-column:1/-1;justify-self:start;justify-content:center;border:0;cursor:pointer;font:inherit;font-weight:700}
.cx-exit-form .bg-input input{width:100%;border:0;outline:0;padding:12px 14px;font:inherit;font-size:15px;background:transparent;color:var(--navy)}
.cx-opt{font-style:normal;font-weight:400;font-size:12.5px;color:var(--text-light,#6b7280)}
.cx-file{display:block;font:inherit;font-size:13.5px;max-width:100%}
.cx-hint{font-size:12.5px;color:var(--text-light,#6b7280);margin:6px 0 0;line-height:1.7}
.cx-exit .cx-err{color:#c0392b;font-size:13px;margin:6px 0 0}
.cx-exit .cx-err[hidden]{display:none}
.cx-exit-ok{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #bfe0c2;border-radius:10px;padding:14px 16px;outline:0}
.cx-exit-ok svg{width:26px;height:26px;flex-shrink:0;fill:none;stroke:var(--green,#188516);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cx-exit-ok strong{display:block;font-size:16px;color:var(--green-dark,#147411);line-height:1.7}
.cx-exit-ok p{font-size:13.5px;color:var(--text-light,#4b5a70);margin:2px 0 0}
@media(max-width:700px){
.cx-exit{padding:16px}
.cx-exit-form{grid-template-columns:1fr}
.cx-exit>.btn,.cx-exit-form>.btn{width:100%;justify-self:stretch}
}
