/* ==========================================================================
   Arcopet v2 · پایه، هدر، منو، کشوی موبایل، فوتر، تبلیغ
   منبع: طرح نهایی single post (نویگیشن نسخه ۴، فوتر نسخه ۶).
   موبایل اول. تبلت از ۷۶۸، دسکتاپ از ۹۹۲.
   ========================================================================== */

/* ---------- پایه ----------
   ریست‌ها داخل :where() هستند تا وزن CSS صفر داشته باشند و کلاس‌های v2 همیشه برنده باشند. */
html{ direction:rtl; -webkit-text-size-adjust:100%; }
body.v2{
  margin:0;
  font-family:var(--v2-font);
  font-size:var(--v2-fs-16);
  line-height:1.8;
  color:var(--v2-text);
  background:var(--v2-page);
  -webkit-font-smoothing:antialiased;
}
body.v2 *, body.v2 *::before, body.v2 *::after{ box-sizing:border-box; }
/* پوسته‌ی فروشگاه (body.v2-shell): فقط اجزای v2 (هدر، کشو، فوتر = .v2-scope) پایه می‌گیرند، نه بدنه‌ی قدیمی. */
.v2-scope, .v2-scope *, .v2-scope *::before, .v2-scope *::after{ box-sizing:border-box; }
.v2-scope{ font-family:var(--v2-font); font-size:var(--v2-fs-16); line-height:1.8; color:var(--v2-text); -webkit-font-smoothing:antialiased; }
:where(.v2-scope) :where(ul, ol){ list-style:none; margin:0; padding:0; }
:where(.v2-scope) :where(p, dl, dd, h2, h3){ margin:0; }
body.v2.v2-locked, body.v2-shell.v2-locked{ overflow:hidden; }
body.v2::before{
  content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px);
  z-index:60; background:var(--v2-surface);
}
:where(body.v2, .v2-scope) a{ color:inherit; text-decoration:none; }
/* در پوسته، CSS قدیمی برای a رنگ می‌گذارد؛ داخل اجزای v2 رنگ از والد می‌آید. */
.v2-scope a{ color:inherit; text-decoration:none; }
:where(body.v2, .v2-scope) button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; box-shadow:none; min-height:0; }
:where(body.v2, .v2-scope) img{ max-width:100%; height:auto; } /* بدون وزن، تا قانون‌های اختصاصی (مثل لوگو) برنده باشند */
.v2-icon{ width:22px; height:22px; fill:currentColor; flex:none; }
body.v2 :focus-visible, .v2-scope :focus-visible{ outline:2px solid var(--v2-text); outline-offset:2px; border-radius:6px; }
.v2-container{
  max-width:var(--v2-container); margin-inline:auto;
  padding-left:var(--v2-gutter-l); padding-right:var(--v2-gutter-r);
}
body.v2 .screen-reader-text, body.v2-shell .v2-skip-link:not(:focus){
  position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
.v2-skip-link:focus{
  position:fixed!important; top:8px; right:8px; z-index:100; width:auto; height:auto; clip:auto;
  padding:10px 16px; border-radius:var(--v2-radius-s); background:var(--v2-surface); color:var(--v2-text);
}

/* دکمه‌ی آیکونی: ناحیه‌ی لمس ۴۴ پیکسل */
.v2-icon-btn{
  display:inline-grid; place-items:center;
  width:var(--v2-tap); height:var(--v2-tap); border-radius:50%;
  color:var(--v2-text); transition:background-color .15s;
}
.v2-icon-btn:hover{ background:var(--v2-surface-subtle); }
.v2-icon-btn:active{ background:var(--v2-surface-hover); }

/* دکمه‌ها */
.v2-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding-inline:24px; border-radius:var(--v2-radius-m);
  font-weight:700; font-size:var(--v2-fs-16); transition:background-color .15s;
}
.v2-btn-primary{ background:var(--v2-brand); color:var(--v2-on-brand); }
.v2-btn-primary:hover{ background:var(--v2-brand-hover); }
.v2-btn-primary:active{ background:var(--v2-brand-pressed); }
.v2-btn-ghost{ font-weight:500; color:var(--v2-text-subtle); padding-inline:18px; }
.v2-btn-ghost:hover{ background:var(--v2-surface-subtle); }
.v2-btn-pill{ min-height:44px; padding-inline:20px; border-radius:999px; font-size:var(--v2-fs-14); white-space:nowrap; }
.v2-btn-outline{ border:1px solid var(--v2-brand); color:var(--v2-link); background:var(--v2-surface); }
.v2-btn-outline:hover{ background:var(--v2-tint); }
.v2-btn-sm{ min-height:36px; padding-inline:12px; font-size:var(--v2-fs-14); }

/* خروجی قالب قدیمی که هنوز ممکن است از هوک‌ها چاپ شود */
#arcopet-skeleton-overlay, #preloader{ display:none!important; }

/* ---------- مسیر صفحه ---------- */
.v2-breadcrumb{ padding-top:12px; }
.v2-breadcrumb ol{
  display:flex; flex-wrap:wrap; align-items:center; gap:0 2px;
  list-style:none; margin:0; padding:0;
  font-size:var(--v2-fs-14); line-height:1.6; color:var(--v2-text-subtle);
}
.v2-breadcrumb li{ display:flex; align-items:center; gap:2px; min-height:32px; }
.v2-breadcrumb a{ padding-block:4px; }
.v2-breadcrumb a:hover{ color:var(--v2-text); text-decoration:underline; text-underline-offset:4px; }
.v2-breadcrumb .v2-icon{ width:16px; height:16px; opacity:.6; }
.v2-breadcrumb li:last-child a, .v2-breadcrumb [aria-current]{ color:var(--v2-text); font-weight:500; }

/* ---------- تبلیغ (API) ---------- */
.v2-ad:empty{ display:none; }
.v2-ad-header img, .v2-ad-content img{ display:block; margin-inline:auto; }
.v2-ad-content{ margin-top:32px; }

/* ---------- هدر ---------- */
.v2-header{
  position:sticky; top:env(safe-area-inset-top,0px); z-index:50; overflow-anchor:none;
  background:var(--v2-surface);
  border-bottom:1px solid var(--v2-border);
  transition:transform .25s ease;
  margin-bottom:var(--v2-search-row-h);
}
.v2-header.is-hidden{ transform:translateY(-100%); }
/* نوار مدیریت وردپرس (فقط برای کاربران واردشده) */
body.admin-bar .v2-header{ top:calc(env(safe-area-inset-top,0px) + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width:600px){ body.admin-bar .v2-header{ top:env(safe-area-inset-top,0px); } }
.v2-header-bar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  grid-template-areas:"menu logo actions";
  align-items:center;
  column-gap:8px;
}
.v2-menu-toggle{
  grid-area:menu; justify-self:start;
  display:inline-grid; place-items:center;
  width:var(--v2-tap); height:var(--v2-tap); margin-inline-start:-10px;
  border-radius:50%; color:var(--v2-text); transition:background-color .15s;
}
.v2-menu-toggle:hover{ background:var(--v2-surface-subtle); }
.v2-header-logo{
  grid-area:logo; display:flex; align-items:center; justify-content:center;
  height:var(--v2-bar-h);
}
.v2-top-nav{ grid-area:nav; display:none; }
.v2-header-search{ grid-area:search; }
.v2-header-buttons{ grid-area:actions; justify-self:end; display:flex; align-items:center; margin-inline-end:-10px; }

/* لوگو: در حالت تاریک روی پلاک سفید می‌نشیند. */
.v2-logo-plate{ display:flex; align-items:center; background:var(--v2-logo-plate); border-radius:10px; padding:4px 0; }
:root[data-theme="dark"] .v2-logo-plate{ padding:5px 10px; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .v2-logo-plate{ padding:5px 10px; } }
.v2-logo{ display:block; height:var(--v2-logo-h); width:auto; }

.v2-account-btn{ display:inline-flex; align-items:center; gap:8px; }
.v2-account-btn span{ display:none; }

/* حالت تاریک: آیکون مناسب */
.v2-dark-toggle .v2-dark-icon-sun{ display:none; }
:root[data-theme="dark"] .v2-dark-toggle .v2-dark-icon-sun{ display:block; }
:root[data-theme="dark"] .v2-dark-toggle .v2-dark-icon-moon{ display:none; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .v2-dark-toggle .v2-dark-icon-sun{ display:block; }
  :root:not([data-theme="light"]) .v2-dark-toggle .v2-dark-icon-moon{ display:none; }
}

/* ---------- اسکلت تصاویر ----------
   تا تصویر لود نشده: جای آن با اندازه‌ی واقعی (width/height) نگه داشته می‌شود و افکت اسکلت دارد.
   is-loaded و is-broken را v2-core.js می‌گذارد. بدون جاوااسکریپت اسکلتی نمایش داده نمی‌شود. */
.v2-js :is(.v2-post-hero, .v2-prose, .v2-related-thumb, .v2-rail-img, .v2-author-photo) img:not(.is-loaded){
  background:linear-gradient(90deg, var(--v2-skel-base) 0%, var(--v2-skel-shine) 50%, var(--v2-skel-base) 100%) 0 0 / 200% 100%;
  animation:v2-skel 1.3s ease-in-out infinite;
  color:transparent; /* متن alt تصویر شکسته دیده نشود */
}
.v2-js .v2-prose img:not(.is-loaded):not([height]){ min-height:180px; min-width:min(100%, 320px); }
.v2-js :is(.v2-post-hero, .v2-prose, .v2-related-thumb, .v2-rail-img, .v2-author-photo) img.is-broken{
  animation:none; background:var(--v2-skel-base);
}
@keyframes v2-skel{ from{ background-position:100% 0; } to{ background-position:-100% 0; } }

/* نوار پیشرفت مطالعه */
.v2-reading-progress{ position:absolute; inset-inline:0; bottom:-1px; height:2px; pointer-events:none; }
.v2-reading-progress span{
  display:block; height:100%; background:var(--v2-brand);
  transform-origin:right center; transform:scaleX(0);
}

/* ---------- جستجو ---------- */
.v2-header-search{
  position:absolute; top:100%; inset-inline:0; z-index:1;
  padding:10px var(--v2-gutter-r) 10px var(--v2-gutter-l);
  background:var(--v2-surface);
  transition:transform .22s ease, opacity .22s ease, visibility 0s;
}
.v2-search-form{ position:relative; margin:0; }
.v2-search-field{
  display:flex; align-items:center; gap:10px;
  height:48px; padding-inline:14px 8px;
  background:var(--v2-surface-subtle);
  border-radius:var(--v2-radius-s);
  border:1px solid transparent;
  transition:border-color .15s, background-color .15s;
}
.v2-search-field:focus-within{ background:var(--v2-surface); border-color:var(--v2-border-strong); }
.v2-search-field input[type="search"]{
  flex:1; min-width:0; height:100%; border:0; outline:0; background:transparent; padding:0;
  font:inherit; font-size:var(--v2-fs-16); color:var(--v2-text);
}
.v2-search-field input[type="search"]::placeholder{ color:var(--v2-text-subtle); opacity:1; }
.v2-search-field input[type="search"]::-webkit-search-cancel-button{ display:none; }
.v2-search-clear{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:var(--v2-text-muted); }
.v2-search-clear .v2-icon{ width:20px; height:20px; }
.v2-search-clear[hidden], .v2-search-results[hidden]{ display:none; }
.v2-search-results{
  position:absolute; inset-inline:0; top:calc(100% + 6px); z-index:5;
  background:var(--v2-surface);
  border:1px solid var(--v2-border); border-radius:var(--v2-radius-m);
  box-shadow:var(--v2-shadow-raised);
  padding:12px;
}
.v2-search-label{ font-size:var(--v2-fs-14); color:var(--v2-text-muted); margin:0 0 8px; }
.v2-search-chips{ display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.v2-search-chips a{
  display:inline-flex; align-items:center; min-height:36px; padding:4px 14px;
  border-radius:999px; background:var(--v2-surface-subtle);
  font-size:var(--v2-fs-14); color:var(--v2-text); transition:background-color .15s;
}
.v2-search-chips a:hover{ background:var(--v2-surface-hover); }
.v2-search-submit{
  display:flex; align-items:center; gap:10px; width:100%;
  min-height:var(--v2-tap); padding:8px 10px; margin-bottom:10px;
  border-radius:var(--v2-radius-s); background:var(--v2-surface-subtle);
  color:var(--v2-text); text-align:start; font-size:var(--v2-fs-16);
}
.v2-search-submit .v2-icon{ width:20px; height:20px; color:var(--v2-text-muted); }

/* ---------- منو (خروجی استاندارد wp_nav_menu) ---------- */
.v2-top-menu, .v2-top-menu .sub-menu{ list-style:none; margin:0; padding:0; }
.v2-submenu-toggle{
  display:grid; place-items:center; width:var(--v2-tap); height:var(--v2-tap); border-radius:50%;
  color:var(--v2-text-muted);
}
.v2-submenu-toggle .v2-icon{ width:20px; height:20px; transition:transform .2s; }
.menu-item.is-open > .v2-submenu-toggle .v2-icon{ transform:rotate(180deg); }

/* ---------- کشوی منوی موبایل ---------- */
.v2-drawer{ position:fixed; inset:0; z-index:100000; /* روی نوار مدیریت وردپرس */ }
.v2-drawer[hidden]{ display:none!important; }
.v2-drawer-overlay{ position:absolute; inset:0; background:var(--v2-overlay); opacity:0; transition:opacity .25s; }
.v2-drawer-panel{
  position:absolute; top:0; bottom:0; right:0;
  width:min(86vw, 360px);
  display:flex; flex-direction:column;
  background:var(--v2-surface);
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  padding-right:env(safe-area-inset-right,0px);
  transform:translateX(100%); transition:transform .28s cubic-bezier(.2,.8,.2,1);
  box-shadow:var(--v2-shadow-raised);
}
.v2-drawer.is-open .v2-drawer-overlay{ opacity:1; }
.v2-drawer.is-open .v2-drawer-panel{ transform:none; }
.v2-drawer-head{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  min-height:var(--v2-bar-h); padding-inline:16px;
  border-bottom:1px solid var(--v2-border);
}
.v2-drawer-brand{ justify-self:center; display:flex; }
.v2-drawer-brand .v2-logo{ height:34px; }
.v2-drawer-close{
  justify-self:end; width:44px; height:44px; border-radius:var(--v2-radius-m);
  display:grid; place-items:center; background:var(--v2-surface-subtle);
}
.v2-drawer-close:hover{ background:var(--v2-surface-hover); }
.v2-drawer-body{ flex:1; overflow-y:auto; padding:16px 16px 24px; overscroll-behavior:contain; }

/* کارت‌های کشو (ورود، پت‌شاپ) */
.v2-drawer-card{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px; border-radius:var(--v2-radius-m); background:var(--v2-surface-subtle);
  transition:background-color .15s;
}
.v2-drawer-card:hover{ background:var(--v2-surface-hover); }
.v2-drawer-card-text{ display:flex; flex-direction:column; line-height:1.5; }
.v2-drawer-card-text small{ font-size:var(--v2-fs-14); color:var(--v2-text-subtle); }
.v2-drawer-card-text strong{ font-size:var(--v2-fs-16); font-weight:700; }
.v2-drawer-card-icon{
  display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  background:var(--v2-surface); color:var(--v2-text); flex:none;
}
.v2-drawer-shop{ margin-top:20px; }
.v2-drawer-shop .v2-drawer-card-icon{ width:40px; height:40px; }
.v2-drawer-shop .v2-icon{ width:20px; height:20px; transition:transform .2s; }
.v2-drawer-shop:hover .v2-icon{ transform:translateX(-3px); }

/* فهرست موبایل */
.v2-drawer-menu{ margin-top:8px; }
.v2-drawer-top-menu{ list-style:none; margin:0; padding:0; }
.v2-drawer-top-menu > .menu-item{
  display:flex; flex-wrap:wrap; align-items:center;
  border-bottom:1px solid var(--v2-border);
}
.v2-drawer-top-menu > .menu-item.menu-item-shop{ display:none; }
.v2-drawer-menu .menu-item > a{
  flex:1; display:flex; align-items:center; min-height:58px; padding-inline:8px 4px;
  font-size:var(--v2-fs-18); font-weight:500;
}
.v2-drawer-menu .v2-submenu-toggle{ margin-inline-end:4px; }
.v2-drawer-menu .v2-submenu-toggle .v2-icon{ transform:rotate(-90deg); }
.v2-drawer-menu .menu-item.is-open > .v2-submenu-toggle .v2-icon{ transform:none; }
.v2-drawer-menu .sub-menu{
  flex-basis:100%; display:none; list-style:none;
  margin:0 8px 12px 16px; padding:0;
  border-inline-start:1px solid var(--v2-border);
}
.v2-drawer-menu .menu-item.is-open > .sub-menu{ display:block; }
.v2-drawer-menu .sub-menu .menu-item > a{
  min-height:46px; padding-inline:14px 6px; margin-inline-start:4px;
  font-size:var(--v2-fs-16); font-weight:400; border-radius:var(--v2-radius-s);
}
.v2-drawer-menu .sub-menu .menu-item > a:hover{ background:var(--v2-surface-subtle); }
.v2-drawer-menu .sub-menu .current-menu-item > a, .v2-drawer-menu .sub-menu .current-menu-parent > a, .v2-drawer-menu .sub-menu .current-post-parent > a{ background:var(--v2-surface-subtle); font-weight:700; }

/* ---------- تبلت: جستجو کنار منو ---------- */
@media (min-width:768px){
  .v2-header{ margin-bottom:0; }
  .v2-header-bar{
    grid-template-columns:auto auto 1fr auto;
    grid-template-areas:"menu logo search actions";
    column-gap:12px;
  }
  .v2-header-search{
    position:static; display:block; padding:0; width:100%; max-width:420px; justify-self:center;
    background:none; transition:none;
  }
  .v2-search-field{ height:44px; }
  .v2-account-btn{
    width:auto; height:40px; padding-inline:12px 14px; margin-inline-start:6px;
    border-radius:var(--v2-radius-s); background:var(--v2-surface-subtle);
    font-size:var(--v2-fs-14); font-weight:500;
  }
  .v2-account-btn:hover{ background:var(--v2-surface-hover); }
  .v2-account-btn span{ display:inline; max-width:12em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .v2-account-btn .v2-icon{ width:20px; height:20px; }
  .v2-header-buttons{ margin-inline-end:0; }
}

/* ---------- دسکتاپ: منو داخل نوار ---------- */
@media (min-width:992px){
  .v2-header-bar{
    grid-template-columns:auto auto 1fr auto;
    grid-template-areas:"logo nav search actions";
    column-gap:24px;
  }
  .v2-menu-toggle{ display:none; }
  .v2-top-nav{ display:block; }
  .v2-top-menu{ display:flex; align-items:center; gap:4px; }
  .v2-top-menu > .menu-item{ position:relative; display:flex; align-items:center; }
  .v2-top-menu > .menu-item > a{
    display:flex; align-items:center; gap:6px; height:var(--v2-bar-h);
    padding-inline:10px; font-weight:500; font-size:var(--v2-fs-16); position:relative;
  }
  .v2-top-menu > .menu-item-has-children > a{ padding-inline-end:0; }
  .v2-top-menu > .menu-item > a::after{
    content:""; position:absolute; inset-inline:10px; bottom:18px; height:2px; border-radius:2px;
    background:var(--v2-border-strong); transform:scaleX(0); transition:transform .2s;
  }
  .v2-top-menu > .menu-item:hover > a::after{ transform:scaleX(1); }
  .v2-top-menu > .current-menu-item > a,
  .v2-top-menu > .current-menu-ancestor > a,
  .v2-top-menu > .current-post-ancestor > a{ font-weight:700; }
  .v2-top-menu > .current-menu-item > a::after,
  .v2-top-menu > .current-menu-ancestor > a::after,
  .v2-top-menu > .current-post-ancestor > a::after{ background:var(--v2-brand); transform:scaleX(1); }
  .v2-top-menu .v2-submenu-toggle{ width:28px; height:28px; }
  .v2-top-menu .sub-menu{
    position:absolute; z-index:3; top:calc(100% - 12px); right:0; min-width:230px;
    padding:8px; border-radius:var(--v2-radius-m);
    background:var(--v2-surface);
    border:1px solid var(--v2-border);
    box-shadow:var(--v2-shadow-raised);
    opacity:0; visibility:hidden; transform:translateY(6px);
    transition:opacity .15s, transform .15s, visibility 0s .15s;
  }
  .v2-top-menu > .menu-item:hover > .sub-menu,
  .v2-top-menu > .menu-item.is-open > .sub-menu{
    opacity:1; visibility:visible; transform:none; transition:opacity .15s, transform .15s;
  }
  .v2-top-menu .sub-menu a{ display:block; padding:9px 12px; border-radius:var(--v2-radius-s); font-size:var(--v2-fs-16); }
  .v2-top-menu .sub-menu a:hover{ background:var(--v2-surface-subtle); }
  .v2-top-menu .sub-menu .current-menu-item > a{ font-weight:700; background:var(--v2-surface-subtle); }
  .v2-header-search{ max-width:360px; justify-self:end; }
}

/* موبایل: ردیف جستجو با اسکرول به پایین پنهان و با اسکرول به بالا نمایش داده می‌شود */
@media (max-width:767px){
  .v2-header.is-floating .v2-header-search{ box-shadow:var(--v2-shadow-float); }
  .v2-header.search-hidden .v2-header-search{
    opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:transform .22s ease, opacity .22s ease, visibility 0s .22s;
  }
}

/* ==========================================================================
   فوتر: سه نوار (برند و تماس · لینک‌ها و خبرنامه · کپی‌رایت و شبکه‌ها)
   ========================================================================== */
.v2-footer{
  background:var(--v2-footer-bg);
  color:var(--v2-footer-text);
  text-align:center;
}
.v2-footer a{ text-underline-offset:4px; }
.v2-footer a:hover{ color:var(--v2-footer-accent); text-decoration:underline; }
.v2-footer :focus-visible{ outline-color:var(--v2-white); }

.v2-footer-band{ display:grid; gap:24px; justify-items:center; padding-block:30px; }
.v2-footer-band + .v2-footer-band{ border-top:1px solid var(--v2-footer-line); }
.v2-footer-band:first-child{ padding-top:44px; }

.v2-footer-brand{ display:flex; flex-direction:column; align-items:center; }
.v2-footer-logo{ display:inline-block; }
.v2-footer-logo:hover{ text-decoration:none!important; }
.v2-footer-logo .v2-logo-plate{ background:var(--v2-white); padding:8px 14px; border-radius:12px; }
.v2-footer-logo .v2-logo{ height:auto; width:136px; }
.v2-footer-about{ margin:18px auto 0; max-width:520px; font-size:var(--v2-fs-14); line-height:2.1; color:var(--v2-footer-muted); }
.v2-footer-disclaimer{ margin:10px auto 0; max-width:520px; font-size:var(--v2-fs-14); font-weight:500; line-height:1.9; color:var(--v2-footer-text); }
.v2-footer-side{ display:grid; gap:20px; justify-items:center; }
.v2-footer-badges{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.v2-trust-badge{
  display:grid; place-items:center; width:76px; height:76px; padding:5px;
  background:var(--v2-white); border-radius:var(--v2-radius-m);
}
.v2-trust-badge:hover{ text-decoration:none!important; }
.v2-trust-badge img{ display:block; max-width:100%; max-height:100%; width:auto; height:auto; }
.v2-contact-list{ margin:0; display:grid; gap:2px; }
.v2-contact-list > div{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 8px; font-size:var(--v2-fs-14); line-height:1.9; }
.v2-contact-list dt{ color:var(--v2-footer-muted); }
.v2-contact-list dd{ margin:0; font-weight:500; overflow-wrap:anywhere; }

.v2-footer-menu{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(2,auto); justify-content:center; justify-items:center; gap:0 44px;
}
.v2-footer-menu > li:last-child:nth-child(odd){ grid-column:1 / -1; }
.v2-footer-menu a{ display:inline-flex; align-items:center; min-height:40px; font-size:var(--v2-fs-14); color:var(--v2-footer-text); }

.v2-footer-newsletter{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px 14px; width:100%; }
.v2-nl-title{ margin:0; font-size:var(--v2-fs-14); font-weight:700; line-height:1.8; flex-basis:100%; }
.v2-nl-form{ flex:1; min-width:0; max-width:380px; }

.v2-footer-copy{ margin:0; font-size:var(--v2-fs-14); line-height:1.8; color:var(--v2-footer-muted); }
.v2-nowrap{ white-space:nowrap; }
.v2-footer-socials{ list-style:none; margin:0; padding:0; display:flex; justify-content:center; gap:4px; }
.v2-social-btn{
  display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  color:var(--v2-footer-text); transition:color .15s;
}
.v2-social-btn:hover{ color:var(--v2-footer-accent); text-decoration:none!important; }
.v2-footer-low{ padding-bottom:max(30px, env(safe-area-inset-bottom, 0px)); }

/* رفتن به بالا: دسکتاپ شناور (آخر صفحه در جایش در فوتر می‌نشیند)، موبایل فقط داخل فوتر */
.v2-to-top-slot{ display:none; flex:none; width:46px; height:46px; }
.v2-to-top-slot-news{ display:block; }
.v2-to-top{
  position:fixed; z-index:40; top:0; left:0;
  display:none; place-items:center; width:46px; height:46px; border-radius:12px;
  background:var(--v2-brand); color:var(--v2-on-brand);
  box-shadow:var(--v2-footer-shadow);
  opacity:0; visibility:hidden;
  transition:opacity .2s, visibility 0s .2s, background-color .15s, box-shadow .2s;
}
.v2-to-top.is-visible{ opacity:1; visibility:visible; transition:opacity .2s, background-color .15s, box-shadow .2s; }
.v2-to-top.is-docked{ box-shadow:none; }
.v2-to-top:hover, .v2-to-top-inline:hover{ background:var(--v2-brand-hover); }
.v2-to-top-inline{
  display:grid; place-items:center; width:46px; height:46px; border-radius:12px;
  background:var(--v2-brand); color:var(--v2-on-brand); transition:background-color .15s;
}

@media (min-width:992px){
  .v2-footer{ text-align:start; }
  .v2-footer-band{
    grid-auto-flow:column; justify-content:space-between; align-items:center; justify-items:stretch; gap:48px;
    padding-block:30px;
  }
  .v2-footer-band:first-child{ padding-top:48px; align-items:start; }
  .v2-footer-brand{ align-items:flex-start; max-width:640px; }
  .v2-footer-about, .v2-footer-disclaimer{ margin-inline:0; max-width:none; }
  .v2-footer-side{ justify-items:start; gap:22px; }
  .v2-footer-badges{ justify-content:flex-start; }
  .v2-contact-list > div{ justify-content:flex-start; }
  .v2-footer-links{ display:flex; align-items:center; gap:20px; }
  .v2-footer-menu{ display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:center; gap:2px 22px; }
  .v2-footer-menu > li:last-child:nth-child(odd){ grid-column:auto; }
  .v2-to-top-slot-news{ display:none; }
  .v2-to-top{ display:grid; }
  .v2-to-top-slot-links{ display:block; }
  .v2-footer-newsletter{ flex-wrap:nowrap; width:auto; justify-content:flex-end; }
  .v2-nl-title{ flex-basis:auto; white-space:nowrap; }
  .v2-nl-form{ width:300px; }
  .v2-footer-socials{ justify-content:flex-start; margin-inline-end:-10px; }
}

@media (prefers-reduced-motion:reduce){
  body.v2 *, body.v2 *::before, body.v2 *::after{ transition-duration:0s!important; animation-duration:0s!important; }
}
