/* [pv_fund_compare] (inc/fund-compare.php): the comprehensive funds' age tracks, by age band.
   One table, laid out by the width of its own box: a grid on a desk, one card per fund under 640px. */
.pv-calc-wrap{margin-top:8px;margin-bottom:40px}
.pv-form-slot--calc{margin:0 0 32px}
.pv-fc{color:var(--ink)}
.pv-fc__head{margin:0 0 12px}
.pv-fc__title{font-size:24px;margin:0 0 4px}
.pv-fc__sub{margin:0;color:var(--muted);font-size:16.5px;line-height:1.5}
.pv-fc__radio{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pv-fc__tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px;border:0;padding:0;min-width:0}
.pv-fc__legend{width:100%;padding:0;margin:0 0 8px;font-size:15px;color:var(--muted)}
.pv-fc__tab{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:2px solid var(--line);border-radius:999px;font-weight:700;font-size:16px;cursor:pointer;background:#fff;color:var(--ink)}
.pv-fc__tab:hover{border-color:var(--teal-700)}
.pv-fc__tab:has(input:checked){background:var(--ink);border-color:var(--ink);color:#fff}
.pv-fc__tab:has(input:focus-visible){outline:3px solid var(--teal);outline-offset:2px}
.pv-fc__panel{display:none}
.pv-fc:has(input[data-band=b50]:checked) .pv-fc__panel--b50,
.pv-fc:has(input[data-band=b5060]:checked) .pv-fc__panel--b5060,
.pv-fc:has(input[data-band=b60]:checked) .pv-fc__panel--b60,
.pv-fc:has(input[data-band=sp500]:checked) .pv-fc__panel--sp500{display:block}

.pv-fc__tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:0 0 16px}
.pv-fc__tile{background:var(--tint);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.pv-fc__fig{font-size:22px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums}
.pv-fc__lab{font-size:15px;font-weight:600;line-height:1.4}
.pv-fc__q{font-size:14px;color:var(--muted);line-height:1.4}

.pv-fc__box{container-type:inline-size;width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.pv-fc__table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.45;font-variant-numeric:tabular-nums}
.pv-fc__table caption{caption-side:top;text-align:right;font-weight:700;font-size:15px;padding:10px 14px;background:var(--tint);border-bottom:1px solid var(--line)}
.pv-fc__table thead th{background:var(--ink);color:#fff;font-weight:600;font-size:14.5px;text-align:right;padding:10px 12px;vertical-align:bottom}
.pv-fc__table td,.pv-fc__table tbody th{padding:10px 12px;border-bottom:1px solid var(--line);text-align:right;vertical-align:middle}
.pv-fc__table tbody tr:last-child>*{border-bottom:0}
.pv-fc__table tbody tr:nth-child(even)>*{background:var(--tint)}
.pv-fc__fund{font-weight:700;background:inherit}
.pv-fc__fundin{display:flex;align-items:center;gap:10px}
.pv-fc__logo{width:40px;height:auto;flex:0 0 40px;border-radius:6px}
.pv-fc__name{display:flex;flex-direction:column}
.pv-fc__name a{color:var(--ink);text-decoration:none}
.pv-fc__name a:hover{text-decoration:underline;color:var(--teal-700)}
.pv-fc__name small{font-weight:400;font-size:13.5px;color:var(--muted)}
.pv-fc__key{font-weight:700;font-size:17px}
.pv-fc__na{font-size:13.5px;color:var(--muted);font-weight:400}
.pv-fc__insight{margin:14px 0 0;font-size:16px;line-height:1.6;background:var(--teal-100);border-radius:var(--radius-sm);padding:12px 16px}
.pv-fc__cta{margin:18px 0 0;display:flex;align-items:center;gap:16px;justify-content:space-between;background:var(--ink);color:#fff;border-radius:var(--radius);padding:18px 20px}
.pv-fc__cta p{margin:0;font-size:16.5px;line-height:1.55;color:#fff}
.pv-fc__btn{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 22px;border-radius:999px;font-weight:700;text-decoration:none}
.pv-fc__btn svg{width:18px;height:18px}
.pv-fc .pv-fc__btn,.pv-fc .pv-fc__btn:hover{color:#fff}
.pv-fc__about{margin:12px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}

/* One card per fund when the box is narrow: the fund and its 12-month return on the first line, every other
   column as a labelled line (standards.md: a comparison table on a phone). */
@container (max-width: 640px){
  .pv-fc__table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .pv-fc__table,.pv-fc__table tbody{display:block}
  .pv-fc__table tbody tr{display:grid;grid-template-columns:1fr auto;column-gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}
  .pv-fc__table tbody tr:last-child{border-bottom:0}
  .pv-fc__table tbody tr>*{border:0;padding:0;background:transparent!important}
  .pv-fc__table tbody tr:nth-child(even){background:var(--tint)}
  .pv-fc__table tbody th{grid-column:1;grid-row:1}
  .pv-fc__table td{grid-column:1 / -1;display:flex;justify-content:space-between;gap:12px;font-size:15.5px;padding:3px 0}
  .pv-fc__table td::before{content:attr(data-label);color:var(--muted);font-weight:400}
  .pv-fc__table td.pv-fc__key{grid-column:2;grid-row:1;align-self:center;display:flex;flex-direction:column;align-items:flex-end;font-size:20px;padding:0}
  .pv-fc__table td.pv-fc__key::before{content:"12 חודשים";font-size:12.5px}
  .pv-fc__table tbody tr>td:nth-child(3){margin-top:6px}
}
@media (max-width: 760px){
  .pv-fc__title{font-size:19px}
  .pv-fc__sub{font-size:15px}
  .pv-fc__head{margin:0 0 10px}
  .pv-fc__tabs{margin:0 0 12px}
  .pv-fc__tab{min-height:44px}
  .pv-fc__table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  /* This stylesheet loads only on the comparison page: a slimmer head, so the first funds are on the first screen. */
  .pv-article__head{padding:16px 0 12px}
  .pv-article__head .pv-article__title{font-size:28px;margin-bottom:6px}
  .pv-article__head .pv-meta{font-size:13.5px}
  .pv-article__head .pv-article__lede{font-size:16px;line-height:1.55}
  .pv-article__head .pv-article__lede p{margin:6px 0 0}
  .pv-calc-wrap{margin-top:0}
  .pv-fc__tiles{grid-template-columns:1fr;gap:8px}
  .pv-fc__tile{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:10px;padding:10px 14px}
  .pv-fc__fig{font-size:18px}
  .pv-fc__q{flex-basis:100%}
  .pv-fc__tabs{gap:6px}
  .pv-fc__tab{padding:0 14px;font-size:15px;flex:1 1 auto;justify-content:center}
  .pv-fc__cta{flex-direction:column;align-items:stretch;text-align:right}
  .pv-fc__btn{justify-content:center}
}
.pv-fc__note{display:block;font-size:12.5px;line-height:1.35}
@container (max-width: 640px){
  .pv-fc__table td:has(.pv-fc__note){flex-wrap:wrap}
  .pv-fc__table td .pv-fc__note{flex-basis:100%;text-align:left}
}
@media (max-width: 760px){
  .pv-fc__tile{padding:8px 12px;row-gap:0}
  .pv-fc__fig{font-size:17px}
  .pv-fc__lab{font-size:14px}
  .pv-fc__q{font-size:12.5px}
  .pv-fc__tiles{gap:6px;margin:0 0 12px}
  .pv-fc__legend{margin-bottom:6px;font-size:14px}
  .pv-fc__sub{margin:0}
}
