/* מאמר-ספרייה · תבנית משותפת (21.10.2026) · «כתב-עת קליני» בסטייל מייבך
   חוק «זהב ולבן»: כותרות זהב · טקסט לבן · ציאן = קישורים לסיורים · Heebo לכותרות (דף ציבורי) */

/* הדף נגלל (מאמר = דף-קריאה) · body בלי מיכל-גלילה משלו, כדי שתוכן-העניינים הצף יעבוד */
html { height: auto !important; overflow-y: auto !important; overflow-x: hidden !important; }
body { height: auto !important; overflow: visible !important; overflow-x: clip !important; }
body { background-color: #030712; background-image: radial-gradient(circle at 50% 0%, #0a152e 0%, #030712 70%); color: #fff; }

/* --- פס-התקדמות קריאה --- */
.read-progress { position: fixed; top: var(--hdr-h); right: 0; left: 0; height: 3px; z-index: 9999; background: rgba(255,255,255,.06); }
.read-progress i { display: block; height: 100%; width: 0; margin-right: 0; margin-left: auto; background: linear-gradient(270deg, var(--gold-light), var(--gold)); box-shadow: 0 0 10px var(--gold-glow); }

.art { max-width: 1240px; margin: calc(var(--hdr-h) + 40px) auto calc(var(--ftr-h) + 40px); padding: 0 28px; }

/* --- פתיח: כותרת + מדיה --- */
.art-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-bottom: 42px; }
.art-kicker { display: inline-block; font-family: var(--font-ui); font-weight: 700; font-size: .82rem; letter-spacing: .5px; color: var(--gold); border: 1px solid var(--border-gold); border-radius: 50px; padding: 4px 14px; margin-bottom: 18px; }
.art-hero h1 { font-family: var(--font-ui); font-weight: 900; color: var(--gold-light); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 16px; }
.art-dek { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.7; font-weight: 300; color: #fff; margin: 0 0 22px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: #fff; font-weight: 500; }
.art-meta span { display: inline-flex; align-items: center; gap: 7px; }
.art-meta i { color: var(--gold); }
.art-media { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-gold); box-shadow: 0 24px 60px rgba(0,0,0,.55); background: #000; }
.art-media > img { display: block; width: 100%; height: auto; }
.art-media figcaption, .media-cap { font-size: .82rem; color: #fff; text-align: center; padding: 10px 14px; background: rgba(3,7,18,.85); border-top: 1px solid var(--border-gold); }

/* לפני/אחרי */
.ba { position: relative; direction: ltr; line-height: 0; }
.ba > img { display: block; width: 100%; height: auto; }
.ba-before { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; }
.ba-before img { position: absolute; top: 0; left: 0; height: 100%; max-width: none; object-fit: cover; object-position: left top; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 5; }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--gold); transform: translateX(-50%); z-index: 3; pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; color: #000; font-size: .9rem; line-height: 1; }
.ba-tag { position: absolute; bottom: 14px; z-index: 4; font-size: .82rem; font-weight: 700; line-height: 1; color: #fff; background: rgba(0,0,0,.6); border: 1px solid var(--gold); border-radius: 50px; padding: 6px 12px; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }

/* --- «בשורה אחת» + מספרים --- */
.art-brief { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; margin-bottom: 52px; }
.tldr { border: 1px solid var(--gold); border-radius: 16px; padding: 22px 26px; background: linear-gradient(160deg, rgba(197,160,89,.09), rgba(197,160,89,.02)); }
.tldr h2 { font-family: var(--font-ui); font-size: 1rem; font-weight: 900; color: var(--gold-light); letter-spacing: .5px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.tldr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tldr li { position: relative; padding-right: 26px; font-size: 1.02rem; line-height: 1.6; color: #fff; }
.tldr li::before { content: '✓'; position: absolute; right: 0; top: 0; color: var(--gold); font-weight: 900; }
.stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stat { display: flex; align-items: center; gap: 14px; min-width: 0; overflow: hidden; border: 1px solid var(--border-gold); border-radius: 14px; padding: 14px 18px; background: var(--glass-blue); }
/* המספר מתכווץ עם הרוחב ולא גולש מהמסגרת (תיקון 21.10 · «26/261» בשתלים) */
.stat b { flex: 0 0 auto; max-width: 48%; font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.05rem, 1.9vw, 1.7rem); letter-spacing: -.5px; color: var(--gold-light); white-space: nowrap; direction: ltr; min-width: 92px; text-align: center; }
.stat span { flex: 1 1 auto; min-width: 0; font-size: .92rem; line-height: 1.45; color: #fff; }

/* --- גוף: תוכן + תוכן-עניינים צף --- */
.art-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: start; }
.art-text { max-width: 760px; }
.art-toc { position: sticky; top: calc(var(--hdr-h) + 28px); border-right: 1px solid var(--border-gold); padding-right: 18px; }
.art-toc h3 { font-family: var(--font-ui); font-size: .8rem; letter-spacing: 2px; color: var(--gold); margin: 0 0 12px; font-weight: 800; }
.art-toc a { display: block; color: #fff; text-decoration: none; font-size: .9rem; line-height: 1.4; padding: 7px 0; opacity: .75; transition: .2s; }
.art-toc a:hover { opacity: 1; color: var(--gold-light); }
.art-toc a.on { opacity: 1; color: var(--gold-light); font-weight: 700; }
.art-toc a b { font-family: var(--font-mono); font-weight: 500; color: var(--gold); margin-left: 8px; }

.art-lead { font-size: 1.2rem; line-height: 1.9; font-weight: 300; color: #fff; margin: 0 0 44px; }
.art-lead::first-letter { font-family: var(--font-title); font-size: 3.4rem; font-weight: 700; color: var(--gold); float: right; line-height: .82; margin: 8px 0 0 14px; }

.art-sec { margin-bottom: 46px; scroll-margin-top: calc(var(--hdr-h) + 24px); }
.art-sec h2 { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-ui); font-weight: 900; font-size: 1.55rem; color: var(--gold-light); line-height: 1.3; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-gold); }
.art-sec h2 .n { font-family: var(--font-mono); font-weight: 500; font-size: 1rem; color: var(--gold); border: 1px solid var(--gold); border-radius: 8px; padding: 2px 8px; flex-shrink: 0; }
.art-sec p { font-size: 1.1rem; line-height: 1.85; font-weight: 300; color: #fff; margin: 0 0 16px; }
.art-sec strong { color: var(--gold-light); font-weight: 700; }
.art-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.art-points li { position: relative; padding: 14px 18px 14px 18px; padding-right: 22px; border-right: 3px solid var(--gold); background: rgba(255,255,255,.025); border-radius: 0 10px 10px 0; font-size: 1.06rem; line-height: 1.75; font-weight: 300; color: #fff; }
sup.ref a { font-family: var(--font-mono); font-size: .72rem; color: var(--blue-tech); text-decoration: none; padding: 0 2px; }

.pull { margin: 34px 0; padding: 26px 30px; text-align: center; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 1.32rem; line-height: 1.6; color: #fff; }
.pull::before { content: '❝'; display: block; font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 6px; font-style: normal; }

/* --- במרפאה: כרטיסים עם כריכה --- */
.art-clinic { margin: 56px 0 0; }
.art-clinic h2, .art-sources h2 { font-family: var(--font-ui); font-weight: 900; color: var(--gold-light); font-size: 1.3rem; margin: 0 0 16px; }
.clinic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.clinic-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--border-gold); border-radius: 14px; overflow: hidden; background: var(--glass-blue); transition: .25s; }
.clinic-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.45), 0 0 18px var(--gold-glow); }
.clinic-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center top; display: block; border-bottom: 1px solid var(--border-gold); }
.clinic-card span { padding: 10px 12px; font-size: .88rem; font-weight: 700; color: var(--gold-light); line-height: 1.35; }
.clinic-card small { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--gold); font-weight: 500; letter-spacing: 1px; margin-bottom: 2px; }
.clinic-card.tour { border-color: rgba(0,212,255,.35); }
.clinic-card.tour span, .clinic-card.tour small { color: var(--blue-tech); }
.clinic-card.tour:hover { border-color: var(--blue-tech); box-shadow: 0 12px 28px rgba(0,0,0,.45), 0 0 18px var(--blue-glow); }

/* --- מקורות --- */
.art-sources { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.art-sources h2 { font-size: 1.05rem; }
.art-sources ol { margin: 0; padding-right: 22px; }
.art-sources li { font-size: .9rem; line-height: 1.6; color: #fff; font-weight: 300; margin-bottom: 8px; scroll-margin-top: calc(var(--hdr-h) + 24px); }
.art-sources li:target { color: var(--gold-light); }
.art-sources a { color: var(--gold-light); }

.art-actions { display: flex; justify-content: center; margin-top: 40px; }
.art-actions button { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-weight: 700; font-size: 1rem; color: var(--gold); background: rgba(197,160,89,.08); border: 1px solid var(--gold); border-radius: 50px; padding: 11px 28px; cursor: pointer; transition: .25s; }
.art-actions button:hover { background: var(--gold); color: #000; }

/* --- נייד --- */
@media (max-width: 960px) {
    .art { padding: 0 16px; margin-top: calc(var(--hdr-h) + 22px); }
    .art-hero, .art-brief, .art-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .art-toc { display: none; }
    .stat b { font-size: 1.4rem; min-width: 84px; }
    .art-lead { font-size: 1.08rem; }
    .art-sec p, .art-points li { font-size: 1.02rem; }
    .pull { font-size: 1.15rem; padding: 20px 10px; }
}

/* --- הדפסה --- */
@media print {
    html, body { background: #fff !important; color: #000 !important; }
    .master-header, .master-footer, .read-progress, .art-toc, .art-actions, .ba input, .ba-knob { display: none !important; }
    .art { margin: 0; padding: 0; max-width: none; }
    .art-hero h1, .art-sec h2, .tldr h2, .art-clinic h2, .art-sources h2, .stat b, .art-sec strong, .art-lead::first-letter { color: #000 !important; }
    .art-dek, .art-meta, .tldr li, .stat span, .art-lead, .art-sec p, .art-points li, .pull, .art-sources li, .clinic-card span, .media-cap { color: #000 !important; }
    .tldr, .stat, .art-points li, .clinic-card, .art-media { background: #fff !important; border-color: #000 !important; box-shadow: none !important; }
    .art-sec, .art-points li, .clinic-card { break-inside: avoid; }
}
