/* PADCORE — پوستهٔ سمتِ کاربر (`site/layout.blade.php` و `site/shell/*`).
   فاز ۴ زیرگامِ ۴و/۴الف: درون‌خطی‌ها و بلوک‌های `<style>`ِ ایستا به این شیت آمدند.
   مقادیر عیناً همان‌اند؛ یکدست‌سازیِ پالت با توکن کارِ گامِ بعد است.
   نامِ `lp-*` و ساختارِ پوسته قراردادِ منجمد است؛ فقط بدنهٔ قاعده‌ها اینجاست. */

/* ── پیامِ لایسنس ───────────────────────────────────────────────────── */
.site-license-notice {
    background: var(--pal-warn-bg, #fef3c7); border-bottom: 1px solid var(--pal-warn, #f59e0b); color: var(--pal-warn, #92400e);
    padding: 8px 16px; text-align: center; line-height: 1.8;
}

/* ── ریشهٔ scopeِ قالبِ سفارشیِ هدر/فوتر: خودش جعبه نمی‌سازد ─────────── */
.shell-custom-header, .shell-custom-footer { display: contents; }

/* ── هدرِ شفاف (تنظیمِ لندینگ) ──────────────────────────────────────── */
.shell-header-overlay { position: absolute; top: 0; inset-inline: 0; z-index: 100; }
/* فقط نوارِ هدر؛ عناصرِ off-canvas (drawer/overlay، fixed) هرگز وارد جریان نشوند. */
.shell-header-overlay header:not(aside, [class*="drawer"], [class*="overlay"], [id*="Drawer"], [id*="Overlay"]), .shell-header-overlay .lp-header:not(aside, [class*="drawer"], [class*="overlay"], [id*="Drawer"], [id*="Overlay"]),
.shell-header-overlay > *:not(aside, [class*="drawer"], [class*="overlay"], [id*="Drawer"], [id*="Overlay"]), .shell-header-overlay .shell-custom-header > *:not(aside, [class*="drawer"], [class*="overlay"], [id*="Drawer"], [id*="Overlay"]) {
    background: transparent !important; background-color: transparent !important;
    box-shadow: none !important; border-bottom-color: transparent !important;
    position: relative !important;
}
body.has-header-overlay .site-main { padding-top: 0 !important; margin-top: 0 !important; }
body.has-header-overlay .site-main > :first-child { margin-top: 0 !important; }
body.has-header-overlay .app-container { position: relative; }
body.has-header-overlay .top-nav {
    position: absolute !important; top: 0; inset-inline: 0; z-index: 100;
    background: transparent !important; backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important; box-shadow: none !important;
    border-bottom-color: transparent !important;
}
body.has-header-overlay .top-nav::before { display: none; }
body.has-header-overlay .main-content { padding-top: 0 !important; margin-top: 0 !important; }
body.has-header-overlay .main-content > :first-child { margin-top: 0 !important; }

/* ── هدرِ ثابتِ فشرده‌شونده با اسکرول (همهٔ صفحاتِ عمومی؛ مرجع: هدرِ مطلب) ─────────────────
   body.has-hdr-shrink: هدر داخلِ .shell-header-overlay (fixed) است؛ فاصلهٔ بالای .site-main با
   --site-hd-offset (ارتفاعِ کاملِ هدر در scroll=0) جبران می‌شود، پس با فشرده‌شدن پرشی رخ نمی‌دهد.
   is-scrolled را اسکریپتِ site/shell/_header-offset می‌گذارد. */
body.has-hdr-shrink .shell-header-overlay { background:color-mix(in srgb, var(--na-h-card) 85%, transparent); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-block-end-color:var(--na-h-line); }
/* ADR-0058 ب۱۲ — زمینهٔ هدرِ فریزشده از پالت («پس‌زمینهٔ هدر»)؛ قبلاً ثابت #fff بود و پالت هیچ‌وقت دیده نمی‌شد. */
body:is(.has-article-hero-overlay,.has-hdr-shrink) { --na-h-card:var(--pal-header-bg, #fff); --na-h-line:var(--pal-header-border, #e6e8ee); }
[data-theme="dark"] body:is(.has-article-hero-overlay,.has-hdr-shrink) { --na-h-card:#171a1f; --na-h-line:#262a32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) body:is(.has-article-hero-overlay,.has-hdr-shrink) { --na-h-card:#171a1f; --na-h-line:#262a32; } }
body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay {
    position:fixed; inset-block-start:0; inset-inline:0; z-index:100;
    padding-block-start:env(safe-area-inset-top);
    border-block-end:1px solid transparent;
    transition:background-color .25s, border-color .25s, -webkit-backdrop-filter .25s, backdrop-filter .25s;
}
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay {
    background:color-mix(in srgb, var(--na-h-card) 85%, transparent);
    -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
    border-block-end-color:var(--na-h-line);
}
/* shell.css همهٔ فرزندانِ overlay را position:relative می‌کند؛ drawer/پوشش‌اش (fixed) وارد جریان
   می‌شدند و ارتفاعِ هدرِ fixed را چندبرابر می‌کردند (نوارِ خالی + هدرِ غیرِچسبان). برگرداندن:
   ریشه: در هدرِ سفارشی drawer داخلِ .shell-custom-header (display:contents) است و انتخاب‌گرِ «>»
   به آن نمی‌رسید؛ پس nav تمام‌قدِ drawer در جریان می‌ماند و نوارِ blurِ ~۶۰۰px می‌ساخت. */
body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay :is(.lp-drawer,.lp-drawer-overlay,aside,[class*="drawer"],[class*="overlay"],[id*="Drawer"],[id*="Overlay"]):not(.shell-custom-header) { position:fixed !important; }
/* سقفِ ارتفاع: هیچ فرزندِ ناشناسِ در جریان نباید نوارِ blurِ بلند بسازد. */
body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay { max-block-size:40vh; }
body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay .lp-drawer { background:var(--pal-drawer-bg, var(--pal-card, #fff)) !important; }
/* حالتِ فشرده پس از اسکرول: فقط نوارِ اصلی با کمترین ارتفاع؛ نوارِ بالایی پنهان و لوگو کوچک. */
body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay :is(.lp-header-inner,.lp-logo,.lp-logo-img,.lp-logo img) { transition:padding .25s, min-block-size .25s, block-size .25s, max-block-size .25s; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay :is(.lp-topbar,.lp-header-top,.lp-info-bar,.lp-header-info,[data-header-topbar]) { display:none !important; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .lp-header-inner { padding-block:6px !important; min-block-size:0 !important; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .lp-logo { padding-block:0 !important; min-block-size:0 !important; block-size:auto !important; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay :is(.lp-logo-img,.lp-logo img) { max-block-size:36px !important; block-size:auto !important; inline-size:auto !important; }
body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay .lp-header { position:static !important; margin:0; }
/* هدرِ سفارشیِ لندینگ (h4: .site-header/.brand/.main-nav/.topbar-info): با اسکرول (is-scrolled) هدر
   در top:0 می‌چسبد، نوارِ اطلاعات پنهان، لوگو و دکمه‌های منو کوچک و کلِ ارتفاع کمینه می‌شود. */
body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay :is(.brand,.brand-logo,.hd-flou,.main-nav,.main-nav a) { transition:width .25s, height .25s, padding .25s, font-size .25s, top .25s, border-radius .25s, background .3s, transform .3s, box-shadow .3s, border-color .3s; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-custom-header {
    --hd-h:56px; --hd-bar-h:0px; --hd-nav-h:34px; --hd-btn-h:34px; --hd-logo-w:78px; --hd-logo-h:50px; --hd-pad-x:20px;
}
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .site-header { top:0 !important; height:var(--hd-h) !important; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .topbar-info { display:none !important; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .brand-logo { border-radius:0 0 16px 16px; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .brand-logo img { inline-size:76%; block-size:76%; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .main-nav { font-size:13px; gap:5px; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .main-nav a { padding-inline:12px; gap:6px; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .main-nav a::before { inline-size:14px; block-size:14px; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .header-actions button { inline-size:40px; }
body:is(.has-article-hero-overlay,.has-hdr-shrink).is-scrolled .shell-header-overlay .site-header .header-actions .hd-burger { inline-size:40px !important; block-size:var(--hd-btn-h) !important; }
@media print { body:is(.has-article-hero-overlay,.has-hdr-shrink) .shell-header-overlay { position:static; background:none; } }
body.hd-measuring .shell-header-overlay, body.hd-measuring .shell-header-overlay * { transition:none !important; }
body.app-mode-site.has-hdr-shrink .site-main { padding-top: calc(var(--site-hd-offset, 0px) + 32px); }
@media (max-width:640px) { body.app-mode-site.has-hdr-shrink .site-main { padding-top: calc(var(--site-hd-offset, 0px) + 20px); } }
body.has-header-overlay .site-main, body.has-article-hero-overlay .site-main { padding-top: 0 !important; }

/* ── top-nav ─────────────────────────────────────────────────────────── */
a.nav-title { text-decoration: none; color: inherit; }
.top-nav-link-icon {
    width: 16px; height: 16px; object-fit: contain; vertical-align: middle;
    margin-inline-end: 4px;
}
.nav-bell-wrap { position: relative; }
.nav-bell-wrap .nav-bell-btn { position: relative; }
/* شمارندهٔ اعلان/چت. نمایش/پنهان‌شدن را poller با `style.display` ست می‌کند. */
.nav-notif-badge, .nav-chat-badge {
    display: none; position: absolute; top: -4px; inset-inline-end: -6px;
    background: var(--pal-error, #dc2626); color: var(--pal-on-primary, #fff); font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px;
    align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
}

/* ── کشوی top-nav (حالتِ app) ────────────────────────────────────────── */
.nav-drawer-logo { height: 32px; width: auto; border-radius: 6px; }
.nav-drawer-logout-form { display: inline; }
.nav-drawer-logout-form > button.nav-drawer-logout {
    background: none; border: none; cursor: pointer; padding: 0; color: inherit;
}

/* --- Footer --- */
.lp-footer {
    background: var(--lp-footer-bg, #1a1c1e); color: rgba(255,255,255,.85);
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
}
.lp-footer-menus { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto; }
:is(.lp-footer, .shell-custom-footer) .lp-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
:is(.lp-footer, .shell-custom-footer) .lp-nav :is(a, .footer-menu-button) { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; }
.lp-footer .lp-nav-has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.lp-footer .lp-sub { display: flex; flex-wrap: wrap; position: static; background: transparent; box-shadow: none; }
.lp-footer .lp-lang-switcher { display: flex; flex-wrap: wrap; list-style: none; gap: 4px; padding: 0; }
.lp-footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.lp-footer-col-title {
    font-size: 16px; font-weight: 700; color: var(--pal-on-primary, #fff); margin: 0 0 16px;
    padding-bottom: 8px; border-bottom: 2px solid var(--lp-primary, var(--tn-primary, #1565C0));
    display: inline-block;
}
.lp-footer-links { list-style: none; padding: 0; margin: 0; }
.lp-footer-links li { margin-bottom: 8px; }
.lp-footer-links a { font-size: 14px; opacity: .75; transition: opacity .2s; }
/* ADR-0058 ب۱۰ — پیوند و آیکنِ فوتر پیش‌فرض هم‌رنگِ متنِ فوتر (روی زمینهٔ تیره خوانا)؛ پالتِ فوتر هر دو را می‌پوشاند. */
.lp-footer a { color: inherit; }
.lp-footer :is(.nav-btn-icon, .lp-nav a > img, .icon) { filter: brightness(0) invert(1); opacity: .85; }
/* خطِ جداکنندهٔ کپی‌رایت فقط وقتی بالایش محتوایی هست (قبلاً خطِ اضافی روی فوترِ تک‌خطی). */
.lp-footer-copyright:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.lp-footer-links a:hover { opacity: 1; }

/* زیرمنوی فوتر (padcore198) — همیشه‌باز و تودرتو، بدونِ hover. */
.lp-footer-sub { list-style: none; padding: 0; margin: 6px 0 0; padding-inline-start: 14px;
    border-inline-start: 1px solid currentColor; border-color: rgba(128,128,128,.35); }
.lp-footer-sub li { margin-bottom: 6px; }
.lp-footer-sub a { font-size: 13px; opacity: .6; }
.lp-footer-sub a:hover { opacity: .95; }
.lp-footer-links[style] > li { display: flex; flex-direction: column; gap: 4px; }
.lp-footer-links[style] .lp-footer-sub { flex-direction: column; }
.lp-footer-text { font-size: 14px; line-height: 1.8; }
.lp-footer-copyright {
    max-width: 1400px; margin: 12px auto 0;
    padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px; text-align: center; opacity: .6;
}

/* در فوتر (زمینهٔ تیره) کنتراست معکوس است. */
.lp-footer .lp-lang-switcher { justify-content: center; margin-top: 24px; }
.lp-footer .lp-lang-switcher a:hover,
.lp-footer .lp-lang-current { background: rgba(255,255,255,.15); }

@media (max-width: 768px) {
    .lp-footer { padding: 28px 14px calc(16px + env(safe-area-inset-bottom, 0px)); }
    .lp-footer-copyright { margin-top: 20px; padding-top: 14px; font-size: 12px; }
    .lp-footer-inner { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
}

/* ── هدرِ پیش‌فرضِ اپ: شیشه‌ای با خطِ ظریف ── */
body:not(.app-mode-site) .top-nav {
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-block-end: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .35);
}

/* ── نوارِ آفلاین و بارگذاری ────────────────────────────────────────── */
.offline-banner {
    display: none; position: fixed; top: 0; inset-inline: 0; z-index: 9999;
    background: var(--pal-warn, #f59e0b); color: var(--pal-warn, #78350f); text-align: center; padding: 6px 16px;
    font-size: 12px; font-weight: 700; direction: rtl;
}
.tn-loading[hidden] { display: none; }

/* ── هدرِ پیش‌فرضِ لندینگ ────────────────────────────────────────────── */
.lp-logo img.lp-logo-img { height: var(--lp-logo-h, 40px); }
.lp-footer-links--inline {
    display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0;
}
.lp-footer-links--inline > li { display: flex; flex-direction: column; gap: 4px; }
.lp-footer-links--inline .lp-footer-sub { flex-direction: column; }

/* ── پاپ‌آپِ نصبِ PWA (`_pwa_popup`) ─────────────────────────────────── */
/* نمایش/پنهان‌شدن را اسکریپتِ خودش با `style.display` ست می‌کند. */
.pwa-popup {
    display: none; position: fixed; bottom: 80px; inset-inline: 0; margin-inline: auto;
    width: calc(100% - 32px); max-width: 420px; z-index: 9999;
    background: var(--pal-card, #fff); border-radius: var(--tn-r-lg, 20px);
    box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 20px;
    direction: rtl; font-family: inherit;
}
.pwa-popup-close {
    position: absolute; top: 10px; inset-inline-end: 10px;
    background: none; border: none; font-size: 20px; color: var(--pal-text-muted, #999);
    cursor: pointer; padding: 4px 8px; line-height: 1;
}
.pwa-popup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pwa-popup-icon {
    width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
    object-fit: cover; background: var(--pal-card, #fff);
}
.pwa-popup-name { font-size: 15px; font-weight: 700; color: var(--tn-on-surface, #1A1C1E); }
.pwa-popup-hint { font-size: 12px; color: var(--tn-on-surface-var, #6B7280); margin-top: 2px; }
.pwa-popup-steps {
    font-size: 13px; color: var(--tn-on-surface-var, #6B7280); line-height: 2; margin-bottom: 14px;
}
.pwa-share-icon { vertical-align: middle; margin: 0 2px; }
.pwa-popup-actions { display: flex; gap: 8px; }
.pwa-popup-install, .pwa-popup-later {
    border: none; border-radius: var(--tn-r-full, 100px); cursor: pointer; font-family: inherit;
}
.pwa-popup-install {
    flex: 1; padding: 12px; background: var(--tn-primary, #1565C0); color: var(--pal-on-primary, #fff);
    font-size: 14px; font-weight: 700;
}
.pwa-popup-later {
    padding: 12px 16px; background: var(--tn-surface-dim, #ECEEF2);
    color: var(--tn-on-surface-var, #6B7280); font-size: 13px;
}

/* ── نوارِ ادمین (`_admin_bar`) ─────────────────────────────────────── */
.admin-bar-icon { width: 16px; height: 16px; }
.admin-bar-section.admin-bar-section--last { border-bottom: none; }

/* هدفِ لینکِ «پرش به محتوا» فقط برنامه‌وار فوکوس می‌گیرد؛ حلقهٔ فوکوس نویز است. */
#siteMain:focus { outline: none; }

/* ═══ تمِ تیره — فاز ۵ب (ADR-PADCORE-0028) ═══════════════════════════════
   صفت را فقط `partials/site-theme-boot` می‌نویسد، و آن هم فقط با تیکِ هر دو
   پترن. پس بی تیک این بخش هرگز فعال نیست. فقط سطح‌های `#fff`ِ برهنه و
   رنگ‌های معنایی اینجا هستند؛ شمارنده‌های قرمز (`#dc2626` روی سفید) در هر دو
   تم خوانا می‌مانند و دست‌نخورده‌اند. */

/* پیامِ لایسنس: تینتِ کهربایی روشن با متنِ قهوه‌ای → جفتِ هشدارِ تمِ تیره. */
:root[data-theme="dark"] .site-license-notice {
    background: var(--warning-muted);
    border-bottom-color: var(--warning);
    color: var(--warning);
}

/* نوارِ آفلاین عمداً همان کهربایی پررنگ می‌مانَد: در هر دو تم باید فریاد بزند
   و بخشی از پالتِ صفحه نیست. فقط متنش روی زمینهٔ کهربایی تنظیم شد. */

/* پاپ‌آپِ نصبِ PWA. */
:root[data-theme="dark"] .pwa-popup {
    background: var(--card);
    box-shadow: var(--shadow-lg);
}
:root[data-theme="dark"] .pwa-popup-icon { background: var(--layer-2); }
:root[data-theme="dark"] .pwa-popup-close { color: var(--muted-foreground); }

/* `--tn-primary` در تمِ تیره آبیِ روشن می‌شود، پس `#fff` روی آن ۱.۹:۱ می‌داد. */
:root[data-theme="dark"] .pwa-popup-install { color: var(--primary-foreground); }

/* دکمهٔ type‌دارِ منوی هدر با آیکون/عنوانِ قابلِ ویرایش (هم‌قاعده با فوتر). */
.nav-menu-btn{display:inline-flex;align-items:center;gap:6px;width:auto;padding:0 8px}
.nav-menu-btn .nav-btn-icon{width:20px;height:20px;object-fit:contain}
.nav-menu-btn .nav-btn-label{font-size:13px;white-space:nowrap}
.nav-profile-icon:has(.nav-btn-label){display:inline-flex;align-items:center;gap:6px;width:auto;padding:0 8px}
.nav-profile-icon .nav-btn-icon{width:20px;height:20px;object-fit:contain}
.nav-profile-icon .nav-btn-label{font-size:13px;white-space:nowrap}

/* دکمه‌های بالا (اعلان/چت/پروفایل): کپسولِ یکدست بدونِ کادر؛ فقط صفحهٔ جاری فعال است */
.nav-bell-btn,.nav-profile-icon{block-size:36px;min-inline-size:36px;border-radius:999px;background:transparent;border:0;box-shadow:none;color:var(--tn-on-surface-var);transition:background .15s,color .15s}
.nav-menu-btn,.nav-profile-icon:has(.nav-btn-label){padding:0 10px 0 12px;gap:6px}
.nav-profile-icon:has(.nav-profile-avatar):has(.nav-btn-label){padding-inline-start:4px}
.nav-bell-btn:hover,.nav-profile-icon:hover{background:color-mix(in srgb,var(--tn-on-surface-var) 8%,transparent);color:var(--tn-on-surface)}
.nav-bell-btn.is-active,.nav-profile-icon.is-active{background:var(--tn-primary-light);color:var(--tn-primary);font-weight:600}
.nav-bell-btn:focus-visible,.nav-profile-icon:focus-visible{outline:2px solid var(--tn-primary);outline-offset:2px}
.nav-btn-label{line-height:1}

.footer-menu-counted { position: relative; }
.footer-menu-button { border: 0; background: transparent; color: inherit; font-family: inherit; cursor: pointer; }

/* فریزِ هدر خاموش (تنظیمِ ادمین): هدرِ مهمان و کاربر هر دو با صفحه اسکرول می‌شوند. */
body.hdr-static :is(.top-nav, .lp-header) { position: static !important; }

/* طرحِ فوتر (تنظیمِ ادمین؛ مهمان و کاربر). */
/* The shared footer uses its own space in the page flow. */
body:is(.ftr-dock,.ftr-dock-flat):has(> :is(.lp-footer,.shell-custom-footer)) {
    display: flex;
    flex-direction: column;
    padding-block-end: 0;
}
body:is(.ftr-dock,.ftr-dock-flat):has(> :is(.lp-footer,.shell-custom-footer)) > :is(.site-main,.app-container) {
    flex: 1 0 auto;
    inline-size: 100%;
    min-block-size: 0;
}
body:is(.ftr-dock,.ftr-dock-flat):has(> :is(.lp-footer,.shell-custom-footer)) > .app-container > .main-content {
    min-block-size: 0;
}
body:is(.ftr-dock,.ftr-dock-flat) > :is(.lp-footer,.shell-custom-footer) {
    display: block;
    position: sticky;
    inset-block-end: 0;
    inline-size: 100%;
    flex: none;
    z-index: 90;
}
body:is(.ftr-dock,.ftr-rounded) {
    --footer-corner-radius: 20px;
}
body:is(.ftr-dock,.ftr-rounded) :is(.lp-footer,.shell-custom-footer > *) {
    border-radius: var(--footer-corner-radius) var(--footer-corner-radius) 0 0;
    overflow: hidden;
}

/* The last section paints through the rounded corners of the dock. */
body.ftr-dock.lp-landing:has(> :is(.lp-footer,.shell-custom-footer)):has(#siteMain > main > .lp-section:last-child)
    :is(.app-container, #siteMain, #siteMain > main) {
    display: flex;
    flex-direction: column;
}
body.ftr-dock.lp-landing:has(> :is(.lp-footer,.shell-custom-footer)):has(#siteMain > main > .lp-section:last-child)
    :is(#siteMain, #siteMain > main, #siteMain > main > .lp-section:last-child) {
    flex: 1 0 auto;
}
body.ftr-dock.lp-landing:has(> :is(.lp-footer,.shell-custom-footer)):has(#siteMain > main > .lp-section:last-child) #siteMain {
    padding-block-end: 0;
}
body.ftr-dock.lp-landing:has(> :is(.lp-footer,.shell-custom-footer)) #siteMain > main > .lp-section:last-child {
    padding-block-end: calc(var(--lp-section-space-bottom, 0px) + var(--footer-corner-radius));
}
body.ftr-dock.lp-landing:has(#siteMain > main > .lp-section:last-child) > :is(.lp-footer,.shell-custom-footer) {
    margin-block-start: calc(-1 * var(--footer-corner-radius));
}

body.ftr-dock-flat .lp-footer, body.ftr-flat .lp-footer { border-radius: 0 !important; margin-inline: 0 !important; }
body.ftr-floating .lp-footer { border-radius: 20px; margin: 12px !important; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
/* ADR-0058 ب۱۰ — عرضِ هدر/فوتر (اختصاصیِ هر پترن یا پیش‌فرضِ بخش سایت). */
.hdr-w-full :is(.lp-header-inner, .top-nav) { max-width: none; }
.hdr-w-boxed .lp-header { max-inline-size: 1200px; margin-inline: auto; border-end-start-radius: 14px; border-end-end-radius: 14px; }
.ftr-w-full :is(.lp-footer-inner, .lp-footer-menus) { max-width: none; }
/* The boxed footer and the default app footer share the app header's frame. */
body.ftr-w-boxed > :is(.lp-footer,.shell-custom-footer),
body:not(.app-mode-site):not(.ftr-w-full) > .app-container + :is(.lp-footer,.shell-custom-footer) {
    max-inline-size: var(--app-frame-width);
    margin-inline: auto !important;
}
.ftr-w-boxed > :is(.lp-footer,.shell-custom-footer) {
    display: block;
    border-start-start-radius: 14px;
    border-start-end-radius: 14px;
}
/* App header login/logout. */
.top-nav-auth { display: inline-flex; align-items: center; }
.top-nav-auth .lp-auth-form { display: inline-flex; margin: 0; }
.top-nav-auth .lp-auth-btn { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--tn-outline, #e1e5eb); background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.top-nav-auth .lp-auth-btn:hover { background: var(--tn-surface-dim, #e9ecf1); }

/* ═══ #586 — دکمه‌های پویای منو: آیکن + عنوانِ خودِ آیتم؛ چیدمان از «هدر/فوتر › رفتار» ═══ */
:is(.lp-header,.top-nav,.lp-footer,.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon):has(.nav-btn-label) { inline-size: auto; block-size: auto; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
:is(.lp-header,.top-nav,.lp-footer,.lp-drawer,.nav-drawer) .nav-btn-icon { inline-size: 20px; block-size: 20px; flex: none; }
/* کشو: ردیفِ تمام‌عرض مثلِ بقیهٔ پیوندها، بی‌زمینهٔ رنگیِ هدر */
:is(.lp-drawer,.nav-drawer) .nav-bell-wrap { display: block; }
:is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon) { background: transparent !important; color: inherit; inline-size: 100%; block-size: auto; justify-content: flex-start; border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; box-sizing: border-box; }
body.mi-h-row :is(.lp-header,.top-nav) :is(.nav-bell-btn,.nav-profile-icon) { inline-size: auto; block-size: auto; flex-direction: row; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; }
body.mi-h-stack :is(.lp-header,.top-nav) :is(.nav-bell-btn,.nav-profile-icon) { inline-size: auto; block-size: auto; flex-direction: column; display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 10px; font-size: 11px; }
body.mi-h-icon :is(.lp-header,.top-nav) :is(.nav-bell-btn,.nav-profile-icon) .nav-btn-label { display: none; }
body.mi-h-label :is(.lp-header,.top-nav) :is(.nav-bell-btn,.nav-profile-icon) :is(.nav-btn-icon,svg) { display: none; }
body.mi-d-row :is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon) { inline-size: auto; block-size: auto; flex-direction: row; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; }
body.mi-d-stack :is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon) { inline-size: auto; block-size: auto; flex-direction: column; display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 10px; font-size: 11px; }
body.mi-d-icon :is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon) .nav-btn-label { display: none; }
body.mi-d-label :is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon) :is(.nav-btn-icon,svg) { display: none; }
body.brand-logo :is(.lp-logo-title,.nav-title,.lp-drawer-title) { display: none; }
body.brand-title :is(.lp-logo-img,.lp-logo img,.nav-logo,.lp-drawer-logo) { display: none; }
body.brand-stack .lp-logo { flex-direction: column; align-items: center; gap: 2px; }
body.brand-stack .lp-drawer-head { flex-direction: column; }

/* ═══ #587 — حالت‌های ShellExtras (کلاسِ body) ═══ */
body.xdyn-start .lp-header-inner { flex-direction: row-reverse; }
body.xdrw-left :is(.lp-drawer:not(.lp-drawer--full),.nav-drawer) { inset-inline-start: auto; inset-inline-end: 0; }
body.xdrwu-hide :is(.lp-drawer-foot,.nav-drawer-user) { display: none; }
body.xdrwi-hide .lp-drawer-install-wrap { display: none; }
body.xcs-none :is(.lp-news-card,.lp-stable-card,.static-btn-card,.lp-embed,.card,.article-card) { box-shadow: none !important; }
body.xcs-soft :is(.lp-news-card,.lp-stable-card,.static-btn-card,.lp-embed,.article-card) { box-shadow: 0 2px 10px rgba(15,23,42,.08) !important; }
body.xcs-strong :is(.lp-news-card,.lp-stable-card,.static-btn-card,.lp-embed,.article-card) { box-shadow: 0 10px 28px rgba(15,23,42,.18) !important; }
body.xcb-none :is(.lp-news-card,.lp-stable-card,.static-btn-card,.lp-embed,.article-card) { border-color: transparent !important; }
body.xcb-line :is(.lp-news-card,.lp-stable-card,.static-btn-card,.lp-embed,.article-card) { border: 1px solid var(--tn-outline, #e1e5eb) !important; }
body.xch-none :is(.lp-news-card,.lp-stable-card,.static-btn-card,.article-card):hover { transform: none !important; box-shadow: inherit; }
body.xch-lift :is(.lp-news-card,.lp-stable-card,.static-btn-card,.article-card) { transition: transform .2s, box-shadow .2s; }
body.xch-lift :is(.lp-news-card,.lp-stable-card,.static-btn-card,.article-card):hover { transform: translateY(-4px); }
body.xch-shadow :is(.lp-news-card,.lp-stable-card,.static-btn-card,.article-card):hover { box-shadow: 0 12px 30px rgba(15,23,42,.2) !important; transform: none; }
@keyframes pcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcUpIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    body.xia-fade :is(.lp-section,.lp-item-disp) { animation: pcFadeIn .6s ease both; }
    body.xia-up :is(.lp-section,.lp-item-disp) { animation: pcUpIn .6s ease both; }
}
body.xsla-hide :is(.lp-slider-prev,.lp-slider-next) { display: none !important; }
body.xsld-hide .lp-slider-dots { display: none !important; }
/* کلاس‌های کمکیِ سکشن (در «کلاسِ سفارشیِ» سکشن یا آیتم): فقط موبایل / فقط دسکتاپ */
@media (min-width: 769px) { .pc-only-mobile { display: none !important; } }
@media (max-width: 768px) { .pc-only-desktop { display: none !important; } }

/* #588 — قابِ لوگو و قانونِ کلیِ منوهای هدر/فوتر (همهٔ منوها، نه فقط پویا). */
:is(.lp-header,.top-nav,.lp-footer,.shell-custom-footer) .mi-link { display: inline-flex; align-items: center; gap: 6px; }
:is(.lp-header,.top-nav) .mi-icon { inline-size: var(--mi-h-is, 20px); block-size: var(--mi-h-is, 20px); flex: none; object-fit: contain; }
:is(.lp-footer,.shell-custom-footer) .mi-icon { inline-size: var(--mi-f-is, 20px); block-size: var(--mi-f-is, 20px); flex: none; object-fit: contain; }
:is(.lp-header,.top-nav) .nav-btn-icon { inline-size: var(--mi-h-is, 20px); block-size: var(--mi-h-is, 20px); }
.lp-footer .nav-btn-icon { inline-size: var(--mi-f-is, 20px); block-size: var(--mi-f-is, 20px); }
body[class*="xlf-"] :is(.lp-logo img,.lp-logo-img,.nav-logo) { background: var(--pal-logo-bg, #fff); border: 1px solid var(--pal-logo-bd, transparent); padding: var(--pc-logo-pad, 6px); object-fit: contain; }
body.xlf-rounded :is(.lp-logo img,.lp-logo-img,.nav-logo) { border-radius: 12px; }
body.xlf-square :is(.lp-logo img,.lp-logo-img,.nav-logo) { border-radius: 0; }
body.xlf-circle :is(.lp-logo img,.lp-logo-img,.nav-logo) { border-radius: 50%; aspect-ratio: 1; width: auto; }
body.xlf-pill :is(.lp-logo img,.lp-logo-img,.nav-logo) { border-radius: 999px; padding-inline: calc(var(--pc-logo-pad, 6px) * 2); }
body.xlsh-soft :is(.lp-logo img,.lp-logo-img,.nav-logo) { box-shadow: 0 2px 8px rgba(15,23,42,.15); }
body.xlsh-strong :is(.lp-logo img,.lp-logo-img,.nav-logo) { box-shadow: 0 6px 18px rgba(15,23,42,.3); }
body[class*="xlh-"] :is(.lp-logo img,.lp-logo-img,.nav-logo) { transition: transform .2s, opacity .2s; }
body.xlh-grow .lp-logo:hover :is(img,.lp-logo-img), body.xlh-grow .nav-logo:hover { transform: scale(1.08); }
body.xlh-fade .lp-logo:hover :is(img,.lp-logo-img), body.xlh-fade .nav-logo:hover { opacity: .75; }
body.xlh-tilt .lp-logo:hover :is(img,.lp-logo-img), body.xlh-tilt .nav-logo:hover { transform: rotate(-6deg); }
body.xmhp-start :is(.lp-header,.top-nav) a.mi-link { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; inline-size: auto; block-size: auto; }
body.xmhp-end :is(.lp-header,.top-nav) a.mi-link { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 6px; inline-size: auto; block-size: auto; }
body.xmhp-top :is(.lp-header,.top-nav) a.mi-link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; inline-size: auto; block-size: auto; }
body.xmhp-bottom :is(.lp-header,.top-nav) a.mi-link { display: inline-flex; flex-direction: column-reverse; align-items: center; gap: 2px; inline-size: auto; block-size: auto; }
body.xmhp-none :is(.lp-header,.top-nav) :is(.mi-icon,.nav-btn-icon) { display: none !important; }
body.xmhp-only :is(.lp-header,.top-nav) a.mi-link :is(.mi-label,.nav-btn-label) { display: none !important; }
body.xmhh-none :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn):hover { background: transparent !important; text-decoration: none; transform: none; }
body.xmhh-bg :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn):hover { background: var(--tn-surface-dim, rgba(0,0,0,.06)); }
body.xmhh-underline :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn):hover { background: transparent !important; text-decoration: underline; text-underline-offset: 6px; }
body.xmhh-color :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn):hover { background: transparent !important; color: var(--lp-primary, var(--tn-primary, #1565C0)); }
body.xmhh-grow :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn) { transition: transform .15s; }
body.xmhh-grow :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn):hover { transform: scale(1.06); }
body.xmhh-lift :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn) { transition: transform .15s; }
body.xmhh-lift :is(.lp-header,.top-nav) .lp-nav a:not(.lp-auth-btn):hover { transform: translateY(-2px); }
body.mi-f-rowrev :is(.lp-footer,.shell-custom-footer) .mi-link { flex-direction: row-reverse; }
body.mi-f-stack :is(.lp-footer,.shell-custom-footer) .mi-link { flex-direction: column; gap: 2px; }
body.mi-f-icon:not([class*="xmfp-"]) :is(.lp-footer,.shell-custom-footer) .mi-link:has(.mi-icon) .mi-label,
body.mi-f-label:not([class*="xmfp-"]) :is(.lp-footer,.shell-custom-footer) .mi-link:has(.mi-label:not(:empty)) .mi-icon { display: none; }
body.xmfp-start :is(.lp-footer,.shell-custom-footer) .mi-link { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; inline-size: auto; block-size: auto; }
body.xmfp-end :is(.lp-footer,.shell-custom-footer) .mi-link { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 6px; inline-size: auto; block-size: auto; }
body.xmfp-top :is(.lp-footer,.shell-custom-footer) .mi-link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; inline-size: auto; block-size: auto; }
body.xmfp-bottom :is(.lp-footer,.shell-custom-footer) .mi-link { display: inline-flex; flex-direction: column-reverse; align-items: center; gap: 2px; inline-size: auto; block-size: auto; }
body.xmfp-none :is(.lp-footer,.shell-custom-footer) .mi-icon { display: none !important; }
body.xmfp-only :is(.lp-footer,.shell-custom-footer) .mi-link .mi-label { display: none !important; }
body.xmfh-none :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button):hover { text-decoration: none; transform: none; }
body.xmfh-bg :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button):hover { background: rgba(255,255,255,.12); }
body.xmfh-underline :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button):hover { text-decoration: underline; text-underline-offset: 6px; }
body.xmfh-color :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button):hover { color: var(--pal-on-primary, #fff); }
body.xmfh-grow :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button) { transition: transform .15s; }
body.xmfh-grow :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button):hover { transform: scale(1.06); }
body.xmfh-lift :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button) { transition: transform .15s; }
body.xmfh-lift :is(.lp-footer,.shell-custom-footer) .lp-nav :is(a,.footer-menu-button):hover { transform: translateY(-2px); }
/* #589 — چینشِ همهٔ منوهای هدر/فوتر. */
body:is(.xmha-start,.xmha-center,.xmha-end) :is(.lp-header,.top-nav) .lp-nav:not(.lp-nav--end) { flex: 1; }
body.xmha-start :is(.lp-header,.top-nav) .lp-nav:not(.lp-nav--end) { justify-content: flex-start; }
body.xmha-center :is(.lp-header,.top-nav) .lp-nav:not(.lp-nav--end) { justify-content: center; }
body.xmha-end :is(.lp-header,.top-nav) .lp-nav:not(.lp-nav--end) { justify-content: flex-end; }
body.xmfa-start :is(.lp-footer-menus,.lp-footer .lp-nav) { justify-content: flex-start; }
body.xmfa-center :is(.lp-footer-menus,.lp-footer .lp-nav) { justify-content: center; text-align: center; }
body.xmfa-end :is(.lp-footer-menus,.lp-footer .lp-nav) { justify-content: flex-end; }
/* #598 — آیکنِ منو/دکمه = ماسک با رنگِ currentColor (هم‌رنگِ متنِ همان دکمه؛ همیشه دیده می‌شود). */
:is(.nav-btn-icon, .mi-icon, .top-nav-link-icon) { display: inline-block; flex: none; inline-size: 20px; block-size: 20px; background-color: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.top-nav-link-icon { inline-size: 16px; block-size: 16px; vertical-align: middle; }

/* #599 — ورود/خروج مثلِ بقیهٔ دکمه‌های پویا؛ حالتِ «آیکن چپ»؛ دکمهٔ بی‌محتوا جای خالی نمی‌گذارد. */
.lp-auth-btn { display: inline-flex; align-items: center; gap: 6px; }
.lp-auth-btn .nav-btn-icon { inline-size: 18px; block-size: 18px; }
body.mi-h-row :is(.lp-header,.top-nav) .lp-auth-btn { flex-direction: row; }
body.mi-h-rowrev :is(.lp-header,.top-nav) :is(.nav-bell-btn,.nav-profile-icon,.lp-auth-btn) { inline-size: auto; block-size: auto; display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 6px; padding: 6px 12px; }
body.mi-h-stack :is(.lp-header,.top-nav) .lp-auth-btn { flex-direction: column; gap: 2px; }
body.mi-h-icon :is(.lp-header,.top-nav) .lp-auth-btn:has(.nav-btn-icon) .nav-btn-label { display: none; }
body.mi-h-label :is(.lp-header,.top-nav) .lp-auth-btn .nav-btn-icon { display: none; }
body.mi-h-icon :is(.lp-header,.top-nav) :is(.nav-bell-btn,.nav-profile-icon):not(:has(.nav-btn-icon,.nav-profile-avatar,svg)) { display: none; }
body.mi-h-label :is(.lp-header,.top-nav) :is(.nav-bell-btn,.nav-profile-icon,.lp-auth-btn):not(:has(.nav-btn-label)) { display: none; }
body.mi-d-row :is(.lp-drawer,.nav-drawer) .lp-auth-btn { flex-direction: row; }
body.mi-d-rowrev :is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon,.lp-auth-btn) { inline-size: auto; block-size: auto; display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 6px; padding: 6px 12px; }
body.mi-d-stack :is(.lp-drawer,.nav-drawer) .lp-auth-btn { flex-direction: column; gap: 2px; }
body.mi-d-icon :is(.lp-drawer,.nav-drawer) .lp-auth-btn:has(.nav-btn-icon) .nav-btn-label { display: none; }
body.mi-d-label :is(.lp-drawer,.nav-drawer) .lp-auth-btn .nav-btn-icon { display: none; }
body.mi-d-icon :is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon):not(:has(.nav-btn-icon,.nav-profile-avatar,svg)) { display: none; }
body.mi-d-label :is(.lp-drawer,.nav-drawer) :is(.nav-bell-btn,.nav-profile-icon,.lp-auth-btn):not(:has(.nav-btn-label)) { display: none; }
:is(.nav-bell-btn,.nav-profile-icon):not(:has(*)) { display: none !important; }
.nav-bell-wrap:not(:has(> :is(.nav-bell-btn,.nav-profile-icon):not([hidden]))) { display: none; }
.top-nav-auth:empty, .lp-auth-form:not(:has(button)) { display: none; }

/* #600 — بدونِ سایهٔ تیره روی تصویرِ اسلایدرها و کارت‌های روی‌تصویر (مگر «با سایهٔ تیره»)؛ خوانایی با سایهٔ متن. */
body:not(.xshd-dark) .lp-slider-caption,
body:not(.xshd-dark) :is(.lp-news-card--overlay .lp-news-card-body, .lp-news-card--cover-body) { background: none !important; text-shadow: 0 1px 4px rgba(0,0,0,.75); }
body:not(.xshd-dark) .page-slider-wrap > .pad-slider .pad-slide::after { background: none !important; }
body:not(.xshd-dark) .page-slider-wrap > .pad-slider .pad-slide-overlay { text-shadow: 0 1px 4px rgba(0,0,0,.75); }
/* فلش‌های اسلایدر: شکل، جا، اندازه، نمایش. */
:is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { inline-size: var(--sl-arr, 44px) !important; block-size: var(--sl-arr, 44px) !important; }
body.xsas-solid :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { background: var(--pal-card, #fff) !important; color: var(--pal-text, #222) !important; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
body.xsas-square :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { border-radius: 10px !important; }
body.xsas-plain :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { background: none !important; box-shadow: none !important; backdrop-filter: none !important; }
body.xsap-bottom :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { top: auto !important; bottom: 12px; transform: none !important; }
body.xsap-top :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { top: 12px !important; transform: none !important; }
body:not(.xsah-hover) .pad-slider .pad-slider-arrow { opacity: 1; }
body.xsah-hover :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { opacity: 0 !important; transition: opacity .2s; }
body.xsah-hover :has(> :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow)):hover > :is(.lp-slider-prev,.lp-slider-next,.pad-slider-arrow) { opacity: 1 !important; }
body.xsla-hide .pad-slider-arrow { display: none !important; }
body.xsld-hide .pad-dot { display: none !important; }
/* #600 — ورود/خروج دقیقاً شکلِ بقیهٔ دکمه‌های پویا (بی‌پس‌زمینهٔ رنگیِ قدیمی). */
.lp-nav a.lp-login-btn.nav-bell-btn, .lp-header--gradient .lp-nav a.lp-login-btn.nav-bell-btn, .lp-nav .lp-logout-btn.nav-bell-btn, .top-nav-auth .lp-auth-btn.nav-bell-btn { background: transparent; color: inherit; border: 0; box-shadow: none; font: inherit; font-weight: inherit; text-decoration: none; cursor: pointer; }
.lp-auth-form { display: inline-flex; margin: 0; }
button.nav-bell-btn { -webkit-appearance: none; appearance: none; }

/* #602 — حالتِ چیدمانِ آیکن/عنوان روی همهٔ گزینه‌ها (پیوندِ آیکن‌دار و منوی پایینِ اپ هم)، نه فقط دکمه‌های پویا. */
body.mi-h-row :is(.lp-header,.top-nav) :is(a.mi-link) { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
body.mi-h-rowrev :is(.lp-header,.top-nav) :is(a.mi-link) { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 6px; }
body.mi-h-stack :is(.lp-header,.top-nav) :is(a.mi-link) { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
body.mi-h-icon :is(.lp-header,.top-nav) :is(a.mi-link:has(.mi-icon) .mi-label) { display: none; }
body.mi-h-label :is(.lp-header,.top-nav) :is(a.mi-link .mi-icon) { display: none; }
body.mi-d-row :is(.lp-drawer,.nav-drawer) :is(a.mi-link) { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
body.mi-d-rowrev :is(.lp-drawer,.nav-drawer) :is(a.mi-link) { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 6px; }
body.mi-d-stack :is(.lp-drawer,.nav-drawer) :is(a.mi-link) { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
body.mi-d-icon :is(.lp-drawer,.nav-drawer) :is(a.mi-link:has(.mi-icon) .mi-label) { display: none; }
body.mi-d-label :is(.lp-drawer,.nav-drawer) :is(a.mi-link .mi-icon) { display: none; }


/* Footer interaction states share the same palette in both shells. */
.lp-footer :is(a, button):focus-visible,
.shell-custom-footer :is(a, button):focus-visible {
    outline: 2px solid var(--pal-footer-focus, var(--pal-on-primary, currentColor));
    outline-offset: 3px;
}
:is(.lp-footer, .shell-custom-footer) a[aria-current="page"] {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

:is(.nav-drawer, .lp-drawer) :is(a, button):focus-visible {
    outline: 2px solid var(--pal-drawer-focus, var(--tn-primary, currentColor));
    outline-offset: 3px;
}
:is(.nav-drawer, .lp-drawer) a[aria-current="page"] {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}
