/* מחשבון כדאיות עסקה (calc-deal.html). כל הצבעים נגזרים מארבעת צבעי המותג שב-style.css */

/* ---------- פתיחה ---------- */
.dl-pts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.dl-pts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); color: #fff; font-size: 16px; font-weight: 700; }
.dl-pts svg { width: 18px; height: 18px; color: var(--yellow); stroke-width: 2.4; }

.dl-sec { padding-top: 40px; }
.dl { display: grid; gap: 24px; align-items: start; }
.dl-main { min-width: 0; }
.dl-nav, #dl-results { scroll-margin-top: 110px; }

/* ---------- שלבים ---------- */
.dl-nav { position: relative; padding: 18px 14px 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.dl-progress { position: absolute; top: 0; inset-inline: 22px; height: 5px; border-radius: 0 0 6px 6px; background: var(--surface-2); overflow: hidden; }
.dl-progress i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.dl-nav ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.dl-tab { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 6px 2px; border: 0; border-radius: 16px; background: none; color: var(--muted); font: inherit; cursor: pointer; transition: background .2s; }
.dl-tab:hover { background: var(--surface); }
.dl-tab__n { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-family: var(--font-head); font-weight: 900; font-size: 18px; transition: background .25s, color .25s, transform .25s; }
.dl-tab__n i { font-style: normal; }
.dl-tab__n svg { position: absolute; width: 20px; height: 20px; stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: .25s; }
.dl-tab__t { font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; }
.dl-tab.is-done .dl-tab__n { background: var(--blue); color: #fff; }
.dl-tab.is-done .dl-tab__n i { opacity: 0; }
.dl-tab.is-done .dl-tab__n svg { opacity: 1; transform: none; }
.dl-tab[aria-current="step"] { color: var(--ink); }
.dl-tab[aria-current="step"] .dl-tab__n { background: var(--ink); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 70%, transparent); }
.dl-tab[aria-current="step"].is-done .dl-tab__n i { opacity: 1; }
.dl-tab[aria-current="step"].is-done .dl-tab__n svg { opacity: 0; }

.dl-step { padding: 30px 26px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-card); }
.dl-ready .dl-step:not([hidden]) { animation: dl-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes dl-in { from { opacity: 0; transform: translateY(10px); } }
.dl-step + .dl-step { margin-top: 16px; }
.dl-ready .dl-step + .dl-step { margin-top: 0; }
.dl-step__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.dl-step__ico { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--sand-l); color: var(--ink); }
.dl-step__ico svg { width: 28px; height: 28px; }
.dl-step__k { display: block; font-size: 14px; font-weight: 800; color: var(--blue); }
.dl-step__head h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 900; line-height: 1.1; outline: none; }
.dl-step__head p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.dl-step__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.dl-step__nav .btn svg { width: 20px; height: 20px; }

/* ---------- שדות ---------- */
.dl-grid { display: grid; gap: 20px; }
.dl-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.dl-field > label, .dl-label { font-size: 16px; font-weight: 800; color: var(--ink); }
.dl-input { position: relative; }
.dl-input input { width: 100%; min-height: 58px; padding: 12px 18px; padding-left: 92px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-family: var(--font-head); font-size: 22px; font-weight: 800; text-align: right; transition: border-color .2s, box-shadow .2s, background .2s; -moz-appearance: textfield; }
.dl-input input::-webkit-outer-spin-button, .dl-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dl-input input::placeholder { color: color-mix(in srgb, var(--ink) 35%, #fff); font-weight: 500; font-size: 18px; }
.dl-input input:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.dl-input input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
.dl-unit { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 800; color: var(--muted); pointer-events: none; white-space: nowrap; }
.dl-flash { animation: dl-flash .9s ease-out; }
@keyframes dl-flash { 0% { background: color-mix(in srgb, var(--yellow) 55%, #fff); border-color: var(--yellow); } }
.dl-hint { font-size: 15px; color: var(--muted); }
.dl-hint:empty { display: none; }
.dl-hint b { color: var(--ink); }
.dl-hint--warn, .dl-hint--warn b { color: #B4232A; font-weight: 700; }
.dl-sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 15px; font-weight: 900; color: var(--blue); }
.dl-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dl-sub:first-child { margin-top: 0; }

.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-chip { min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: .2s; }
.dl-chip:hover { border-color: var(--blue); background: var(--surface); }
.dl-chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

.dl-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dl-seg button { position: relative; display: grid; gap: 2px; align-content: start; padding: 14px 14px 14px 34px; border: 2px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); font: inherit; text-align: right; cursor: pointer; transition: .2s; }
.dl-seg button::after { content: ""; position: absolute; left: 12px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: .2s; }
.dl-seg button:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.dl-seg b { font-size: 17px; font-weight: 900; line-height: 1.2; }
.dl-seg small { font-size: 14px; color: var(--muted); line-height: 1.3; }
.dl-seg [aria-checked="true"] { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, #fff); box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 16%, transparent); }
.dl-seg [aria-checked="true"]::after { border: 5px solid var(--blue); }
.dl-seg button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.dl-tax { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 16px; background: var(--sand-l); font-size: 17px; font-weight: 700; }
.dl-tax[hidden] { display: none; }
.dl-tax b { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.dl-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-size: 13px; font-weight: 800; }

.dl-sum { display: grid; gap: 2px; margin-top: 24px; padding: 18px 22px; border-radius: 20px; background: var(--ink); color: #fff; }
.dl-sum[hidden] { display: none; }
.dl-sum > span { font-size: 15px; font-weight: 700; color: var(--on-dark); }
.dl-sum b { font-family: var(--font-head); font-size: 32px; font-weight: 900; line-height: 1.15; color: var(--yellow); }
.dl-sum small { font-size: 14px; color: var(--on-dark); }
.dl-sum.is-neg b { color: #FF9C8F; }

/* ---------- כלים: שמירה וטעינה ---------- */
.dl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.dl-tools .btn svg { width: 18px; height: 18px; }
.dl-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 6px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.dl-link:hover { text-decoration: underline; }
.dl-link svg { width: 18px; height: 18px; }
.dl-tools .dl-link { margin-inline-start: auto; color: var(--muted); }
.dl-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; }
.dl-count[hidden] { display: none; }
.dl-saveform { display: grid; gap: 8px; margin-top: 14px; padding: 16px 18px; border-radius: 20px; background: var(--surface-2); }
.dl-saveform[hidden] { display: none; }
.dl-saveform label { font-weight: 800; }
.dl-saveform div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dl-saveform input { flex: 1 1 200px; min-height: 48px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-size: 17px; }
.dl-saveform input:focus { outline: none; border-color: var(--blue); }
.dl-saved { margin-top: 20px; }
.dl-saved .dl-sub { margin-bottom: 12px; }
.dl-cards { display: grid; gap: 14px; }
.dl-card { position: relative; padding: 20px; border-radius: 22px; border: 2px solid var(--line); background: #fff; }
.dl-card.is-best { border-color: var(--blue); box-shadow: 0 14px 30px color-mix(in srgb, var(--blue) 14%, transparent); }
.dl-card h4 { font-size: 20px; font-weight: 900; margin-bottom: 10px; padding-inline-end: 8px; }
.dl-card dl { display: grid; gap: 6px; margin: 0; }
.dl-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.dl-card dt { color: var(--muted); }
.dl-card dd { margin: 0; font-weight: 800; }
.dl-card__btns { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.dl-badge { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 900; }
.dl-muted { color: var(--muted); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.dl-muted svg { width: 16px; height: 16px; }

/* ---------- תוצאות ---------- */
.dl-res { position: relative; overflow: hidden; isolation: isolate; padding: 28px 24px; border-radius: 30px; background: var(--ink); color: #fff; box-shadow: var(--shadow-card); }
.dl-res::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; top: -180px; left: -140px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 55%, transparent); filter: blur(60px); opacity: .55; }
.dl-res__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.dl-res__head h2 { font-size: 26px; font-weight: 900; }
.dl-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--on-dark); }
.dl-live i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #5BE49B; }
.dl-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #5BE49B; animation: pulse 2s ease-out infinite; }

.dl-empty { display: grid; justify-items: center; gap: 14px; padding: 14px 4px 6px; text-align: center; }
.dl-empty__ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: rgb(255 255 255 / .08); color: var(--yellow); }
.dl-empty__ico svg { width: 36px; height: 36px; }
.dl-empty p { color: var(--on-dark); }
.dl-empty p b { display: block; font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.dl-empty ul { display: grid; gap: 8px; width: 100%; margin: 8px 0 0; padding: 18px 20px; list-style: none; border-radius: 20px; background: rgb(255 255 255 / .06); text-align: right; }
.dl-empty li { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 700; }
.dl-empty li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

.dl-hero { display: grid; gap: 4px; padding: 24px 22px; border-radius: 24px; background: var(--yellow); color: var(--ink); }
.dl-hero__k { font-size: 16px; font-weight: 800; }
.dl-hero > b { font-family: var(--font-head); font-size: clamp(42px, 5vw, 58px); font-weight: 900; line-height: 1.05; letter-spacing: -.5px; }
.dl-hero.is-neg > b { color: #A3141C; }
.dl-hero p { font-size: 16px; }
.dl-hero .btn { justify-self: start; margin-top: 12px; }
.dl-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dl-kpis div { padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / .45); }
.dl-kpis div > span { display: block; font-size: 14px; font-weight: 700; }
.dl-kpis b { font-family: var(--font-head); font-size: 26px; font-weight: 900; }
.dl-hero--locked { background: linear-gradient(160deg, color-mix(in srgb, var(--yellow) 70%, #fff), var(--yellow)); }
.dl-hero--locked .btn { background: var(--ink); color: #fff; box-shadow: none; }
.dl-blur { filter: blur(11px); user-select: none; opacity: .7; }
.dl-hero--todo { background: rgb(255 255 255 / .06); border: 1.5px dashed rgb(255 255 255 / .3); color: #fff; }
.dl-hero--todo p { color: var(--on-dark); }
.dl-hero--todo .dl-hero__k { color: var(--yellow); }

.dl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dl-tile { padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); min-width: 0; }
.dl-tile > span { display: block; font-size: 14px; font-weight: 700; color: var(--on-dark); }
.dl-tile b { font-family: var(--font-head); font-size: 23px; font-weight: 900; line-height: 1.2; }
.dl-tile.is-neg b { color: #FF9C8F; }
.dl-tile.is-pos b { color: #7EE2A8; }

.dl-flow { margin-top: 24px; }
.dl-flow h3 { font-size: 19px; font-weight: 900; margin-bottom: 14px; }
.dl-flow__row { display: grid; gap: 8px; }
.dl-flow__k { display: flex; justify-content: space-between; align-items: baseline; }
.dl-flow__k > span { font-size: 15px; font-weight: 800; color: var(--on-dark); }
.dl-flow__k b { font-family: var(--font-head); font-size: 20px; font-weight: 900; }
.dl-bar2 { display: flex; gap: 2px; width: var(--w); min-width: 6px; height: 16px; border-radius: 999px; overflow: hidden; transition: width .4s; }
.dl-bar2 i { min-width: 3px; }
.dl-legend { display: grid; gap: 6px; margin: 12px 0 20px; padding: 0; list-style: none; }
.dl-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.dl-legend li i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.dl-legend li > span { color: var(--on-dark); }
.dl-legend b { margin-inline-start: auto; font-weight: 800; }
.c1 { background: var(--yellow); }
.c2 { background: color-mix(in srgb, var(--yellow) 45%, #fff); }
.c3 { background: var(--teal); }
.c4 { background: color-mix(in srgb, var(--teal) 50%, #fff); }
.c5 { background: color-mix(in srgb, var(--teal) 18%, #fff); }
.c6 { background: color-mix(in srgb, var(--yellow) 35%, var(--teal)); }
.c7 { background: #FF9C8F; }

.dl-actions { display: grid; gap: 10px; }
.dl-actions .btn { width: 100%; }

.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- חלון הפרטים ---------- */
.dl-gate__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--sand-l); color: var(--ink); }
.dl-gate__ico svg { width: 28px; height: 28px; }
.dl-gate__close { justify-self: center; color: var(--muted); }

/* ---------- פס תחתון בטלפון והודעות ---------- */
.dl-bar { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 12px; padding-inline-start: 20px; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); animation: dl-in .3s ease-out; }
.dl-bar[hidden] { display: none; }
.dl-bar > div > span { display: block; font-size: 13px; font-weight: 700; color: var(--on-dark); }
.dl-bar b { font-family: var(--font-head); font-size: 24px; font-weight: 900; color: var(--yellow); line-height: 1.1; }
.dl-bar .btn svg { width: 18px; height: 18px; }
body.dl-bar-on .wa-float { bottom: 96px; }
.dl-toast { position: fixed; z-index: 95; left: 50%; bottom: 26px; width: max-content; max-width: calc(100% - 32px); text-align: center; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--shadow-pop); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s; }
.dl-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
body.dl-bar-on .dl-toast { bottom: 100px; }

/* ---------- מסכים ---------- */
@media (min-width: 700px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-field--wide { grid-column: 1 / -1; }
  .dl-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .dl { grid-template-columns: minmax(0, 1.3fr) minmax(360px, .9fr); gap: 28px; }
  .dl-res { position: sticky; top: 106px; max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: thin; }
  .dl-step { padding: 38px 36px; }
}
@media (max-width: 640px) {
  .dl-step { padding: 24px 18px; }
  .dl-step__head { gap: 12px; }
  .dl-step__ico { width: 46px; height: 46px; border-radius: 14px; }
  .dl-step__ico svg { width: 22px; height: 22px; }
  .dl-nav { padding: 16px 6px 10px; }
  .dl-tab__n { width: 34px; height: 34px; font-size: 16px; }
  .dl-tab__t { font-size: 13px; }
  .dl-seg { grid-template-columns: 1fr; }
  .dl-seg button { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
  .dl-res { padding: 24px 16px; }
  .dl-step__nav .btn { padding-inline: 18px; }
  .dl-pts li { font-size: 15px; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-ready .dl-step:not([hidden]), .dl-bar, .dl-flash { animation: none; }
  .dl-progress i, .dl-bar2 { transition: none; }
}
.dl-tile b .ltr, .dl-kpis b .ltr, .dl-hero > b .ltr { white-space: nowrap; }
@media (max-width: 400px) { .dl-tile b { font-size: 19px; } .dl-kpis b { font-size: 22px; } }

/* ---------- מה אם, והשוואה להשקעה אחרת ---------- */
.dl-more { display: grid; gap: 24px; margin-top: 28px; }
.dl-more[hidden] { display: none; }
.dl-box { padding: 30px 26px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-card); min-width: 0; }
.dl-box .dl-step__head { margin-bottom: 20px; }
.dl-grid--one { grid-template-columns: 1fr !important; }
.dl-presets { margin-bottom: 8px; }
.dl-range { padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.dl-range__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.dl-range__top label { font-weight: 800; }
.dl-range__top output { font-family: var(--font-head); font-size: 20px; font-weight: 900; color: var(--blue); }
.dl-range__top output small { font-size: 15px; color: var(--muted); font-weight: 700; }
.dl-range input[type="range"] { width: 100%; height: 34px; margin: 6px 0 0; accent-color: var(--blue); cursor: pointer; }
.dl-range__ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 700; }
.dl-wi { display: grid; gap: 2px; margin-top: 20px; padding: 20px 22px; border-radius: 22px; background: var(--ink); color: #fff; }
.dl-wi > span:first-child { font-size: 15px; font-weight: 700; color: var(--on-dark); }
.dl-wi > b { font-family: var(--font-head); font-size: clamp(34px, 4vw, 44px); font-weight: 900; line-height: 1.1; color: var(--yellow); }
.dl-wi.is-neg > b { color: #FF9C8F; }
.dl-wi small { font-size: 15px; color: var(--on-dark); margin-top: 4px; }
.dl-wi p { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .14); font-weight: 700; }
.dl-diff { justify-self: start; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); font-size: 15px; font-weight: 800; }
.dl-diff.is-down { background: rgb(255 156 143 / .18); color: #FFB4AA; }
.dl-diff.is-up { background: rgb(126 226 168 / .16); color: #7EE2A8; }
.dl-alt__lead { margin: 20px 0 16px; font-size: 17px; }
.dl-alt__lead b { font-family: var(--font-head); font-weight: 900; }
.dl-alt__row { display: grid; gap: 6px; margin-bottom: 14px; }
.dl-alt__row .dl-flow__k > span { color: var(--ink); font-size: 16px; }
.dl-alt__row .dl-flow__k b { font-size: 22px; }
.dl-alt__bar { height: 18px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dl-alt__bar i { display: block; height: 100%; border-radius: inherit; transition: width .4s; }
.is-deal .dl-alt__bar i { background: var(--blue); }
.is-alt .dl-alt__bar i { background: var(--yellow); }
.dl-verdict { margin: 6px 0 10px; padding: 14px 18px; border-radius: 16px; font-size: 18px; font-weight: 800; background: var(--sand-l); }
.dl-verdict b { font-family: var(--font-head); font-weight: 900; font-size: 21px; }
.dl-verdict.is-up { background: color-mix(in srgb, var(--blue) 9%, #fff); color: var(--ink); }
.dl-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-actions__row .btn { padding-inline: 12px; }
@media (min-width: 1000px) { .dl-more { grid-template-columns: 1.15fr 1fr; align-items: start; } .dl-box { padding: 36px 34px; } }
@media (max-width: 640px) { .dl-box { padding: 24px 18px; } }

/* ---------- דוח להדפסה / PDF ---------- */
.dl-report { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body.dl-printing { background: #fff; font-size: 11.5pt; line-height: 1.45; }
  body.dl-printing > :not(.dl-report) { display: none !important; }
  body.dl-printing .dl-report { display: block; color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dl-report .ltr { display: inline-block; }
  .rp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
  .rp-head img { width: 130px; height: auto; order: 2; }
  .rp-head h1 { font-size: 24pt; font-weight: 900; line-height: 1.1; }
  .rp-head p { color: var(--muted); font-size: 11pt; }
  .rp-hero { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; margin: 16px 0 6px; }
  .rp-hero > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
  .rp-hero .rp-main { background: var(--yellow); }
  .rp-hero span { display: block; font-size: 9.5pt; font-weight: 700; }
  .rp-hero b { font-family: var(--font-head); font-size: 15pt; font-weight: 900; }
  .rp-hero .rp-main b { font-size: 22pt; }
  .dl-report h2 { margin: 16px 0 6px; font-size: 14pt; font-weight: 900; color: var(--blue); break-after: avoid; }
  .dl-report table { width: 100%; border-collapse: collapse; }
  .dl-report td, .dl-report th { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: right; font-size: 10.5pt; }
  .dl-report td:last-child { font-weight: 800; }
  .rp-sc th { background: var(--ink); color: #fff; font-size: 10pt; }
  .rp-sc td:last-child, .rp-sc td:nth-child(3) { font-weight: 800; }
  .rp-total td { border-top: 2px solid var(--ink); font-weight: 900; font-size: 12pt; }
  .rp-cols { columns: 2; column-gap: 18px; }
  .rp-group { break-inside: avoid; margin-bottom: 8px; }
  .rp-group h3 { font-size: 11pt; font-weight: 900; margin-bottom: 2px; }
  .rp-gloss { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 0; }
  .rp-gloss div { break-inside: avoid; padding: 3px 0; border-bottom: 1px solid #e3e6ef; }
  .rp-gloss dt { font-size: 10pt; font-weight: 900; }
  .rp-gloss dd { margin: 0; font-size: 9.5pt; color: var(--muted); line-height: 1.35; }
  .rp-foot { margin-top: 18px; padding-top: 8px; border-top: 2px solid var(--ink); font-size: 9.5pt; color: var(--muted); }
  .rp-foot b { color: var(--ink); }
}

/* ---------- מס על השכירות ותשואות נוספות ---------- */
.dl-field[hidden], .dl-tax[hidden] { display: none; }
.dl-tax--soft { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; background: var(--surface-2); }
.dl-tax--soft b { font-size: 18px; }
.dl-kpis .dl-kpi--wide { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.dl-kpi--wide b { color: var(--yellow); }
.dl-kpi--wide small { display: block; font-size: 13px; line-height: 1.4; color: var(--on-dark); }
.dl-tile small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--on-dark); }
.c8 { background: color-mix(in srgb, #FF9C8F 55%, var(--yellow)); }
@media print { .rp-hero { grid-template-columns: 1.4fr repeat(4, 1fr); } }

/* הסבר קצר לכל תוצאה, נפתח בלחיצה על "?" */
.dl-q { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-inline-start: 6px; padding: 0; vertical-align: 1px;
  border: 1.5px solid currentColor; border-radius: 50%; background: none; color: inherit; font: 800 12px/1 inherit;
  opacity: .6; cursor: pointer; position: relative; transition: opacity .15s; }
.dl-q::after { content: ''; position: absolute; inset: -10px; }
.dl-q:hover, .dl-q[aria-expanded="true"] { opacity: 1; }
.dl-q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; opacity: 1; }
.dl-note { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; animation: dlNote .2s ease; }
.dl-hero > .dl-note { font-size: 15px; opacity: .85; }
.dl-kpis .dl-note { opacity: .85; }
.dl-tile .dl-note { color: var(--on-dark); }
.dl-note[hidden] { display: none; }
@keyframes dlNote { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dl-note { animation: none; } }
