@font-face {
  font-family: "Assistant";
  src: url("/fonts/Assistant-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #8cc540;
  --brand-dark: #5f8a24;
  --teal: #007a9e;
  --teal-soft: #e6f6fb;
  --ink: #2e3233;
  --muted: #5c6366;
  --bg: #f3f6f2;
  --paper: #ffffff;
  --line: #d9e0d4;
  --down: #1f6b2a;
  --down-soft: #e5f5e3;
  --up: #9f1d1d;
  --up-soft: #fdecec;
  --flat: #5c6366;
  --shadow: 0 8px 24px rgba(46, 50, 51, 0.08);
  --header: #1d3a12;
  --radius: 14px;
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Assistant", "Arial Hebrew", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
}

.skip {
  position: absolute;
  right: 12px;
  top: -40px;
  background: var(--header);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: var(--header);
  color: #fff;
  padding: 20px 16px 24px;
  border-bottom: 6px solid var(--brand);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.logo-link {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  flex: none;
}

.logo-link img {
  display: block;
  width: 168px;
  height: auto;
}

.header-text {
  flex: none;
  width: 100%;
  text-align: center;
}

.site-brand {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.site-brand a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 {
  margin: 0;
  /* כותרת מוגדלת (בקשת יניב, 17.11): גדלה עם רוחב המסך, ונשארת בשורה אחת גם במסך צר */
  font-size: clamp(1.75rem, 8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.fetch-stamp {
  margin: 6px 0 0;
  font-size: 14px;
  color: #dce8d4;
}

/* שורת משנה מתחת לכותרת הראשית (מחשבון גובה משכנתא, בקשת יניב 18.11) */
.header-sub {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.guide {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.index-tile {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 10px 12px 10px 10px;
  padding-inline-start: 12px;
  padding-inline-end: 34px;
  text-align: right;
  cursor: pointer;
  box-shadow: var(--shadow);
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.index-tile:hover,
.index-tile:focus-visible {
  border-color: var(--brand-dark);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.index-tile[aria-pressed="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(0, 122, 158, 0.25), var(--shadow);
}

.index-tile .tile-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.index-tile .tile-title {
  font-weight: 800;
  font-size: clamp(13px, 9cqi, 15px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.index-tile .tile-num {
  font-size: clamp(1.15rem, 14cqi, 1.55rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.index-tile .tile-num.is-drop {
  color: var(--down);
}
.index-tile .tile-num.is-rise {
  color: var(--up);
}
.index-tile .tile-num.is-steady {
  color: var(--flat);
}

.index-tile .tile-extra,
.index-tile .when,
.index-tile .tile-period {
  font-size: clamp(11px, 7.5cqi, 13px);
  line-height: 1.3;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.calc-open {
  width: 100%;
  margin: 0;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  text-align: right;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-open-kicker,
.calc-open-title,
.calc-open-hint {
  grid-column: 1;
}

.calc-open-kicker {
  font-size: 12px;
  font-weight: 650;
  opacity: 0.9;
}

.calc-open-hint {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  opacity: 0.95;
}

.calc-open-chevron {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 28px;
  height: 28px;
  color: #fff;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}

.calc-open[aria-expanded="true"] .calc-open-chevron {
  transform: rotate(180deg);
}

.calc-open:hover,
.calc-open:focus-visible {
  background: #006280;
  box-shadow: 0 0 0 2px rgba(0, 122, 158, 0.35), var(--shadow);
  outline: 2px solid var(--header);
  outline-offset: 2px;
}

.detail-pane {
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.pane-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pane-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.pane-meta,
.pane-next,
.pane-source,
.trend-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.icon-btn:focus-visible,
.icon-btn:hover {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.trend-wrap {
  margin-top: 12px;
}

.trend-svg {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(#f8faf6, #fff);
  border-radius: 10px;
}

.changes {
  margin: 4px 0 20px;
}

.changes h2,
.glossary h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.changes ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.changes li {
  background: var(--paper);
  border-radius: var(--radius);
  border-right: 5px solid var(--brand);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.changes li h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.changes li p {
  margin: 0;
  color: var(--muted);
}

.refinance {
  margin-top: 20px;
  text-align: center;
}

.refinance-btn {
  display: inline-block;
  background: var(--header);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
}

.refinance-btn:hover,
.refinance-btn:focus-visible {
  background: var(--brand-dark);
  outline: 2px solid var(--header);
  outline-offset: 3px;
}

.placeholder-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.glossary {
  margin-top: 28px;
}


.gloss {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 8px;
}

.gloss summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 0;
}

.gloss .gloss-body {
  padding: 0 0 14px;
  color: var(--muted);
}

.gloss .gloss-body p {
  margin: 0 0 8px;
}

.prime-eq {
  background: var(--teal-soft);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 700;
  margin: 8px 0;
}

.site-footer {
  background: #16260e;
  color: #dce8d4;
  padding: 24px 16px 32px;
}

.site-footer a {
  color: #fff;
}

.disclaimer,
.footer-meta {
  max-width: var(--max);
  margin: 0 auto 12px;
  font-size: 14px;
}

.footer-meta {
  margin-bottom: 0;
}

.dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.dialog-layer[hidden] {
  display: none !important;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 38, 14, 0.5);
}

.dialog-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(22, 38, 14, 0.2);
}

.calc-form {
  display: grid;
  gap: 14px;
}

.field label,
fieldset legend {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.field input {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.field input:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.choice-row button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.choice-row button[aria-checked="true"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.calc-res {
  display: grid;
  gap: 8px;
}

.calc-res > div {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.calc-res .headline-num {
  background: var(--teal-soft);
  font-size: 1.15rem;
  font-weight: 800;
}

.calc-res .headline-num.is-drop {
  background: var(--down-soft);
  color: var(--down);
}
.calc-res .headline-num.is-rise {
  background: var(--up-soft);
  color: var(--up);
}

.calc-hint,
.lead-line {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.status {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--header);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 30;
}

@media (min-width: 700px) {
  .index-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .dialog-layer {
    align-items: center;
    padding: 24px;
  }
  .dialog-box {
    border-radius: 16px;
    max-height: 85vh;
  }
  .logo-link img {
    width: 200px;
  }
}

.index-tile .tile-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-block;
  background: #fff4d6;
  color: #6b4b00;
  border: 1px solid #e6c56e;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
}

.badge.quiet {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: #b5d8e6;
}

.prime-eq-note {
  display: block;
  font-weight: 650;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.cbs-credit {
  max-width: var(--max);
  margin: 0 auto 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #c5d4b8;
  overflow-wrap: anywhere;
}

/* כרטיסים ריבועיים שווים; שורות המקור בחלונית המידע */
.index-tile-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  overflow: visible;
}
.index-tile-item .index-tile {
  flex: 1 1 auto;
}

.index-tile-item:has(.index-tile-info[aria-expanded="true"]),
.index-tile-item:focus-within {
  z-index: 6;
}

.index-tile-info {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 3;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: var(--paper);
  color: var(--teal);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.index-tile-info:hover,
.index-tile-info:focus-visible {
  background: var(--teal);
  color: #fff;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.index-tile-info[aria-expanded="true"] {
  background: var(--teal);
  color: #fff;
}

.index-tile-note {
  position: absolute;
  top: 36px;
  inset-inline-end: 0;
  z-index: 20;
  width: min(300px, calc(100vw - 32px));
  min-width: min(240px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(46, 50, 51, 0.16);
  padding: 10px 12px;
  text-align: right;
}

.index-tile-note .src {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.index-tile-note .src + .src {
  margin-top: 6px;
}

.src {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.src a {
  color: inherit;
  text-decoration: underline;
}
.pane-source .src + .src,
.changes li .src {
  margin-top: 4px;
}
.data-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.calc-source {
  margin-top: 6px;
}

/* מחשבונים: ריבועים שווים בגודל כרטיסי המדדים */
.calcs {
  margin-top: 16px;
}

.calc-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-tiles .calc-open {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  padding: 12px 12px 40px;
  box-sizing: border-box;
  container-type: inline-size;
  overflow: hidden;
}

.calc-tiles .calc-open-title {
  font-size: clamp(13px, 9cqi, 16px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.calc-tiles .calc-open-hint {
  margin-top: auto;
}

/* גרסה 14־ד: החץ לא מתכווץ בטלפון צר. styles-3d.css נותן לכל ילד בריבוע position: relative, ולכן החץ הוא פריט flex
   שהתכווץ (עד 10px גובה ב־360px) כשהטקסט מעליו ירד לשתי שורות */
/* 5.12: position:absolute בבורר החזק יותר מ־.calc-open > * ב־styles-3d.css; החץ למטה (bottom: 4px) והריפוד 40px, כדי שלא יכסה את הטקסט */
.calc-tiles .calc-open > .calc-open-chevron {
  flex-shrink: 0;
  position: absolute;
  bottom: 4px;
  inset-inline-end: 10px;
  width: 24px;
  height: 24px;
}

/* גרסה 14־ד: בריבוע פירעון מוקדם «פירעון מוקדם» בשורה הראשונה ו«של משכנתא» בשנייה, בכל רוחב */
.calc-tiles .ph-tile .ph-title-line {
  display: block;
  white-space: nowrap;
}

.calc-tiles .calc-open {
  position: relative;
}

.choice-row.choice-row-2 {
  grid-template-columns: 1fr 1fr;
}

.choice-row.choice-row-2 button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.3;
}

.choice-row.choice-row-2 button small {
  font-size: 12px;
  font-weight: 650;
  opacity: 0.85;
}

.choice-row button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.mode-hint {
  margin-top: 6px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pair .field {
  min-width: 0;
}

.field select {
  font: inherit;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  min-width: 0;
}

.field select:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.month-year {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6px;
}

.calc-error {
  margin: 0;
  background: var(--up-soft);
  color: var(--up);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.calc-res > div > span small {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}

.calc-res > .impact-sum {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.calc-res .impact-month,
.calc-res .impact-year {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.calc-res .impact-month span,
.calc-res .impact-year span {
  flex: 1 1 auto;
  min-width: 0;
}
.calc-res .impact-year {
  font-weight: 500;
  font-size: 13px;
}
.calc-res .impact-year b {
  font-weight: 700;
  font-size: 13px;
}

.calc-res b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-res .chg.is-rise b {
  color: var(--up);
}

.calc-res .chg.is-drop b {
  color: var(--down);
}

@media (min-width: 700px) {
  .calc-tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 380px) {
  .pair {
    grid-template-columns: 1fr;
  }
}

/* מחשבון מס רכישה */
.choice-row.choice-row-tracks {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .choice-row.choice-row-tracks {
    grid-template-columns: repeat(4, 1fr);
  }
}

.calc-res > .tax-tier {
  display: block;
  background: none;
  padding: 0;
}

.calc-res .tax-steps-title {
  margin: 6px 0 0;
  font-size: 15px;
}

.calc-res > .tax-steps {
  display: grid;
  width: 100%;
  justify-self: stretch;
  justify-content: stretch;
  align-items: stretch;
  gap: 6px;
  background: none;
  padding: 0;
}

.tax-steps > div {
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.calc-warn {
  margin: 0;
  font-size: 14px;
  color: var(--ink, #1f2a2e);
  background: #fff7e0;
  border-inline-start: 4px solid #d9a300;
  border-radius: 8px;
  padding: 8px 10px;
}

/* מחשבון הפריים: שש אפשרויות לתזוזת הריבית */
.choice-row.choice-row-shift {
  grid-template-columns: repeat(3, 1fr);
}

.choice-row.choice-row-shift button {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  min-height: 48px;
}

.choice-row.choice-row-shift button small {
  font-size: 14px;
  font-weight: 800;
}

/* מה מייחד את העמוד: פס קצר מתחת לכותרת */
.highlights {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlights li {
  background: var(--teal-soft);
  color: #00485e;
  border: 1px solid #b9e3f0;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.calcs h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

/* בנייד: כל מדד בשורה משלו, המספר בצד השמאלי */
@media (max-width: 699px) {
  .index-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .index-tile {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "kicker kicker"
      "title num"
      "extra num"
      "period period";
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }
  .index-tile .tile-kicker { grid-area: kicker; }
  .index-tile .tile-title { grid-area: title; font-size: 16px; }
  .index-tile .tile-num { grid-area: num; font-size: 1.6rem; }
  .index-tile .tile-extra { grid-area: extra; }
  .index-tile .tile-period { grid-area: period; }
  .index-tile-item {
    aspect-ratio: auto;
  }
  .index-tile .tile-num { justify-self: end; }
}

/* הזמנה לשיחה אחרי ההסבר על המדדים */
.contact-cta {
  margin: 18px 0 0;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--header), #2d5a1b);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--brand);
}

.contact-cta-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
}

.contact-cta-text {
  margin: 0 0 14px;
  color: #dce8d4;
  font-size: 15px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: min(260px, 100%);
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #10200a;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  background: #a4d65f;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.footer-rights {
  max-width: var(--max);
  margin: 12px auto 0;
  font-size: 13px;
  color: #b9c9ae;
}

/* כל ריבועי המחשבונים בדף הבית באותו גודל, ביחס 1:1 */
a.calc-open {
  text-decoration: none;
}

.tmh-calc .calc-form {
  grid-template-columns: minmax(0, 1fr);
}

.tmh-calc .pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmh-calc .field input,
.tmh-calc .field select {
  min-width: 0;
  width: 100%;
}

/* מספרים שיכולים להיות שליליים (מרווח מהפריים): מינוס בצד הנכון */
.tmh-calc input.tmh-ltr {
  direction: ltr;
  text-align: right;
}

.tmh-tracks {
  display: grid;
  gap: 10px;
}

.tmh-track {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: #fbfdf9;
}

.tmh-track legend {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  margin-bottom: 0;
}

.tmh-swatch {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.tmh-remove {
  display: block;
  margin: 8px 0 0;
  margin-inline-start: auto;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--up);
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 32px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tmh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-top: 6px;
}

.tmh-grid .field {
  min-width: 0;
}

.tmh-grid .field label {
  font-size: 14px;
  margin-bottom: 4px;
}

.tmh-grid .field select {
  width: 100%;
}

.tmh-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.tmh-note {
  display: block;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 700px) {
  .tmh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tmh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmh-action {
  appearance: none;
  border: 1px dashed var(--teal);
  background: var(--teal-soft);
  color: #00485e;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tmh-action:disabled {
  opacity: 0.6;
  cursor: default;
}

.tmh-action:focus-visible,
.tmh-remove:focus-visible,
.tmh-yearly summary:focus-visible,
.tmh-table-wrap:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.tmh-sum {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.tmh-sum.is-ok {
  color: var(--down);
}

.tmh-sum.is-off {
  color: var(--up);
}

.tmh-subtitle {
  margin: 6px 0 0;
  font-size: 16px;
}

.tmh-rules ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.tmh-rules li {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  border-inline-start: 4px solid var(--down);
  background: var(--down-soft);
}

.tmh-rules li.is-warn {
  border-inline-start-color: #d9a300;
  background: #fff7e0;
}

.tmh-track-outs {
  display: grid;
  gap: 10px;
}

@media (min-width: 700px) {
  .tmh-track-outs {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.tmh-track-out {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.tmh-track-out h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 15px;
}

.tmh-track-out .tmh-note {
  margin-bottom: 6px;
}

.tmh-track-out .calc-res > div {
  padding: 6px 10px;
}

.tmh-chart-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
}

.tmh-chart {
  direction: ltr;
  display: block;
  width: 100%;
  height: auto;
}

.tmh-legend {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}

.tmh-legend li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tmh-yearly summary {
  cursor: pointer;
  font-weight: 800;
  padding: 8px 0;
}

.tmh-table-wrap {
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tmh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tmh-table th,
.tmh-table td {
  padding: 6px 8px;
  text-align: start;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.tmh-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg);
}

.tmh-cta {
  margin-top: 4px;
}

@media (max-width: 380px) {
  .tmh-calc .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* עמוד מחשבון התמהיל */
.tmh-home-link {
  color: #dce8d4;
}

.tmh-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.tmh-crumbs a {
  color: var(--teal);
}

.tmh-intro p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.tmh-panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.tmh-panel > h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.tmh-back {
  margin: 18px 0 0;
  font-weight: 700;
}

.tmh-back a {
  color: var(--teal);
}

@media (max-width: 420px) {
  .tmh-panel {
    padding: 12px 10px;
  }
}

.hon-kinds {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: #fbfdf9;
  display: grid;
  gap: 8px;
}
.hon-kinds legend {
  font-weight: 700;
  padding: 0 6px;
}
.hon-kind {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
}
.hon-calc h3 {
  margin: 8px 0 0;
  font-size: 18px;
}
@media (max-width: 640px) {
  .hon-calc .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hon-result,
.zak-result,
.mec-result {
  margin-top: 8px;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: #f6fbef;
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}
.hon-calc .hon-result-title,
.zak-calc .zak-result-title,
.mec-calc .mec-result-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--header);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hon-result-title::before,
.zak-result-title::before,
.mec-result-title::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--brand);
}
.hon-res,
.zak-res,
.mec-res {
  display: grid;
  gap: 10px;
}
.hon-res-main,
.zak-res-main,
.mec-res-main {
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  text-align: center;
}
/* גרסה 13־ה־4 (יניב): הצבעים והפינות של החלונות, בכלל אחד שגם מסגרת התוצאה הסופית (.zak-final) משתמשת בו */
.hon-res-main,
.zak-res-main,
.mec-res-main,
.zak-final {
  background: var(--header);
  color: #fff;
  border-radius: 12px;
}
.hon-res-label,
.zak-res-label,
.mec-res-label {
  font-size: 18px;
  font-weight: 700;
}
.hon-res-num,
.zak-res-num,
.mec-res-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
}
/* גרסה 13־ה־4: צבע הסכום בחלונות ובמסגרת התוצאה הסופית, מאותו כלל */
.hon-res-num,
.zak-res-num,
.mec-res-num,
.zak-final .zak-final-num {
  color: var(--brand);
}
.hon-res-main small,
.zak-res-main small,
.mec-res-main small {
  font-size: 14px;
}
/* גרסה 13־ה־4: צבע הטקסט המשני בחלונות, וגם «(לפי …)» וההסבר של עיגול ה־i במסגרת התוצאה הסופית */
.hon-res-main small,
.zak-res-main small,
.mec-res-main small,
.zak-final .zak-final-by,
.zak-final .ph-info-text {
  color: #dfe9d6;
}
.zak-res-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
/* גרסה 13־ה־3: גודל הסכום בחלונות (34px) מוגדר יחד עם הסכום במסגרת התוצאה הסופית, בהמשך הקובץ */
.hon-res-side,
.zak-res-side,
.mec-res-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hon-res-item,
.zak-res-item,
.mec-res-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}
.hon-res-item > span,
.zak-res-item > span,
.mec-res-item > span {
  color: var(--muted);
  font-size: 15px;
}
.hon-res-item > b,
.zak-res-item > b,
.mec-res-item > b {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.hon-res-item small,
.zak-res-item small,
.mec-res-item small {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 640px) {
  .hon-res-side,
  .zak-res-side,
  .mec-res-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .hon-res-num,
  .zak-res-num,
  .mec-res-num {
    font-size: 34px;
  }
  .zak-res-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .zak-result-note {
    font-size: 18px;
  }
  .zak-result-cap {
    font-size: 20px;
  }
}

.zak-result-note {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.zak-result-cap {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--header);
  line-height: 1.35;
}
/* גרסה 13־ד: שורת הסכום עם עיגול ה־i (אותו רכיב .ph-info-btn); הטקסט נשבר בתוך השורה בנייד */
.zak-cap-row {
  align-items: flex-start;
  margin-bottom: 0;
}
.zak-cap-row[hidden] {
  display: none;
}
.zak-cap-row .zak-result-cap {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.zak-cap-row .ph-info-btn {
  margin-top: 6px;
}
/* גרסה 13־ה־2 (יניב): «גובה המשכנתא המקסימלי המשוער» בתוך מסגרת, כדי שיהיה ברור שזו התוצאה הסופית.
   גרסה 13־ה־4 (יניב): הרקע, צבע הטקסט והפינות כמו בחלונות שמעל (בכלל המשותף למעלה), בלי צל כמו בחלונות.
   מה שמבדיל את המסגרת: קו מסגרת ירוק בהיר עבה. */
.zak-final {
  margin: 14px 0 6px;
  padding: 14px 16px 12px;
  border: 4px solid var(--brand);
}
.zak-final[hidden] {
  display: none;
}
.zak-final .zak-result-note {
  margin: 0 0 8px;
  font-size: 17px;
  color: inherit;
}
.zak-final .zak-result-cap {
  color: inherit;
}
.zak-final .zak-final-label {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}
/* גרסה 13־ה־3 (יניב): הסכום בגודל ובעובי של הסכומים בחלונות שמעל (.zak-res-pair .zak-res-num: ‏34px, ‏800, ‏1.15), בכל רוחב מסך */
.zak-res-pair .zak-res-num,
.zak-final .zak-final-num {
  font-size: 34px;
}
.zak-final .zak-final-num {
  display: block;
  margin-top: 4px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}
.zak-final .zak-final-by {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.zak-final .ph-info-text {
  margin: 8px 0 0;
}
/* גרסה 13־ה־4: עיגול ה־i על הרקע הכהה. סגור: עיגול לבן עם i כחול (4.91:1). פתוח, ריחוף או פוקוס: עיגול ירוק בהיר עם i ירוק כהה (6.11:1), וטבעת פוקוס לבנה (12.6:1) */
.zak-final .ph-info-btn {
  border-color: var(--paper);
}
.zak-final .ph-info-btn:hover,
.zak-final .ph-info-btn:focus-visible,
.zak-final .ph-info-btn[aria-expanded="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--header);
}
.zak-final .ph-info-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 420px) {
  .zak-final {
    padding: 12px 12px 10px;
  }
}
@media print {
  .zak-final {
    box-shadow: none !important;
    border: 2px solid #5f8a24 !important;
    background: #fff !important;
    color: #111 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* גרסה 13־ה־4: בהדפסה הרקע לבן, ולכן הטקסט כהה והסכום בירוק כהה */
  .zak-final .zak-final-num {
    color: var(--header) !important;
  }
  .zak-final .zak-final-by,
  .zak-final .ph-info-text {
    color: #111 !important;
  }
}
.zak-res-pair.zak-res-one {
  grid-template-columns: minmax(0, 1fr);
}

.zak-kinds {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: #fbfdf9;
  display: grid;
  gap: 8px;
}
.zak-kinds legend {
  font-weight: 700;
  padding: 0 6px;
}
.zak-kind {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
}
.zak-calc h3 {
  margin: 8px 0 0;
  font-size: 18px;
}
@media (max-width: 640px) {
  .zak-calc .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}


.mec-kinds {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: #fbfdf9;
  display: grid;
  gap: 8px;
}
.mec-kinds legend {
  font-weight: 700;
  padding: 0 6px;
}
.mec-kind {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
}
.mec-check label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.tmh-calc .field.mec-check input {
  width: auto;
  flex: none;
  margin-top: 4px;
}
.mec-calc h3 {
  margin: 8px 0 0;
  font-size: 18px;
}
@media (max-width: 640px) {
  .mec-calc .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* מחשבון תעודת זכאות למשכנתא (/teudat-zakaut, גרסה 5, 18.11.2026): ריבועי תוצאה למעלה, מתג משפחה / יחיד ושני כרטיסים */
main.tz-calc {
  max-width: 1040px;
}
.tz-result {
  display: grid;
  gap: 8px;
  margin-block-start: 8px;
}
.tz-calc input::placeholder,
.tmh-calc input::placeholder,
.dialog-layer input::placeholder {
  color: #8a9384;
  opacity: 1;
}
.tz-res {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}
.tz-res .tz-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}
.tz-res .tz-tile-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.tz-res .tz-tile-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.tz-res .tz-tile small {
  color: var(--muted);
  font-size: 12px;
}
.tz-res .tz-tile-main {
  background: var(--header);
  border-color: var(--header);
  box-shadow: var(--shadow);
}
.tz-res .tz-tile-main .tz-tile-label {
  color: #fff;
  font-size: 16px;
}
.tz-res .tz-tile-main .tz-tile-num {
  color: var(--brand);
  font-size: 34px;
}
.tz-res .tz-tile-main small {
  color: #dfe9d6;
}
.tz-notes {
  margin: 0;
}
.tz-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tz-mode {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0;
  border-radius: 12px;
  background: #e8efe2;
}
.tz-mode-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}
.tz-mode-opt:has(input:checked) {
  background: var(--paper);
  color: var(--header);
  box-shadow: 0 1px 4px rgba(46, 50, 51, 0.15);
}
.tz-mode-opt input {
  accent-color: var(--brand-dark);
}
.tz-reset {
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.tz-reset:focus-visible {
  outline: 2px solid var(--teal);
}
.tz-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.tz-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px 16px 16px;
  margin: 0;
  min-width: 0;
}
.tz-card legend {
  font-size: 18px;
  font-weight: 800;
  color: var(--header);
  padding: 0 6px;
}
.tz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.tz-grid .field select {
  width: 100%;
}
.tz-card .calc-hint {
  margin: 10px 0 0;
}
.tz-sources a {
  white-space: normal;
}
@media (max-width: 900px) {
  .tz-res {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tz-res .tz-tile-main {
    grid-column: 1 / -1;
  }
  .tz-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .tz-res {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tz-res .tz-tile-main .tz-tile-num {
    font-size: 30px;
  }
}

.alu-cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.alu-rows {
  display: grid;
  gap: 8px;
}
.alu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.alu-row > span {
  color: var(--muted);
  font-size: 15px;
}
.alu-row > b {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.alu-row > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 640px) {
  .alu-cost-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* מחשבון עלויות נלוות, עיצוב גרסה 10ב, בסגנון הדוגמה שאישר יניב. */
.alu-page {
  --alu-lime: #9fd24a;
  --alu-lime-deep: #8cc63f;
  --alu-lime-bright: #b3e163;
  --alu-cyan: #0a9bcf;
  --alu-result-from: #0c5165;
  --alu-result-to: #085a6f;
  --alu-mint: #e5f1d9;
  --alu-wash: #e6f6f7;
  --alu-ink: #1c2b2e;
  --alu-muted: #5b6a6e;
  --alu-yellow: #fff4c2;
  --alu-yellow-line: #e6d48a;
  --alu-error: #b42318;
  background:
    radial-gradient(1200px 500px at 100% -10%, var(--alu-mint) 0%, transparent 55%),
    radial-gradient(900px 480px at -10% 20%, var(--alu-wash) 0%, transparent 50%),
    linear-gradient(180deg, #eef6e8 0%, #e6f6f7 42%, #f7fbfb 100%);
  color: var(--alu-ink);
}

.alu-page .alu-top {
  background: transparent;
  padding: 18px 20px 0;
}

.alu-page .alu-top-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.alu-page .alu-site-brand {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 800;
  color: var(--alu-ink);
  line-height: 1.2;
}

.alu-page .alu-site-brand a {
  color: inherit;
  text-decoration: none;
}

.alu-page .alu-brand {
  display: inline-flex;
  background: #fff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(12, 81, 101, 0.08);
}

.alu-page .alu-brand img {
  display: block;
  width: auto;
  height: 52px;
}

.alu-page .alu-nav {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.alu-page .alu-nav a {
  color: var(--alu-result-from);
  text-decoration: none;
}

.alu-page .alu-nav a:hover,
.alu-page .alu-nav a:focus-visible {
  text-decoration: underline;
}

.alu-page .alu-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.alu-page .alu-eyebrow {
  margin: 0 0 8px;
  color: var(--alu-cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.alu-page h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--alu-ink);
}

.alu-page h1 em {
  font-style: normal;
  color: var(--alu-cyan);
}

.alu-page .alu-lead {
  margin: 0 0 28px;
  max-width: 46rem;
  color: var(--alu-muted);
  font-size: 1.05rem;
}

.alu-page .alu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

@media (min-width: 960px) {
  .alu-page .alu-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.alu-page .alu-form-card,
.alu-page .alu-result-card,
.alu-page .alu-explain,
.alu-page .alu-yellow {
  border-radius: 22px;
}

.alu-page .alu-form-card {
  position: relative;
  background: #fff;
  box-shadow: 0 16px 40px rgba(12, 81, 101, 0.1);
  overflow: hidden;
  padding: 0 22px 22px;
}

.alu-page .alu-form-bar {
  height: 7px;
  margin: 0 -22px 18px;
  background: linear-gradient(90deg, var(--alu-lime) 0%, var(--alu-cyan) 100%);
}

.alu-page .alu-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.alu-page .alu-form-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.alu-page .alu-reset {
  border: 0;
  background: transparent;
  color: var(--alu-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.alu-page .alu-reset:hover,
.alu-page .alu-reset:focus-visible {
  background: #f3f7f0;
  color: var(--alu-ink);
}

.alu-page .alu-step {
  margin: 18px 0 0;
  padding-top: 8px;
}

.alu-page .alu-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.alu-page .alu-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--alu-lime);
  color: #1d3a12;
  font-weight: 800;
  font-size: 13px;
}

.alu-page .alu-step-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.alu-page .alu-step-note,
.alu-page .hint {
  margin: 4px 0 0;
  color: var(--alu-muted);
  font-size: 13px;
}

.alu-page .alu-kinds {
  border: 0;
  margin: 0;
  padding: 0;
}

.alu-page .alu-kinds legend {
  font-weight: 700;
  margin-bottom: 8px;
}

.alu-page .alu-kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alu-page .alu-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5e0d6;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fbfef9;
  cursor: pointer;
  font-weight: 650;
}

.alu-page .alu-kind:has(input:checked) {
  border-color: var(--alu-cyan);
  background: #eef8fb;
  box-shadow: 0 0 0 1px var(--alu-cyan);
}

.alu-page .alu-kind input {
  margin: 0;
  accent-color: var(--alu-cyan);
}

.alu-page .alu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .alu-page .alu-grid,
  .alu-page .alu-rates-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .alu-page .alu-top-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.alu-page .alu-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.alu-page .alu-grid .alu-field {
  margin-top: 0;
}

.alu-page .alu-field label {
  font-weight: 700;
  font-size: 14px;
}

.alu-page .alu-input-wrap {
  position: relative;
}

.alu-page .alu-input-wrap input,
.alu-page .alu-date-field input[type="date"] {
  width: 100%;
  border: 1px solid #cfd8d3;
  border-radius: 12px;
  background: #fff;
  color: var(--alu-ink);
  font: inherit;
  padding: 11px 44px 11px 12px;
  min-height: 46px;
}

.alu-page .alu-date-field input[type="date"] {
  padding-inline-end: 12px;
}

.alu-page .alu-affix {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--alu-muted);
  font-weight: 700;
  pointer-events: none;
}

.alu-page .alu-input-wrap input {
  padding-inline-start: 34px;
  padding-inline-end: 12px;
}

.alu-page .alu-field.is-invalid input,
.alu-page .alu-field.is-invalid .alu-input-wrap input,
.alu-page .alu-kinds.is-invalid .alu-kind {
  border-color: var(--alu-error);
}

.alu-page .field-error {
  margin: 0;
  color: var(--alu-error);
  font-size: 13px;
  font-weight: 650;
}

.alu-page .alu-subtotal {
  margin: 18px 0 4px;
  padding: 12px 14px;
  background: #f4f8ef;
  border-radius: 12px;
  font-weight: 650;
}

.alu-page .alu-rates {
  margin-top: 16px;
  border: 1px solid #e1e8e2;
  border-radius: 14px;
  padding: 8px 14px 12px;
  background: #fbfdf9;
}

.alu-page .alu-rates summary,
.alu-page .alu-explain summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
}

.alu-page .alu-rates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .alu-page .alu-rates-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.alu-page .alu-actions {
  margin-top: 22px;
}

.alu-page .alu-submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1d3a12;
  background: linear-gradient(180deg, var(--alu-lime-bright) 0%, var(--alu-lime-deep) 100%);
  box-shadow: 0 8px 18px rgba(140, 198, 63, 0.35);
  cursor: pointer;
}

.alu-page .alu-submit:hover,
.alu-page .alu-submit:focus-visible {
  filter: brightness(0.98);
}

.alu-page .alu-privacy {
  margin: 8px 0 0;
  text-align: center;
  color: var(--alu-muted);
  font-size: 13px;
}

.alu-page .alu-result-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alu-page .alu-result-card {
  background: linear-gradient(165deg, var(--alu-result-from) 0%, var(--alu-result-to) 100%);
  color: #fff;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(8, 48, 60, 0.28);
  min-height: 240px;
}

.alu-page .alu-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.alu-page .alu-result-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
}

.alu-page .alu-pill {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.alu-page .alu-pending-mark {
  margin: 36px 0 8px;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

.alu-page .alu-pending-hint,
.alu-page .alu-result-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.alu-page .alu-hero-amount {
  margin: 22px 0 6px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.alu-page .alu-hero-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
}

.alu-page .alu-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.alu-page .alu-mini p {
  margin: 0;
}

.alu-page .alu-mini .k {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.alu-page .alu-mini .v {
  font-weight: 800;
  font-size: 1.1rem;
}

.alu-page .alu-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  font-weight: 700;
}

.alu-page .alu-disclaimer-short {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.alu-page .alu-yellow {
  margin: 0;
  padding: 12px 16px;
  background: var(--alu-yellow);
  border: 1px solid var(--alu-yellow-line);
  color: #5a4a12;
  font-weight: 700;
}

.alu-page .alu-explain {
  background: #fff;
  border: 1px solid #dbe4dc;
  padding: 4px 16px 8px;
  box-shadow: 0 8px 24px rgba(12, 81, 101, 0.06);
}

.alu-page .alu-explain-body {
  color: var(--alu-muted);
  font-size: 14px;
  padding-bottom: 8px;
}

.alu-page .alu-explain-body p {
  margin: 0 0 10px;
}

.alu-page .alu-sources {
  margin: 0 0 10px;
  padding-inline-start: 18px;
}

.alu-page .alu-sources li {
  margin: 0 0 8px;
}

.alu-page .alu-how-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alu-page .alu-how-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #edf1ec;
}

.alu-page .alu-how-list .est,
.alu-print-sheet .est {
  color: var(--alu-muted);
  font-size: 12px;
}

.alu-page .alu-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  color: var(--alu-muted);
  font-size: 13px;
}

.alu-page .alu-foot p {
  margin: 0 0 4px;
}

.alu-page .alu-foot a {
  color: var(--alu-result-from);
}


.alu-page input::placeholder {
  color: #8a9384;
  opacity: 1;
}

.alu-page .alu-pdf {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}

.alu-page .alu-pdf:hover,
.alu-page .alu-pdf:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.alu-page .alu-pdf:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.alu-print-sheet {
  display: none;
}

/* הערה משפטית ליד התוצאה בכל מחשבון (גרסה 12ג) */
.calc-assumptions {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.calc-assumptions strong {
  font-weight: 700;
}
.legal-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  background: var(--teal-soft);
  border: 1px solid #b9e3f0;
  border-inline-start: 4px solid var(--teal);
  border-radius: 10px;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  .legal-note {
    display: block !important;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #007a9e !important;
    border-inline-start-width: 4px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  html,
  body {
    background: #fff !important;
    color: #111;
  }

  body:has(> #alu-print-sheet:not(:empty)) > :not(.alu-print-sheet) {
    display: none !important;
  }

  body:has(> #alu-print-sheet:not(:empty)) .alu-print-sheet {
    display: block;
    direction: rtl;
    text-align: right;
    color: #111;
    font-size: 12pt;
    line-height: 1.45;
  }

  .alu-print-sheet .alu-print-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto 12px;
  }

  .alu-print-sheet .alu-print-brand,
  .alu-print-sheet h1,
  .alu-print-sheet h2,
  .alu-print-sheet p,
  .alu-print-sheet li {
    margin: 0 0 8px;
  }

  .alu-print-sheet .alu-print-brand {
    text-align: center;
    font-weight: 800;
    font-size: 16pt;
  }

  .alu-print-sheet h1 {
    text-align: center;
    font-size: 18pt;
  }

  .alu-print-sheet .alu-print-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
  }

  .alu-print-sheet .alu-print-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #ddd;
    padding: 4px 0;
  }

  .alu-print-sheet .alu-print-total {
    font-weight: 800;
    font-size: 14pt;
  }

  .alu-print-sheet .alu-print-note {
    margin-top: 16px;
    font-weight: 700;
  }

  .alu-print-sheet .est {
    color: #444;
    font-size: 10pt;
    font-weight: 700;
  }
}

/* מחשבון פירעון מוקדם מול השקעה (ph-) */
.ph-calc .ph-result {
  margin-top: 18px;
}

.ph-res {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ph-answer {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid rgba(0, 122, 158, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 22px rgba(29, 58, 18, 0.12);
}

.ph-answer p {
  margin: 0 0 8px;
}

.ph-answer p:last-child {
  margin-bottom: 0;
}

.ph-answer-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.ph-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ph-option {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 18px rgba(29, 58, 18, 0.1);
  transform: perspective(920px)
    rotateX(calc(var(--tilt-x, 0deg) + var(--orient-x, 0deg)))
    rotateY(calc(var(--tilt-y, 0deg) + var(--orient-y, 0deg)))
    translateY(var(--lift, 0px));
}

.ph-option--best {
  border-color: rgba(0, 122, 158, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 0 0 2px rgba(140, 197, 64, 0.55),
    0 12px 24px rgba(29, 58, 18, 0.16);
}

.ph-option h4 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: var(--teal);
}

.ph-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #1d3a12;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
}

.ph-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.ph-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.ph-row dt {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}

.ph-row dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* גרסה 12ח־ב: הערה קטנה מתחת לתווית ההפרש בחודש הראשון */
.ph-row-note {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted, var(--ink));
}

/* גרסה 12ו: שורה שערכה הסבר מילולי ולא סכום, ולכן נשברת לשורות */
.ph-row--text dd {
  flex: 0 1 55%;
  min-width: 0;
  white-space: normal;
  font-weight: 500;
  color: var(--muted, var(--ink));
}

.ph-row--net {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.ph-row--net dd {
  color: var(--teal);
  font-size: 1.05rem;
}

.ph-legal {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .ph-options {
    grid-template-columns: 1fr;
  }
}

@media print {
  .ph-option {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
}

.ph-option,
.ph-answer {
  --float-y: 0px;
  --enter-y: 0px;
  --enter-z: 0px;
  --enter-scale: 1;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  transform: perspective(1100px)
    rotateX(calc(var(--tilt-x, 0deg) + var(--orient-x, 0deg)))
    rotateY(calc(var(--tilt-y, 0deg) + var(--orient-y, 0deg)))
    translateY(calc(var(--lift, 0px) + var(--float-y, 0px) + var(--enter-y, 0px)))
    translateZ(var(--enter-z, 0px))
    scale(var(--enter-scale, 1));
}

.ph-option.tilt-nw, .ph-answer.tilt-nw { --tilt-x: 5deg; --tilt-y: -6deg; }
.ph-option.tilt-n,  .ph-answer.tilt-n  { --tilt-x: 5deg; --tilt-y: 0deg; }
.ph-option.tilt-ne, .ph-answer.tilt-ne { --tilt-x: 5deg; --tilt-y: 6deg; }
.ph-option.tilt-w,  .ph-answer.tilt-w  { --tilt-x: 0deg; --tilt-y: -6deg; }
.ph-option.tilt-mid,.ph-answer.tilt-mid { --tilt-x: 1.5deg; --tilt-y: 0deg; }
.ph-option.tilt-e,  .ph-answer.tilt-e  { --tilt-x: 0deg; --tilt-y: 6deg; }
.ph-option.tilt-sw, .ph-answer.tilt-sw { --tilt-x: -5deg; --tilt-y: -6deg; }
.ph-option.tilt-s,  .ph-answer.tilt-s  { --tilt-x: -5deg; --tilt-y: 0deg; }
.ph-option.tilt-se, .ph-answer.tilt-se { --tilt-x: -5deg; --tilt-y: 6deg; }

@media (prefers-reduced-motion: reduce) {
  .ph-option,
  .ph-answer {
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .ph-calc .ph-pair-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ph-opt {
  margin: 8px 0 4px;
}
.ph-toggle-hint {
  margin: 0 0 14px;
  padding-inline-start: 1.85rem;
}
.ph-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 10px;
  font-weight: 600;
  color: var(--ink);
}
.ph-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--teal);
}
.ph-row--interest dt,
.ph-row--interest dd {
  font-weight: 800;
}
.ph-row--interest dd {
  color: var(--teal);
  font-size: 1.08rem;
}
.ph-explain {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.ph-source {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #5a6570);
}
.ph-track-extra[hidden] {
  display: none !important;
}
.ph-calc select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line, #cfd6dc);
  border-radius: 10px;
  padding: 10px 12px;
}

/* גרסה 12ט־ג: עיגול i ליד תוויות במחשבון הפירעון המוקדם (באותו סגנון כמו index-tile-info) */
.ph-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ph-label-row label {
  margin-bottom: 0;
}
.ph-info-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: var(--paper);
  color: var(--teal);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ph-info-btn:hover,
.ph-info-btn:focus-visible {
  background: var(--teal);
  color: #fff;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.ph-info-btn[aria-expanded="true"] {
  background: var(--teal);
  color: #fff;
}
.ph-info-text {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.ph-info-text[hidden] {
  display: none;
}

/* גרסה 13 (יניב): הערה בולטת בסוף מחשבון העלויות הנלוות, וקישור חזרה לדף הבית */
.alu-page .alu-monthly-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff4d6;
  border: 2px solid #d9a300;
  color: #4a3a05;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}
/* גרסה 13־ה (יניב): אותו כפתור «חזרה לדף הבית» כמו בעלויות הנלוות, בתחתית כל המחשבונים */
.alu-page .alu-home,
.tmh-back.tmh-home {
  margin: 16px 0 0;
  text-align: center;
}
.alu-page .alu-home-link,
.tmh-back .tmh-home-btn {
  display: inline-block;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

/* גרסה 13 (Yc-1 של גיא): עיגול ה־i לא מודפס ב־PDF */
@media print {
  .ph-info-btn {
    display: none !important;
  }
  /* גרסה 13־ד (גיא): גם ההסבר של עיגול ה־i בגובה המשכנתא לא מודפס. הגילוי «הערכה בלבד» שבשורת ההנחות נשאר מודפס. */
  #zakCapInfo {
    display: none !important;
  }
}

/* גרסה 13: סימן המרווח מהפריים ומועד שינוי העוגן במחשבון התמהיל, ותוספות בדף הפירעון המוקדם */
.ph-after-c {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d9e0d4;
}

/* גרסה 14: מחשבון מחיר דירה במחיר למשתכן / דירה בהנחה (/mechir-dira-lamishtaken) */
.mdl-calc .mdl-sub {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--header);
}
.mdl-calc .mdl-signed {
  text-align: right;
}
.mdl-calc .mdl-vat {
  margin-bottom: 12px;
}
.mdl-break:empty {
  display: none;
}
.mdl-break-title {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--header);
}
.mdl-break-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.mdl-break-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}
.mdl-break-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mdl-break-list li b {
  flex: 0 0 auto;
  font-weight: 800;
  white-space: nowrap;
}
.mdl-break-list .mdl-break-total {
  border-color: var(--brand);
  font-weight: 700;
}
@media print {
  /* רק בעמוד הזה: כפתור החזרה לדף הבית לא מודפס (V13e-1 של גיא). שאר העמודים לא השתנו */
  .mdl-calc .tmh-back.tmh-home {
    display: none !important;
  }
  .mdl-break-list li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* גרסה 16–17־א: כרטיס ההתקנה (js/hatkana.js). גרסה 17־א (על בסיס 16־ב): מופיע תמיד כשהאפליקציה לא מותקנת, עם הוראות לפי הדפדפן, כפתור בלחיצה אחת כשאפשר, «סגור» (16־א) וקישור בולט בתחתית (16־ב). */
.hatkana {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hatkana-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.hatkana-text {
  flex: 1 1 0;
  min-width: 0;
}

.hatkana-title {
  margin: 0;
  color: var(--header);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.hatkana-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.hatkana-btn {
  appearance: none;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #10200a;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.hatkana-btn:hover,
.hatkana-btn:focus-visible {
  background: #a4d65f;
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.hatkana-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.hatkana-steps {
  margin: 4px 0 0;
  padding-inline-start: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.hatkana-steps li {
  margin: 2px 0;
}

.hatkana-steps strong {
  white-space: nowrap;
}

.hatkana-svg-dots {
  stroke-width: 3.5;
}

.hatkana-svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hatkana-nowrap {
  white-space: nowrap;
}

.hatkana-close {
  flex-shrink: 0;
  align-self: flex-start;
}

/* 16־א: קישור קבוע «התקנת האפליקציה» בתחתית הדף, גם אחרי «סגור» (מוסתר כשהאפליקציה מותקנת). 16־ב: נראה ככפתור גדול ובולט עם מסגרת */
.hatkana-footer {
  max-width: var(--max);
  margin: 0 auto 12px;
  font-size: 14px;
}

.hatkana-footer-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px 10px 18px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: #20380f;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.hatkana-footer-link:hover {
  background: #2c4a17;
}

.hatkana-footer-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* 16־ב: אייקון האפליקציה בתוך הכפתור בתחתית */
.hatkana-footer-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
}

.hatkana-footer-hint {
  display: block;
  margin-top: 8px;
}

.hatkana-footer-hint[hidden] {
  display: none;
}

/* בעמודי המחשבונים: פס קטן אחרי התוכן ולפני הכותרת התחתונה, ברוחב של התוכן */
.hatkana-katan {
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: calc(var(--max) - 32px);
  margin: 0 auto 24px;
  padding: 10px 12px;
  box-shadow: none;
}

@media (max-width: 752px) {
  .hatkana-katan {
    margin-inline: 16px;
  }
}

.hatkana-lead {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.hatkana-katan .hatkana-btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.hatkana-text .hatkana-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.hatkana-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hatkana-copy {
  margin-top: 10px;
}

.hatkana-copy-status {
  margin: 6px 0 0;
  color: var(--down);
  font-size: 14px;
  font-weight: 700;
}

.hatkana-url {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

@media (max-width: 440px) {
  .hatkana-icon {
    display: none;
  }
}

@media print {
  .hatkana {
    display: none !important;
  }
}

@media print {
  .hatkana-footer {
    display: none !important;
  }
}
