/* mAind — טמפלייט קריאה בהירה, שכבת שדרוג E (Taste+Impeccable+Kowalski) */

/* 1. שפת דיו: מסגרת הגיליון בדיו במקום אפור זר, בלי זכוכית */
.lite-sheet { border-color: rgba(23, 22, 26, .35) !important; }
* { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* 2. פס התקדמות קריאה ב-TOC */
.article-toc { position: relative; }
.toc-progress {
  position: absolute; inset-inline-start: -2px; top: 0; bottom: 0; width: 2px;
  background: rgba(23, 22, 26, .12); border-radius: 2px; overflow: hidden;
}
.toc-progress i {
  position: absolute; inset-inline: 0; top: 0; height: 100%;
  background: linear-gradient(180deg, #ff4d94, #ff8116);
  transform: scaleY(0); transform-origin: top;
}
@media (max-width: 900px) { .toc-progress { display: none; } }

/* 3. FAQ — חץ מסתובב */
details.faqi > summary { position: relative; list-style: none; cursor: pointer; }
details.faqi > summary::-webkit-details-marker { display: none; }
details.faqi > summary::after {
  content: "+"; position: absolute; inset-inline-end: 2px; top: 50%;
  translate: 0 -50%; font-weight: 700; font-size: 18px; color: rgba(23, 22, 26, .6);
  transition: transform .2s ease;
}
details.faqi[open] > summary::after { transform: rotate(45deg); }

/* 4. כניסות רכות: H1 חד-פעמי + related בהדרגה */
@media (prefers-reduced-motion: no-preference) {
  .article-heading h1 { animation: e-in .6s cubic-bezier(.23, 1, .32, 1) both; }
  .js-anim .related-card { opacity: 0; transform: translateY(12px); }
  .js-anim .related-card.in {
    opacity: 1; transform: none;
    transition: opacity .55s cubic-bezier(.23, 1, .32, 1), transform .55s cubic-bezier(.23, 1, .32, 1);
  }
  .js-anim .related-card.in:nth-child(2) { transition-delay: .06s; }
  .js-anim .related-card.in:nth-child(3) { transition-delay: .12s; }
}
@keyframes e-in { from { opacity: 0; transform: translateY(10px); } }

/* 5. כפתור הרשמה — משוב לחיצה */
.sub-btn:active { transform: scale(.97); transition: transform .12s ease; }

/* 6. יד החתימה: העיפרון נראה במלואו (אין פייד למעלה-שמאל),
   פייד מעוגל רק בפינה הימנית-תחתונה של היד (הנחיית עומר 16.9) */
.transparent-signoff .signoff-hand,
.signoff-hand {
  -webkit-mask-image: radial-gradient(ellipse 150% 150% at 8% 6%, #000 52%, rgba(0, 0, 0, .85) 68%, rgba(0, 0, 0, .3) 84%, transparent 97%) !important;
  mask-image: radial-gradient(ellipse 150% 150% at 8% 6%, #000 52%, rgba(0, 0, 0, .85) 68%, rgba(0, 0, 0, .3) 84%, transparent 97%) !important;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* internal keyword links + tooltip (baked 16.9.2026) */
.kw-link{color:inherit;font-weight:inherit;text-decoration:underline;text-decoration-color:#ff8116;text-decoration-thickness:2px;text-underline-offset:3px;position:relative}
.kw-link:hover,.kw-link:focus-visible{text-decoration-color:#ff4d94}
@media (hover:hover) and (pointer:fine){
.kw-link::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);inset-inline-start:50%;transform:translateX(50%) translateY(4px);background:#17161a;color:#f4f4f1;font-size:12.5px;font-weight:400;line-height:1.5;padding:9px 12px;border-radius:0;border-inline-start:3px solid #ff8116;width:max-content;max-width:280px;white-space:normal;text-align:right;direction:rtl;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;z-index:40;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.kw-link:hover::after,.kw-link:focus-visible::after{opacity:1;transform:translateX(50%) translateY(0)}
}
@media (prefers-reduced-motion:reduce){.kw-link::after{transition:none}}
