/* =========================================================================
   LK — גלגל תחומי הכסף (money-domain wheel)
   גלגל אינטראקטיבי של 8 תחומי כסף, לפי הטקסונומיה של ליאור (15.9.26).
   לחיצה על פרוסה פותחת פאנל עם תתי הנושאים והכלים ששייכים לתחום.

   שני כללים שחוזרים כאן:
   1. כרטיס כלי הוא .sm-tool.calc-tab — ה-class השני קיים כדי ש-js/calculators.js
      ימשיך לתפוס אותו ((0,1,0)). כל כלל עיצוב כאן חייב ספציפיות (0,2,0) ומעלה
      כדי לגבור על .calc-tab מ-calculators.css, שנטען לפני הקובץ הזה.
   2. בלי JS כל שמונת הפאנלים גלויים (רשימה נגישה רגילה). ה-JS מוסיף .js-on
      על העוטף ורק אז הם הופכים לאחד-בכל-רגע.
   ========================================================================= */

.skillmap { margin-top: 30px; }

.skillmap-intro { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.skillmap-intro h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.skillmap-intro p { color: var(--muted); line-height: 1.65; margin: 12px 0 0; font-size: 15.5px; }
.skillmap-intro .sm-why {
  margin-top: 14px; display: inline-block; text-align: right;
  background: rgba(14,158,140,.07); border: 1px solid rgba(14,158,140,.24);
  border-radius: 14px; padding: 12px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6;
}

.skillmap-shell { display: grid; grid-template-columns: minmax(320px, 520px) 1fr; gap: 38px; align-items: start; }

/* ---------- העיגול ---------- */
.skillmap-wheel { position: sticky; top: 92px; }
.sm-svg { display: block; width: 100%; height: auto; overflow: visible;
          filter: drop-shadow(0 22px 34px rgba(10,22,40,.13)); }

.sm-wedge { cursor: pointer; transition: transform .28s cubic-bezier(.22,.9,.3,1), opacity .22s ease; }
.sm-wedge:focus { outline: none; }
.sm-slice { fill: var(--fill); transition: filter .22s ease; }

/* מסלול דק שממסגר את הגלגל, ושכבת ברק אחת מעל כל הפרוסות */
.sm-track { fill: none; stroke: rgba(10,22,40,.07); stroke-width: 1.5; }
.sm-sheen { fill: url(#smSheen); pointer-events: none; }

/* מדליה שקופה מתחת לגליף. יושבת בקבוצה אחת איתו, ולכן זזה וגדלה איתו במובייל. */
.sm-glyph-wrap { transform: var(--gt); pointer-events: none; }
.sm-glyph-bg { fill: rgba(255,255,255,.16); }
.sm-glyph { color: #fff; }

/* כשתחום נבחר, השאר נסוגים. זה מה שהופך את הבחירה לקריאה במבט אחד. */
.skillmap.js-on .sm-wedge { opacity: .78; }
.skillmap.js-on .sm-wedge:hover { opacity: .93; transform: translate(calc(var(--tx) * .45), calc(var(--ty) * .45)); }
.skillmap.js-on .sm-wedge[aria-selected="true"] { opacity: 1; transform: translate(var(--tx), var(--ty)); }
.sm-wedge:hover .sm-slice { filter: brightness(1.12); }
.sm-wedge[aria-selected="true"] .sm-slice {
  filter: brightness(1.06) drop-shadow(0 10px 20px rgba(10,22,40,.34));
  stroke: #fff; stroke-width: 2.5; stroke-opacity: .9;
}
.sm-wedge[aria-selected="true"] .sm-glyph-bg { fill: rgba(255,255,255,.26); }
.sm-wedge:focus-visible .sm-slice { stroke: #fff; stroke-width: 3; stroke-opacity: 1; }

.sm-num, .sm-name, .sm-count {
  text-anchor: middle; dominant-baseline: middle; fill: #fff;
  pointer-events: none; user-select: none;
}
.sm-num { font-family: var(--font-mono); font-size: 23px; font-weight: 600; opacity: .5; }
.sm-name { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; }
.sm-count { font-size: 11.5px; font-weight: 600; opacity: .72; letter-spacing: .03em; }

/* הציר צף מעל הטבעת בזכות ההילה, והמסגרת שלו לובשת את צבע התחום הפעיל */
.sm-hub-halo { fill: #fff; opacity: .55; }
.sm-hub { fill: #fff; stroke: var(--active-fill, rgba(10,22,40,.12)); stroke-width: 3; transition: stroke .25s ease; }
.sm-hub-t1, .sm-hub-t2, .sm-hub-t3 {
  text-anchor: middle; fill: var(--ink); font-family: var(--font-display);
  font-weight: 800; pointer-events: none;
}
.sm-hub-t1 { font-size: 26px; }
.sm-hub-t2, .sm-hub-t3 { font-size: 21px; fill: var(--ink-2); }

/* ---------- פאנל הפירוט ---------- */
.skillmap-detail { min-width: 0; }
.skillmap.js-on .sm-panel { display: none; }
.skillmap.js-on .sm-panel.is-on { display: block; animation: smIn .28s ease both; }
.sm-panel + .sm-panel { margin-top: 22px; }            /* מצב בלי JS */
.skillmap.js-on .sm-panel + .sm-panel { margin-top: 0; }
@keyframes smIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sm-panel-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.sm-panel-num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--fill); color: #fff;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 20px; font-weight: 600;
}
.sm-panel-ttl h3 { margin: 0; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.2; }
.sm-panel-ttl p { margin: 7px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.sm-know { margin-top: 20px; }
.sm-know h4, .sm-tools h4 {
  margin: 0 0 11px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.sm-know-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-know-list a {
  display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--bg-tint); border: 1px solid var(--hairline); color: var(--ink-2); text-decoration: none;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.sm-know-list a::after { content: " ‹"; color: var(--muted); font-weight: 400; }
.sm-know-list a:hover { border-color: var(--teal); color: var(--teal); background: rgba(14,158,140,.06); }

.sm-tools { margin-top: 22px; }
.sm-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 12px; }

/* (0,2,0) — חייב לגבור על .calc-tab מ-calculators.css */
.sm-tool.calc-tab, a.sm-tool {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  width: 100%; text-align: right; cursor: pointer; text-decoration: none;
  padding: 13px 14px; border-radius: 16px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--hairline-2); box-shadow: var(--shadow-1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.sm-tool.calc-tab:hover, a.sm-tool:hover {
  transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow-2);
}
.sm-tool.calc-tab:focus-visible, a.sm-tool:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.sm-tool-ill {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--bg-tint); border: 1px solid var(--hairline);
}
.sm-tool-ill svg { width: 40px; height: 40px; display: block; }
.sm-tool-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sm-tool-label { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.sm-tool-sub { font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.sm-tool-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--muted); opacity: .75; }

/* המחשבון שפתוח כרגע. הרקע נשאר בהיר בכוונה: האיור צבעוני ונמחק על נייבי. */
.sm-tool.calc-tab.active {
  border-color: var(--teal); background: rgba(14,158,140,.07);
  box-shadow: 0 0 0 3px rgba(14,158,140,.12);
}
.sm-tool.calc-tab.active .sm-tool-ill { background: #fff; border-color: rgba(14,158,140,.4); }
.sm-tool.calc-tab.active .sm-tool-num { color: var(--teal); opacity: 1; }
.sm-tool.calc-tab.active .sm-tool-num::before { content: "פתוח · "; font-family: var(--font-body); }

/* ---------- מובייל ---------- */
@media (max-width: 1000px) {
  .skillmap-shell { grid-template-columns: 1fr; gap: 26px; }
  .skillmap-wheel { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
}
/* מתחת ל-760px העיגול מצטמצם כך שתווית של 17px מרונדרת מתחת ל-10px ונהיית
   קישוט. מסתירים את הטקסט, והגליף גדל ונדחף למרכז הטבעת במקומו. */
@media (max-width: 760px) {
  .sm-name, .sm-count, .sm-num { display: none; }
  .sm-glyph-wrap { transform: var(--gtm); }
  .sm-hub-t1 { font-size: 30px; }
  .sm-hub-t2, .sm-hub-t3 { font-size: 24px; }
}
@media (max-width: 560px) {
  .sm-tool-grid { grid-template-columns: 1fr; }
  .sm-panel-num { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
  .skillmap-intro .sm-why { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-wedge, .sm-tool.calc-tab, a.sm-tool, .sm-hub { transition: none; }
  .skillmap.js-on .sm-wedge[aria-selected="true"],
  .skillmap.js-on .sm-wedge:hover { transform: none; }
  .skillmap.js-on .sm-panel.is-on { animation: none; }
}

/* ---------- תחום בלי מחשבון ----------
   "הגנות וביטוחים" הוא התחום היחיד בלי כלי, וזה בכוונה. במקום להשאיר את
   הפאנל חסר, אומרים את זה במפורש ומציעים את מה שכן עוזר: שיחה. */
.sm-notool {
  margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: rgba(14,158,140,.06); border: 1.5px solid rgba(14,158,140,.26);
  border-radius: 18px; padding: 18px 18px 20px;
}
.sm-notool-ill {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--hairline);
}
.sm-notool-ill svg { width: 46px; height: 46px; display: block; }
.sm-notool-txt b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.3; }
.sm-notool-txt p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.sm-notool-cta {
  display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14.5px;
  color: var(--teal); text-decoration: none; border-bottom: 1.5px solid rgba(14,158,140,.4); padding-bottom: 1px;
}
.sm-notool-cta:hover { border-bottom-color: var(--teal); }
@media (max-width: 560px) {
  .sm-notool { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================================
   אינדקס המחשבונים — "סרט נע" של כרטיסים גדולים עם איור (26.9.26).
   הפריטים הם .ci-item.calc-tab: ה-class השני נדרש כדי ש-js/calculators.js
   יפתח את הפאנל, ולכן כל כלל כאן ב-(0,2,0) כדי לגבור על .calc-tab.
   התנועה עצמה ב-js/calc-wheel.js (scrollLeft, לא transform), כדי שהשורה
   תישאר גלילה אמיתית: החלקה באצבע, מקלדת ו-scrollIntoView עובדים כרגיל.
   ========================================================================= */
.calc-index { margin-top: 12px; margin-bottom: 34px; }
.ci-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.ci-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  color: #177571; background: rgba(46,164,160,.10); border: 1px solid rgba(46,164,160,.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.ci-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0; }
.ci-head p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 9px 0 0; }

.ci-marquee { position: relative; }
.ci-viewport {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 10px 0 18px;
  /* דהייה בקצוות, שייראה כמו סרט שממשיך מעבר למסך */
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to left, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ci-viewport::-webkit-scrollbar { display: none; }
.ci-viewport:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

.ci-list {
  list-style: none; margin: 0; padding: 0 16px;
  display: flex; gap: 16px; width: max-content;
}
.ci-list > li { flex: none; }

.ci-item.calc-tab {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 232px; min-height: 256px; height: 100%;
  text-align: right; cursor: pointer;
  padding: 18px 18px 16px; border-radius: 22px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--hairline);
  box-shadow: 0 14px 32px -20px rgba(10,22,40,.35);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
/* פס צבע של התחום בראש הכרטיס */
.ci-item.calc-tab::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--dom);
}
.ci-item.calc-tab:hover {
  transform: translateY(-4px); border-color: var(--dom);
  box-shadow: 0 22px 40px -22px rgba(10,22,40,.45);
}
.ci-item.calc-tab:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.ci-ill {
  width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
  background: rgba(46,164,160,.09); margin-bottom: 8px;
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .ci-ill { background: color-mix(in srgb, var(--dom) 10%, #fff); }
}
.ci-ill svg { width: 62px; height: 62px; }

.ci-num {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--dom); opacity: .7;
}
.ci-name { font-size: 19px; font-weight: 800; line-height: 1.25; }
.ci-q { font-size: 14.5px; color: var(--ink-2, #33415C); line-height: 1.45; }
.ci-dom { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ci-go {
  margin-top: auto; padding-top: 8px;
  font-size: 14px; font-weight: 800; color: var(--dom);
}

/* המחשבון שפתוח כרגע */
.ci-item.calc-tab.active { border-color: var(--dom); box-shadow: 0 0 0 2px var(--dom), 0 18px 36px -22px rgba(10,22,40,.45); }
.ci-item.calc-tab.active .ci-go { text-decoration: underline; text-underline-offset: 4px; }

.ci-controls { display: flex; justify-content: center; gap: 10px; margin-top: 2px; }
.ci-ctl {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); cursor: pointer;
  border: 1.5px solid var(--hairline); font-size: 18px; font-weight: 800; line-height: 1;
  transition: border-color .16s ease, color .16s ease;
}
.ci-ctl:hover { border-color: var(--teal); color: #177571; }
.ci-ctl:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.ci-pause svg { display: block; }
.ci-pause .ci-i-play { display: none; }
.ci-marquee[data-state="stop"] .ci-i-pause { display: none; }
.ci-marquee[data-state="stop"] .ci-i-play { display: block; }

@media (max-width: 560px) {
  .calc-index { margin-top: 4px; }
  .ci-item.calc-tab { width: 200px; min-height: 238px; padding: 16px 15px 14px; }
  .ci-ill { width: 72px; height: 72px; border-radius: 20px; }
  .ci-ill svg { width: 52px; height: 52px; }
  .ci-name { font-size: 17.5px; }
  .ci-list { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-item.calc-tab, .ci-ctl { transition: none; }
  .ci-item.calc-tab:hover { transform: none; }
  /* בלי תנועה אוטומטית אין צורך בעותק ובכפתור העצירה */
  .ci-dup, .ci-pause { display: none; }
}

/* =========================================================================
   השוואת השקעות — כרטיס שיווקי בין הסרט לגלגל (עבר מה-hero, 26.9.26).
   ========================================================================= */
.cmp-promo { margin-top: 18px; margin-bottom: 40px; }
.cp-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center;
  padding: 34px; border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(46,164,160,.16), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(212,165,55,.14), transparent 55%),
    #fff;
  border: 1.5px solid rgba(46,164,160,.28);
  box-shadow: 0 24px 50px -30px rgba(10,22,40,.4);
}
.cp-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; color: #177571; margin-bottom: 10px; }
.cp-copy h2 { font-size: clamp(24px, 3.3vw, 36px); line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
.cp-copy p { font-size: 16px; line-height: 1.65; color: var(--ink-2, #33415C); margin: 0 0 18px; max-width: 46ch; }
.cp-pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-pair {
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
  background: #fff; border: 1.5px solid rgba(46,164,160,.35); border-radius: 999px; padding: 9px 15px;
  transition: background .16s ease, border-color .16s ease;
}
.cp-pair:hover { background: rgba(46,164,160,.08); border-color: #2EA4A0; }
.cp-pair:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.cp-box {
  position: relative; background: #fff; border-radius: 22px; padding: 26px 22px 22px;
  border: 1px solid rgba(10,22,40,.08); box-shadow: 0 16px 34px -24px rgba(10,22,40,.45);
  display: flex; flex-direction: column; gap: 12px;
}
.cp-ill {
  position: absolute; top: -30px; left: 22px; width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; background: #fff; box-shadow: 0 10px 24px -12px rgba(10,22,40,.4);
}
.cp-ill svg { width: 48px; height: 48px; }
.cp-label { font-size: 14px; font-weight: 800; color: #177571; }
.cp-row { display: flex; align-items: center; gap: 8px; }
.cp-select {
  flex: 1; min-width: 0; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink);
  background-color: rgba(27,123,184,.05); border: 1.5px solid rgba(27,123,184,.2);
  border-radius: 12px; padding: 12px 12px 12px 30px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B7BB8' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
}
.cp-select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.cp-vs { font-size: 13px; font-weight: 800; color: var(--muted); }
.cp-go {
  font-family: inherit; font-size: 17px; font-weight: 800; color: #1a1405; cursor: pointer;
  background: linear-gradient(135deg, #E7BE55, #D4A537); border: 0; border-radius: 14px; padding: 14px 20px;
  box-shadow: 0 12px 24px -12px rgba(158,116,17,.7); transition: filter .15s ease, transform .15s ease;
}
.cp-go:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cp-go:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

@media (max-width: 820px) {
  .cp-card { grid-template-columns: 1fr; padding: 24px 18px; gap: 34px; }
}
@media (max-width: 420px) {
  .cp-row { flex-wrap: wrap; }
  .cp-select { flex: 1 1 100%; }
  .cp-vs { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cp-go, .cp-pair { transition: none; } .cp-go:hover { transform: none; } }
