/* שכבת הסבר לדמואים — בשפה של האתר (צהוב = היום, טורקיז = עם מערכת), כדי שיהיה ברור שזה הסבר ולא חלק מהמערכת */
.explain {
  --ex-ink: #0E1726;
  --ex-soft: #4A5568;
  --ex-amber: #F5B301;
  --ex-amber-ink: #B45309;
  --ex-amber-bg: #FFF4D6;
  --ex-teal: #25B8B2;
  --ex-teal-ink: #0B6F6A;
  --ex-teal-bg: #DDF5F2;
  position: relative;
  margin: 0 0 20px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 2px dashed rgba(14,23,38,.22);
  background: #FBFAF6;
  color: var(--ex-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  direction: rtl;
}
.explain-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.explain-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: var(--ex-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .2px;
}
.explain-topic { color: var(--ex-soft); font-size: 13px; }
.explain-topic b { color: var(--ex-ink); }
.explain-close {
  margin-inline-start: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(14,23,38,.18);
  background: #fff; color: var(--ex-soft); font-size: 17px; line-height: 1; cursor: pointer;
}
.explain-close:hover { color: var(--ex-ink); border-color: rgba(14,23,38,.4); }
.explain-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.explain-body > div { padding: 11px 14px; border-radius: 11px; font-size: 14.5px; line-height: 1.6; }
.explain-body b { display: block; font-size: 13px; margin-bottom: 2px; }
.ex-today { background: var(--ex-amber-bg); border-inline-start: 4px solid var(--ex-amber); }
.ex-today b { color: var(--ex-amber-ink); }
.ex-system { background: var(--ex-teal-bg); border-inline-start: 4px solid var(--ex-teal); }
.ex-system b { color: var(--ex-teal-ink); }
.ex-arrow { align-self: center; color: var(--ex-teal-ink); font-size: 22px; font-weight: 800; }
.explain-show {
  display: none; margin: 0 0 16px; padding: 6px 13px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.4);
  background: rgba(255,255,255,.08); color: inherit; font: 600 12.5px "Segoe UI", Arial, sans-serif; cursor: pointer;
}
.explain.is-hidden { display: none; }
.explain.is-hidden + .explain-show { display: inline-flex; }
@media (max-width: 760px) {
  .explain-body { grid-template-columns: 1fr; }
  .ex-arrow { transform: rotate(-90deg); justify-self: center; }
}
/* מובייל: תיבה קומפקטית — רק "היום" ו"עם מערכת מותאמת"; בלי "אצל עסק אחר" ובלי שורת "נסו" (הרמז על הכפתור נשאר) */
@media (max-width: 600px) {
  .explain { margin-bottom: 14px; padding: 10px 12px 12px; }
  .explain-head { margin-bottom: 8px; }
  .explain .explain-topic, .explain .explain-other, .explain .explain-try, .explain .ex-arrow { display: none; }
  .explain-body { gap: 8px; }
  .explain-body > div { padding: 9px 12px; font-size: 14px; line-height: 1.5; }
}
@media print { .explain, .explain-show { display: none !important; } }

/* שורת „נסו” והדגשת הכפתור המומלץ */
.explain-try {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(14,23,38,.12); color: var(--ex-ink); font-size: 14px; line-height: 1.5;
}
.explain-try b { color: var(--ex-teal-ink); white-space: nowrap; }
.explain-try::before { content: "👆"; }
.try-pulse { animation: try-pulse 1.6s ease-out infinite; }
@keyframes try-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,184,178,.75); }
  70% { box-shadow: 0 0 0 12px rgba(37,184,178,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,184,178,0); }
}
@media (prefers-reduced-motion: reduce) { .try-pulse { animation: none; outline: 3px solid #25B8B2; outline-offset: 3px; } }

/* „אצל עסק אחר בתחום” — מראה שהמערכת משתנה לפי העסק */
.explain-other { margin-top: 8px; padding: 0 4px; color: var(--ex-soft); font-size: 13px; line-height: 1.55; }
.explain-other b { color: var(--ex-ink); }

/* תווית „מותאם לעסק הזה” על כלל או רכיב שנבנה במיוחד. חלק משכבת ההסבר, ונעלמת כשההסברים מוסתרים */
.tailored {
  display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px;
  border: 1px dashed #0B6F6A; background: #DDF5F2; color: #0B6F6A; font: 700 11px "Segoe UI", Arial, sans-serif;
  white-space: nowrap; vertical-align: middle; cursor: help; letter-spacing: 0;
}
.tailored::before { content: "✂"; font-size: 11px; }
.explain-off .tailored { display: none; }
@media print { .tailored { display: none !important; } }
