/* WeVerify calculators: shared styles for every calculator page.
   Scoped under .wvc so nothing leaks into the rest of the site. Logical properties
   (inline-start/end) throughout, so Arabic flips without a separate stylesheet. */

.wvc{--wvc-neg:#b4233c;--wvc-neg-bg:#fdf1f3;font-variant-numeric:tabular-nums}
.wvc *{box-sizing:border-box}
.wvc-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:32px;align-items:start}
/* Sticky only where the whole results column fits on screen: it is ~740px tall with
   the call to action, and a stuck column taller than the window hides its buttons. */
@media (min-width:981px) and (min-height:860px){.wvc-res{position:sticky;top:96px}}

/* ── inputs ── */
.wvc-panel{background:#fff;border:1px solid var(--border);border-radius:var(--r2);padding:6px 20px 18px;margin-bottom:14px}
.wvc-panel>summary{cursor:pointer;list-style:none;padding:14px 0 6px;font-family:'Montserrat',sans-serif;font-weight:800;font-size:14px;color:var(--navy);display:flex;justify-content:space-between;align-items:center;gap:12px}
.wvc-panel>summary::-webkit-details-marker{display:none}
.wvc-panel>summary::after{content:'+';font-size:18px;color:var(--muted);flex:none}
.wvc-panel[open]>summary::after{content:'\2212'}
.wvc-panel>summary:focus-visible{outline:2px solid var(--green3);outline-offset:4px;border-radius:4px}
.wvc-ph{font-family:'Montserrat',sans-serif;font-weight:800;font-size:14px;color:var(--navy);padding:14px 0 2px;margin:0}
.wvc-pnote{font-size:12.5px;color:var(--muted);margin:2px 0 4px;line-height:1.5}
.wvc-f{margin-top:14px}
.wvc-f[hidden]{display:none}
.wvc-f label{display:block;font-size:12.5px;font-weight:700;color:var(--navy);margin-bottom:6px;font-family:'Montserrat',sans-serif;line-height:1.4}
.wvc-ig{display:flex;align-items:stretch;border:1px solid var(--border2);border-radius:var(--r);background:#fff;overflow:hidden}
.wvc-ig:focus-within{outline:2px solid var(--green3);border-color:var(--green3)}
.wvc-ig input,.wvc-ig select{flex:1;min-width:0;border:0;padding:11px 12px;font:inherit;font-size:14px;color:var(--navy);background:transparent;outline:none}
.wvc-ig select{cursor:pointer}
.wvc-u{flex:none;display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:700;color:var(--muted);background:var(--off);border-inline-start:1px solid var(--border)}
.wvc-f.is-locked .wvc-ig{background:var(--off)}
.wvc-f.is-locked input{color:var(--muted);cursor:not-allowed}
.wvc-f.is-bad .wvc-ig{border-color:var(--wvc-neg)}
.wvc-help{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.5}
.wvc-err{font-size:12px;color:var(--wvc-neg);font-weight:600;margin:5px 0 0}
.wvc-err[hidden]{display:none}
.wvc-range{display:flex;align-items:center;gap:12px}
.wvc-range input[type=range]{flex:1;accent-color:var(--green3);min-width:0}
.wvc-range output{flex:none;min-width:48px;text-align:end;font-weight:800;color:var(--navy)}
.wvc-sales{display:inline-block;margin-bottom:12px;padding:4px 10px;border-radius:99px;background:var(--cream);color:var(--navy);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}

/* ── headline results ── */
.wvc-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wvc-tile{background:#fff;border:1px solid var(--border);border-radius:var(--r2);padding:18px 16px}
.wvc-tile-l{font-size:12px;font-weight:700;color:var(--muted);line-height:1.4;margin:0 0 8px;font-family:'Montserrat',sans-serif}
.wvc-tile-v{font-family:'Montserrat',sans-serif;font-weight:800;font-size:26px;color:var(--navy);line-height:1.1;margin:0;overflow-wrap:anywhere}
.wvc-tile-s{font-size:12px;color:var(--muted);margin:8px 0 0;line-height:1.45}
.wvc-tile.is-neg{border-color:var(--wvc-neg);background:var(--wvc-neg-bg)}
.wvc-tile.is-neg .wvc-tile-v{color:var(--wvc-neg)}
.wvc-strip{display:flex;flex-wrap:wrap;gap:6px 24px;margin:12px 0 0;padding:14px 16px;background:var(--off);border-radius:var(--r2);font-size:13.5px;color:var(--navy);line-height:1.5}
.wvc-strip b{font-weight:800}
/* A Latin label ("WeVerify:") at the start of an Arabic line would otherwise pull the
   number after it into its own left-to-right run, so the figure ends up at the far
   end of the line. Isolating the label keeps label, number and text in reading order. */
.wvc b,.wvc strong{unicode-bidi:isolate}
.wvc-cta{margin-top:12px;padding:16px 18px;border-radius:var(--r2);background:var(--green-pale);border:1px solid var(--green-border)}
.wvc-cta-line{margin:0 0 12px;font-size:14.5px;color:var(--navy);line-height:1.5}
.wvc-cta-line:empty{display:none}
.wvc-cta-btns{display:flex;flex-wrap:wrap;gap:10px}
.wvc-cta-btns .btn-primary{text-decoration:none;display:inline-block;cursor:pointer}
.wvc-cta-note{margin:10px 0 0;font-size:12px;color:var(--muted)}
.wvc-card{background:#fff;border:1px solid var(--border);border-radius:var(--r2);padding:18px 18px 16px;margin-top:12px}
.wvc-card-h{font-family:'Montserrat',sans-serif;font-weight:800;font-size:13px;color:var(--navy);margin:0 0 12px}
.wvc-line{font-size:13.5px;color:var(--navy);line-height:1.55;margin:10px 0 0}
.wvc-note{margin-top:12px;padding:12px 14px;border-radius:var(--r2);background:var(--wvc-neg-bg);border:1px solid var(--wvc-neg);font-size:13px;color:var(--navy);line-height:1.5}
.wvc-note button{margin-top:8px}

/* ── stacked bars ── */
.wvc-bar{margin-bottom:14px}
.wvc-bar-h{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;font-weight:700;color:var(--navy);margin-bottom:6px}
.wvc-bar-t{height:26px;background:var(--off);border-radius:5px;overflow:hidden}
.wvc-bar-f{display:flex;height:100%}
.wvc-bar-f span{display:block;height:100%;min-width:0}
.wvc-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:4px 0 0;padding:0;list-style:none;font-size:11.5px;color:var(--muted)}
.wvc-legend li{display:flex;align-items:center;gap:6px}
.wvc-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;flex:none}

/* ── detail area ── */
.wvc-detail{margin-top:36px;display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:24px;align-items:start}
.wvc-tablewrap{overflow-x:auto;background:#fff;border:1px solid var(--border);border-radius:var(--r2);padding:6px 18px 14px}
.wvc-tbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0 6px}
.wvc-table{width:100%;border-collapse:collapse;font-size:13px;color:var(--navy);min-width:520px}
.wvc-table th,.wvc-table td{padding:8px 10px;border-bottom:1px solid var(--border);text-align:end;white-space:nowrap}
.wvc-table th:first-child,.wvc-table td:first-child{text-align:start;white-space:normal}
.wvc-table thead th{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.wvc-table .is-group td{padding-top:16px;font-weight:800;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#007A49;border-bottom:0}
.wvc-table .is-total td{font-weight:800}
.wvc-table .is-saving td{font-weight:800;background:var(--off)}
.wvc-table .is-neg{color:var(--wvc-neg)}
.wvc-toggle{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--navy);cursor:pointer}
.wvc-toggle input{width:16px;height:16px;accent-color:var(--green3)}
.wvc-esg dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}
.wvc-esg dt{font-size:11.5px;color:var(--muted);font-weight:700;line-height:1.4}
.wvc-esg dd{margin:4px 0 0;font-family:'Montserrat',sans-serif;font-weight:800;font-size:19px;color:var(--navy)}

/* ── assumptions, actions, lead form ── */
.wvc-assume{margin-top:24px}
.wvc-assume ul{columns:2;column-gap:32px;margin:6px 0 12px;padding-inline-start:18px;font-size:12.5px;color:var(--navy);line-height:1.7}
.wvc-assume li{break-inside:avoid}
.wvc-assume .is-def{color:var(--muted)}
.wvc-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:24px;padding:20px;background:var(--navy);border-radius:var(--r2)}
.wvc-actions .wvc-sp{flex:1}
.wvc-btn2{background:#fff;color:var(--navy);border:1.5px solid var(--border2);border-radius:var(--r);padding:10px 18px;font:inherit;font-size:13.5px;font-weight:700;font-family:'Montserrat',sans-serif;cursor:pointer;text-decoration:none;display:inline-block}
.wvc-btn2:hover{border-color:var(--navy)}
.wvc-actions .wvc-btn2{background:transparent;color:#fff;border-color:rgba(255,255,255,.3)}
.wvc-actions .wvc-btn2:hover{border-color:#fff}
.wvc-actions .btn-primary{cursor:pointer;text-decoration:none;display:inline-block}
.wvc-flash{font-size:12.5px;color:var(--green-t50);font-weight:700}
.wvc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wvc-printhead{display:none}

/* ── page sections around the calculator: proof, positioning, sectors ── */
.wvc-proof{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.wvc-proof .card p{margin:8px 0 14px;color:var(--muted);line-height:1.6}
.wvc-more{font-weight:700;font-size:14px;color:#007A49;text-decoration:none}
.wvc-more:hover{text-decoration:underline}
.wvc-pos{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
.wvc-check li{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);color:var(--navy);font-size:14.5px}
.wvc-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:18px}
.wvc-links a{font-weight:700;font-size:14px;color:#007A49}
.wvc-sec-h{font-family:'Montserrat',sans-serif;font-weight:800;font-size:18px;color:var(--navy);margin:44px 0 14px}
.wvc-seccard{text-decoration:none;color:inherit;display:block}
.wvc-seccard h3{color:var(--navy)}
.wvc-seccard p{color:var(--muted);margin-top:6px;line-height:1.55}
.wvc-seccard:hover{border-color:var(--green3)}

/* ── calculator page prose (how we calculate) ── */
.wvc-how ol{margin:0;padding-inline-start:20px;color:var(--navy);font-size:14.5px;line-height:1.7}
.wvc-how li{margin-bottom:8px}
.wvc-how code{font-size:13px;background:var(--off);padding:1px 6px;border-radius:4px}

@media (max-width:980px){
  .wvc-grid,.wvc-detail,.wvc-proof,.wvc-pos{grid-template-columns:1fr}
  .wvc-res{position:static}
}
@media (max-width:640px){
  .wvc-tiles{grid-template-columns:1fr}
  .wvc-tile-v{font-size:24px}
    .wvc-assume ul{columns:1}
  .wvc-actions .wvc-sp{display:none}
  .wvc-actions>*{flex:1 1 100%;text-align:center}
}

@media print{
  #wv-topbar,#wv-nav,#wv-ov,#wv-mob,#wv-mob2,footer,#wv-cookie,.hero,.wvc-in,.wvc-actions,.wvc-noprint,.wvc-how,.faq-sec,.wvc-cta,.wvc-page-extra{display:none!important}
  body{background:#fff}
  .section{padding:0!important;border:0!important}
  .wvc-grid,.wvc-detail{display:block}
  .wvc-res{position:static}
  .wvc-printhead{display:block;margin-bottom:14px;font-size:12px;color:#333}
  .wvc-printhead strong{display:block;font-size:18px;color:#000;margin-bottom:4px}
  .wvc-tile,.wvc-card,.wvc-tablewrap{break-inside:avoid;border-color:#bbb}
  .wvc-detail>*{margin-top:12px}
  .wvc-bar-t,.wvc-bar-f span,.wvc-legend i{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .wvc-assume details>*{display:block}
  .wvc-assume ul{columns:2;font-size:10.5px}
}
