/* حالت اپ (v0.24.0) — فعال فقط وقتی html.is-app (پوستهٔ APK یا PWA نصب‌شده).
   هدف: دقیقاً همان سایت ریسپانسیو، ولی بدون نوار آدرس و با حس اپ بومی. */
html.is-app{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;overscroll-behavior:none;touch-action:manipulation}
html.is-app body{overscroll-behavior-y:none}
/* انتخاب متن فقط روی عناصر کنترلی غیرفعال (متن آگهی/مقاله قابل کپی می‌ماند) */
html.is-app a,html.is-app button,html.is-app nav,html.is-app header,html.is-app .sm-tabs,html.is-app .pm-tabs,html.is-app .m-tabs,html.is-app .btn{-webkit-user-select:none;user-select:none}
html.is-app img,html.is-app a{-webkit-user-drag:none}
/* ناحیهٔ امن (ناچ/نوار حرکت) برای نوارهای ثابت */
html.is-app .sm-bar,html.is-app .pm-bar,html.is-app .m-bar,html.is-app .bm-head{padding-top:env(safe-area-inset-top)}
html.is-app .sm-tabs,html.is-app .pm-tabs,html.is-app .m-tabs{padding-bottom:env(safe-area-inset-bottom)}
/* چیزهایی که در اپ معنا ندارند (مثلاً دعوت به نصب اپ) */
html.is-app .js-hide-in-app{display:none!important}
/* انتقال نرم بین صفحه‌ها (روی مرورگرهای پشتیبان) */
@view-transition{navigation:auto}
/* صفحهٔ آفلاین */
body.jk-offline{margin:0;min-height:100vh;display:grid;place-items:center;background:linear-gradient(160deg,#ecfdf5,#fff 55%,#fff7ed);font-family:Vazirmatn,Tahoma,sans-serif;color:#0f172a;text-align:center;padding:1.5rem}
body.jk-offline main{max-width:340px}
body.jk-offline h1{font-size:1.25rem;margin:.9rem 0 .4rem}
body.jk-offline p{color:#475569;line-height:1.9;margin:0 0 1.2rem;font-size:.95rem}
.jk-btn{display:block;width:100%;border:0;border-radius:14px;padding:.85rem 1rem;font:inherit;font-weight:700;color:#fff;background:linear-gradient(135deg,#0f766e,#14b8a6);box-shadow:0 8px 20px #0f766e33;cursor:pointer}
.jk-btn:active{transform:scale(.98)}
.jk-link{display:inline-block;margin-top:.9rem;color:#0f766e;text-decoration:none;font-size:.9rem}
/* اعلان درون‌برنامه‌ای (وقتی اپ باز است) */
.jk-toast{position:fixed;inset:calc(env(safe-area-inset-top) + 10px) 12px auto 12px;z-index:9999;background:#0f172a;color:#fff;border-radius:16px;padding:.8rem 1rem;box-shadow:0 12px 32px #0f172a55;font-size:.9rem;line-height:1.7;transform:translateY(-140%);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.jk-toast.on{transform:none}.jk-toast b{display:block;color:#5eead4}
