/* The pension calculator (inc/calculator.php, assets/js/calc.js). Loaded only on pages that hold it. */
.pv-calc-wrap{margin-top:8px;margin-bottom:40px}
.pv-article__lede{max-width:760px;color:var(--ink-2);font-size:19px}
.pv-article__lede p{margin:0 0 .4em}

.pvc{position:relative}
.pvc__app{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:0;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-lg);overflow:clip}
.pvc__in{padding:28px 30px 22px;margin:0}
.pvc__h{display:flex;align-items:center;gap:10px;font-size:24px;margin:0 0 4px}
.pvc__h .pv-ico{width:30px;height:30px;color:var(--teal-700)}
.pvc__sub{margin:0 0 18px;color:var(--muted);font-size:15.5px;line-height:1.55}

.pvc__group{border:0;margin:0;padding:18px 0 6px;box-shadow:0 -1px 0 var(--line);min-width:0}
.pvc__legend{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;padding:0;margin:0 0 12px;cursor:default}
.pvc__num{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--teal-100);color:var(--teal-800);font-size:14px;font-weight:700;flex:none}
details.pvc__group>summary{list-style:none;cursor:pointer}
details.pvc__group>summary::-webkit-details-marker{display:none}
details.pvc__group>summary::after{content:"";margin-inline-start:auto;width:10px;height:10px;border-inline-end:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
details.pvc__group[open]>summary::after{transform:rotate(-135deg)}

.pvc__field{margin:0 0 14px}
.pvc__field>label,.pvc__label{display:block;font-weight:500;font-size:15.5px;margin:0 0 6px;color:var(--ink-2)}
.pvc__pair{display:flex;align-items:center;gap:14px}
.pvc__pair input[type=range]{flex:1 1 auto;min-width:0}
.pvc__num-in{width:100%;min-height:48px;padding:0 14px;border:1.5px solid var(--line);border-radius:12px;font:700 18px var(--font);color:var(--ink);background:#fff;text-align:center;direction:ltr}
.pvc__num-in:focus{outline:none;border-color:var(--teal-700);box-shadow:0 0 0 3px var(--teal-100)}
.pvc__pair .pvc__num-in{width:96px;flex:none}
.pvc__money{position:relative;flex:none}
.pvc__money .pvc__num-in{width:140px;padding-left:30px}
.pvc__money::before{content:"₪";position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:500;pointer-events:none}
.pvc__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pvc__hint{margin:6px 0 0;font-size:14.5px;line-height:1.55;color:var(--muted)}
.pvc__hint strong{color:var(--ink)}
.pvc__link{background:none;border:0;padding:0;font:inherit;color:var(--teal-700);text-decoration:underline;cursor:pointer}

/* Sliders: a filled track up to the thumb (RTL: the fill grows from the right). */
.pvc input[type=range]{-webkit-appearance:none;appearance:none;height:28px;background:transparent;direction:rtl;cursor:pointer;margin:0}
.pvc input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:99px;background:linear-gradient(to left,var(--teal-700) var(--p,50%),var(--line) var(--p,50%))}
.pvc input[type=range]::-moz-range-track{height:8px;border-radius:99px;background:linear-gradient(to left,var(--teal-700) var(--p,50%),var(--line) var(--p,50%))}
.pvc input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-9px;border-radius:50%;background:#fff;border:3px solid var(--teal-700);box-shadow:0 2px 6px rgba(13,34,53,.2)}
.pvc input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--teal-700);box-shadow:0 2px 6px rgba(13,34,53,.2)}

/* Segmented controls and chips: real radio buttons under the labels. */
.pvc__seg,.pvc__chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.pvc__seg label,.pvc__chips label{position:relative;cursor:pointer}
.pvc__seg input,.pvc__chips input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.pvc__seg span,.pvc__chips span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1.5px solid var(--line);border-radius:999px;font-weight:500;font-size:16px;background:#fff;transition:background .15s,border-color .15s,color .15s}
.pvc__seg{background:var(--tint);border-radius:999px;padding:4px;display:inline-flex;gap:4px}
.pvc__seg span{border-color:transparent;background:transparent;min-width:84px;justify-content:center}
.pvc__seg--3{display:flex}
.pvc__seg--3 label{flex:1}
.pvc__seg--3 span{width:100%;padding:0 8px;font-size:15px}
.pvc__seg input:checked+span{background:#fff;color:var(--teal-800);font-weight:700;box-shadow:0 1px 3px rgba(13,34,53,.15)}
.pvc__chips span{font-size:15px;min-height:40px;padding:0 14px}
.pvc__chips input:checked+span{background:var(--teal-700);border-color:var(--teal-700);color:#fff}
.pvc__seg input:focus-visible+span,.pvc__chips input:focus-visible+span{outline:3px solid var(--gold);outline-offset:2px}
.pvc__fees{margin:0 0 8px;font-size:15px;line-height:1.6;color:var(--ink-2);background:var(--tint);border-radius:12px;padding:10px 14px}
.pvc__own summary{cursor:pointer;color:var(--teal-700);font-size:15px;margin:6px 0 10px}

/* Results: a dark panel that stays in view while the inputs scroll. */
.pvc__out{background:var(--ink);color:#e7eef3;padding:28px 28px 22px;display:flex;flex-direction:column;gap:18px}
.pvc__hero{text-align:center;padding:4px 0 2px}
.pvc__kicker{margin:0;color:#a9bac7;font-size:15px}
.pvc__big{margin:2px 0 0;font-size:clamp(44px,6vw,60px);font-weight:700;line-height:1.1;color:#fff;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.pvc__ratio{margin:6px 0 10px;color:var(--teal);font-weight:500}
.pvc__meter{height:8px;border-radius:99px;background:rgba(255,255,255,.12);overflow:hidden;max-width:320px;margin:0 auto}
.pvc__meter span{display:block;height:100%;margin-inline-start:0;background:linear-gradient(to left,var(--teal),#9cf1f5);border-radius:99px;transition:width .3s}
.pvc__stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.pvc__stats div{background:rgba(255,255,255,.06);border-radius:14px;padding:12px 14px}
.pvc__stats dt{font-size:13.5px;color:#a9bac7}
.pvc__stats dd{margin:2px 0 0;font-size:20px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.pvc__stats .pvc__stat--fee dd{color:var(--gold)}
.pvc__chart svg{display:block;width:100%;height:170px}
.pvc__ages{display:flex;justify-content:space-between;margin:4px 0 0;font-size:13px;color:#a9bac7}
.pvc__a-own{fill:rgba(95,224,232,.55)}
.pvc__a-gain{fill:rgba(242,193,78,.55)}
.pvc__l-tot{fill:none;stroke:var(--gold);stroke-width:2;vector-effect:non-scaling-stroke}
.pvc__legend-row{margin:6px 0 0;font-size:13.5px;color:#a9bac7;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pvc__key{display:inline-block;width:12px;height:12px;border-radius:3px}
.pvc__key--own{background:rgba(95,224,232,.75)}
.pvc__key--gain{background:rgba(242,193,78,.75);margin-inline-start:10px}
.pvc__fee{background:#fff;color:var(--ink);border-radius:16px;padding:16px 18px}
.pvc__fee-h{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;font-weight:700;font-size:17px;line-height:1.45}
.pvc__fee-h .pv-ico{width:22px;height:22px;flex:none;color:var(--teal-700);margin-top:2px}
.pvc__fee-list{margin:0 0 14px;padding:0;list-style:none;font-size:15px;color:var(--ink-2)}
.pvc__fee-list li{padding:3px 0}
.pvc__fee-list strong{color:var(--teal-800)}
.pvc__fine{margin:8px 0 0;font-size:13.5px;color:var(--muted);text-align:center;line-height:1.5}
.pvc__tools{display:flex;flex-direction:column;gap:10px}
.pvc__years summary{cursor:pointer;color:#e7eef3;font-weight:500}
.pvc__table{max-height:320px;overflow:auto;margin-top:8px;border-radius:10px;background:rgba(255,255,255,.04)}
.pvc__table table{width:100%;border-collapse:collapse;font-size:14.5px;font-variant-numeric:tabular-nums}
.pvc__table th,.pvc__table td{padding:7px 10px;text-align:right;border-bottom:1px solid rgba(255,255,255,.08)}
.pvc__table th{position:sticky;top:0;background:#16304a;color:#fff;font-weight:700}
.pvc__out .pvc__link{color:var(--teal);display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:15px}
.pvc__out .pvc__link .pv-ico{width:18px;height:18px}
.pvc__note{margin:14px 4px 0;font-size:13.5px;line-height:1.6;color:var(--muted)}
.pvc__bar{display:none}

@media (min-width:961px){
  .pvc__out{position:sticky;top:84px;align-self:start;border-radius:0}
}
@media (max-width:960px){
  .pvc__app{grid-template-columns:1fr;border-radius:20px}
  .pvc__in{padding:22px 18px 10px}
  .pvc__out{padding:22px 18px}
  .pvc__h{font-size:21px}
  /* The result stays in sight while the inputs are filled in. */
  .pvc__bar{display:flex;position:sticky;bottom:0;z-index:30;align-items:baseline;justify-content:center;gap:8px;margin:0 -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--ink);color:#c8d5df;font-size:15px;box-shadow:0 -6px 18px rgba(13,34,53,.18)}
  .pvc__bar strong{color:#fff;font-size:22px}
  .pvc__bar{transition:transform .2s,opacity .2s}
  .pvc.is-out .pvc__bar{opacity:0;transform:translateY(100%);pointer-events:none}
  .pv .pv-mbar.is-calc{transform:translateY(110%)}
}
@media (max-width:420px){
  .pvc__pair{gap:10px}
  .pvc__pair .pvc__num-in{width:80px}
  /* After the rule above, and more specific than it: a money box holds up to "10,000,000", so the short width that
     suits גיל would cut the saver's own salary in half on a phone. */
  .pvc__pair .pvc__money .pvc__num-in{width:152px;padding-left:26px}
  .pvc__stats dd{font-size:18px}
  .pvc__chips span{padding:0 12px}
}
@media (prefers-reduced-motion:reduce){.pvc *{transition:none!important}}

/* The fee table in the text ([pension_fees_table]). */
.pv-fees{width:100%;border-collapse:collapse;font-size:16px;font-variant-numeric:tabular-nums}
.pv-fees caption{caption-side:top;text-align:right;font-weight:700;padding:0 0 8px}
.pv-fees th,.pv-fees td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:right}
.pv-prose .pv-fees thead th{font-size:14.5px}
.pv-prose .pv-fees tbody th{background:#fff;color:var(--ink)}
.pv-prose .pv-fees tbody tr:nth-child(even) th,.pv-prose .pv-fees tbody tr:nth-child(even) td{background:var(--tint)}
.pv-prose .pv-fees .pv-total th,.pv-prose .pv-fees .pv-total td{font-weight:700;background:var(--teal-100);color:var(--ink)}
.pv-source{font-size:14px;color:var(--muted);margin-top:8px}

/* The small calculator inside articles (pv_calc_teaser()). */
.pvt{margin:0 0 28px;padding:20px 22px;border-radius:var(--radius);background:linear-gradient(135deg,var(--teal-100),#fff 70%);border:1px solid #c9eef0}
.pvt__head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.pvt__icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--teal-700);color:#fff;flex:none}
.pvt__icon .pv-ico{width:24px;height:24px}
.pv .pvt__h{margin:0;font-size:20px;font-weight:700;line-height:1.3}
.pv .pvt__sub{margin:0;font-size:14.5px;color:var(--muted)}
.pvt__fields{display:grid;grid-template-columns:.7fr 1fr 1fr;gap:10px}
.pvt__fields label{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:500;color:var(--ink-2)}
.pvt__fields input{min-height:46px;width:100%;padding:0 10px;border:1.5px solid var(--line);border-radius:10px;font:700 17px var(--font);text-align:center;direction:ltr;background:#fff;color:var(--ink)}
.pvt__fields input:focus{outline:none;border-color:var(--teal-700);box-shadow:0 0 0 3px var(--teal-100)}
.pvt__out{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:14px}
.pv .pvt__result{margin:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.pvt__result span{font-size:15px;color:var(--ink-2)}
.pvt__result strong{font-size:30px;line-height:1;color:var(--teal-800);font-variant-numeric:tabular-nums}
.pvt .pv-btn .pv-ico{width:18px;height:18px}
@media (max-width:640px){
  .pvt{padding:16px}
  .pvt__fields{gap:8px}
  .pvt__fields input{font-size:16px;padding:0 6px}
  .pvt__out .pv-btn{width:100%}
}

/* Review fixes (2026-11-11, independent visual review). */
/* The dark panel fills the card's full height; its content stays in view while the inputs scroll. */
.pvc__out{display:block}
.pvc__out-in{display:flex;flex-direction:column;gap:18px}
@media (min-width:961px){
  .pvc__out{position:static;align-self:stretch}
  .pvc__out-in{position:sticky;top:84px}
}
/* A legend sits in the fieldset's border and adds its own gap: float it so the step reads as one heading. */
.pvc__group>legend.pvc__legend{float:right;width:100%;margin:0 0 12px}
.pvc__group>legend.pvc__legend+*{clear:both}
/* Fees in a colour of their own, not the chart's "profits" gold. */
.pvc__stats .pvc__stat--fee dd{color:#ff9f8f}
/* The disclaimer is read, not skimmed past. */
.pvc__note{font-size:14.5px;color:var(--ink-2);max-width:900px;margin-inline:auto;text-align:center}
/* Who checks the report. */
.pvc__who{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.pvc__who img{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:none}
.pv .pvc__who p{margin:0;font-size:13.5px;line-height:1.5;color:var(--muted)}
/* The phone result bar is a way to the full result. */
.pv .pvc__bar{color:#c8d5df;text-decoration:none}
.pvc__bar-go{display:inline-flex;align-items:center;gap:4px;color:var(--teal);font-weight:700;margin-inline-start:6px}
.pvc__bar-go .pv-ico{width:16px;height:16px}
/* The form under the calculator on phones. */
.pv-form-slot--calc{margin:0 0 32px}
/* The article teaser before anything is typed. */
.pvt__result strong.is-empty{font-size:20px;color:var(--muted);font-weight:500}
/* The fee table fits a phone without losing its last column. */
.pv-table:has(.pv-fees) table{min-width:0}
@media (max-width:640px){
  .pv-fees{font-size:14.5px}
  .pv-fees th,.pv-fees td{padding:8px 7px}
  .pv-article__lede{font-size:17px}
}
/* Second review pass. */
/* Example values in the article box read as examples, not as answers already given. */
/* !important: a legacy form on the same page prints a global "::placeholder{color:#1A0DAB !important}". */
.pvt__fields input::placeholder,.pvc input::placeholder{color:#9aa8b4!important;font-weight:500;opacity:1}
/* The phone result bar leaves at once (no half-transparent bar over the text), and takes no taps while hidden. */
.pvc__bar{transition:transform .2s}
.pvc.is-out .pvc__bar{opacity:1;visibility:hidden;transform:translateY(100%)}
/* Step 4 opens with the same triangle as every other expander on the page. */
details.pvc__group>summary::after{content:none}
details.pvc__group>summary::before{content:"\25C4";font-size:.7em;color:var(--muted);order:-1}
details.pvc__group[open]>summary::before{content:"\25BC"}
