/* ==========================================================================
   Arcopet v2 · مقاله (single)
   ستون متن ۸۰۰ پیکسل (+ فاصله‌ی کناری). موبایل اول.
   ========================================================================== */

.v2-post-wrap{ max-width:calc(var(--v2-article) + 0px); padding-block:8px 24px; }
.v2-post-wrap.has-sidebar{ max-width:var(--v2-container); }
.v2-post [id]{ scroll-margin-top:88px; }

/* سایدبار (پیش‌فرض خاموش) */
.v2-post-wrap.has-sidebar .v2-post-layout{ display:grid; gap:32px; }
@media (min-width:992px){
  .v2-post-wrap.has-sidebar .v2-post-layout{ grid-template-columns:minmax(0,var(--v2-article)) minmax(0,300px); justify-content:center; }
}
.v2-sidebar .v2-widget + .v2-widget{ margin-top:24px; }

/* مسیر صفحه (.v2-breadcrumb) در layout.css است (مشترک با آرشیو محصولات). */

/* ---------- مشخصات مقاله ---------- */
.v2-post-meta{ display:flex; align-items:center; justify-content:space-between; gap:6px 10px; margin-top:8px; }
.v2-post-meta-main{
  display:flex; flex-wrap:wrap; align-items:center; gap:0 10px; flex:1; min-width:0;
  list-style:none; margin:0; padding:0;
  font-size:var(--v2-fs-14); color:var(--v2-text-subtle);
}
.v2-post-meta-main li{ display:flex; align-items:center; gap:6px; min-height:36px; }
.v2-post-meta-main li + li::before{
  content:""; width:4px; height:4px; border-radius:50%; background:currentColor; opacity:.45; margin-inline-end:6px;
}
.v2-post-meta-main .v2-icon{ display:none; width:16px; height:16px; opacity:.75; }
.v2-post-author-name{ font-size:var(--v2-fs-16); font-weight:700; color:var(--v2-text); }
.v2-post-tools{ display:flex; align-items:center; gap:2px; flex:none; }

.v2-fav-btn{
  display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  color:var(--v2-text); transition:background-color .15s, color .15s;
}
.v2-fav-btn:hover{ background:var(--v2-surface-subtle); }
.v2-fav-btn .v2-icon-fill{ opacity:0; }
.v2-fav-btn[aria-pressed="true"]{ color:var(--v2-brand); }
.v2-fav-btn[aria-pressed="true"] .v2-icon-fill{ opacity:1; }
.v2-fav-btn[aria-busy="true"]{ opacity:.5; pointer-events:none; }

/* اشتراک‌گذاری */
.v2-share{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 6px; position:relative; }
.v2-share-desktop{
  display:none; gap:2px;
  margin-inline-start:6px; padding-inline-start:8px; border-inline-start:1px solid var(--v2-border);
}
.v2-share-mobile{ margin-top:8px; }
.v2-share-label{ margin-inline-end:6px; font-size:var(--v2-fs-14); color:var(--v2-text-subtle); }
.v2-share-btn{
  display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  color:var(--v2-text); transition:background-color .15s;
}
.v2-share-btn:hover{ background:var(--v2-surface-subtle); }
.v2-share-note{ margin-inline-start:4px; font-size:var(--v2-fs-14); font-weight:500; color:var(--v2-text); }
.v2-share-note:empty{ display:none; }
.v2-share-desktop .v2-share-note{
  position:absolute; top:calc(100% + 4px); inset-inline-end:0; z-index:3;
  margin:0; padding:4px 12px; border-radius:8px; white-space:nowrap;
  background:var(--v2-text); color:var(--v2-surface);
}

/* ---------- تصویر شاخص ---------- */
.v2-post-hero{ margin:12px 0 0; }
.v2-post-hero img{
  display:block; width:100%; height:auto; aspect-ratio:800 / 424; object-fit:cover;
  border-radius:24px; box-shadow:var(--v2-shadow-hero);
}

/* ---------- عنوان و مقدمه ---------- */
.v2-post-title{
  margin:14px 0 12px; font-size:var(--v2-fs-28); line-height:1.6; font-weight:800;
  color:var(--v2-heading); text-wrap:balance;
}
.v2-post-lead{ padding-bottom:4px; }
.v2-post-lead p{ margin:0 0 .9em; font-size:var(--v2-fs-18); line-height:2; }

/* ---------- فهرست مطالب ---------- */
.v2-toc{ margin:20px 0 8px; border-radius:var(--v2-radius-l); background:var(--v2-surface-subtle); }
.v2-toc-toggle{
  display:flex; align-items:center; gap:10px; width:100%; min-height:56px; padding:10px 18px;
  text-align:start; border-radius:var(--v2-radius-l);
}
.v2-toc-title{ font-size:var(--v2-fs-16); font-weight:700; }
.v2-toc-count{ margin-inline-end:auto; font-size:var(--v2-fs-14); color:var(--v2-text-subtle); }
.v2-toc-toggle .v2-icon{ color:var(--v2-text-subtle); transition:transform .25s; }
.v2-toc.is-open .v2-toc-toggle .v2-icon{ transform:rotate(180deg); }
.v2-js .v2-toc-panel{ display:grid; grid-template-rows:0fr; visibility:hidden; transition:grid-template-rows .28s ease, visibility 0s .28s; }
.v2-js .v2-toc.is-open .v2-toc-panel{ grid-template-rows:1fr; visibility:visible; transition:grid-template-rows .28s ease; }
.v2-toc.no-anim .v2-toc-panel{ transition:none!important; }
.v2-toc-inner{ min-height:0; overflow:hidden; }
.v2-toc-list{ list-style:none; margin:0; padding:0 18px 10px; counter-reset:v2toc; }
.v2-toc-list li{ border-top:1px solid var(--v2-border); }
.v2-toc-list a{
  display:flex; align-items:baseline; gap:12px; min-height:48px; padding-block:10px;
  font-size:var(--v2-fs-16); line-height:1.7; color:var(--v2-text);
}
.v2-toc-list a::before{
  counter-increment:v2toc; content:counter(v2toc, persian);
  flex:none; min-width:1.6em; font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-text-subtle);
  font-variant-numeric:tabular-nums;
}
.v2-toc-list a:hover{ color:var(--v2-link); }

/* ---------- متن مقاله ---------- */
.v2-post-content{ margin-top:8px; }
/* قواعد پایه‌ی .v2-prose در prose.css است (مشترک با آرشیو محصولات). */

/* کادر «بیشتر بخوانید» ([related_post]) */
.v2-read-more{
  position:relative; overflow:hidden; display:grid; gap:2px;
  margin:1.3em 0; padding:12px 18px; border-radius:12px; background:var(--v2-tint);
}
.v2-read-more::before{ content:""; position:absolute; inset-block:0; inset-inline-start:0; width:3px; background:var(--v2-brand); }
.v2-read-more-label{ font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-tint-text); line-height:1.7; }
.v2-prose a.v2-read-more-link{ font-size:var(--v2-fs-16); font-weight:700; line-height:1.8; color:var(--v2-heading); text-decoration:none; }
.v2-prose a.v2-read-more-link:hover{ color:var(--v2-link); text-decoration:underline; text-underline-offset:5px; }

/* بخش بازشو ([collapse]) */
.v2-collapse{
  margin:8px 0; border:1px solid var(--v2-border); border-radius:var(--v2-radius-l);
  background:var(--v2-surface); transition:border-color .2s, box-shadow .2s;
}
.v2-collapse.is-open{ border-color:transparent; box-shadow:var(--v2-shadow-card); }
.v2-collapse-toggle{
  display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:10px 16px 10px 12px;
  text-align:start; border-radius:var(--v2-radius-l);
}
.v2-collapse-toggle:hover .v2-collapse-icon{ background:var(--v2-surface-hover); }
.v2-collapse-title{ flex:1; min-width:0; font-size:var(--v2-fs-16); font-weight:700; line-height:1.7; color:var(--v2-heading); }
.v2-collapse-icon{
  flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:50%;
  background:var(--v2-surface-subtle); color:var(--v2-text); transition:background-color .15s;
}
.v2-collapse-icon .v2-icon{ width:20px; height:20px; transition:transform .25s; }
.v2-collapse.is-open .v2-collapse-icon .v2-icon{ transform:rotate(180deg); }
.v2-js .v2-collapse-panel{ display:grid; grid-template-rows:0fr; visibility:hidden; transition:grid-template-rows .3s ease, visibility 0s .3s; }
.v2-js .v2-collapse.is-open .v2-collapse-panel{ grid-template-rows:1fr; visibility:visible; transition:grid-template-rows .3s ease; }
.v2-collapse.no-anim .v2-collapse-panel{ transition:none!important; }
.v2-collapse-inner{ min-height:0; overflow:hidden; }
.v2-collapse-body{ padding:0 18px 20px; }
.v2-collapse-body > :first-child{ margin-top:.2em; }
.v2-collapse-body > :last-child{ margin-bottom:0; }
.v2-prose .v2-collapse-body h2{ font-size:var(--v2-fs-18); margin:1.4em 0 .5em; }
.v2-prose .v2-collapse-body h3{ font-size:var(--v2-fs-16); }

/* کارت‌های محصول ([arcopet_product_carousel]) */
.v2-rail{ margin:1.5em 0; }
.v2-rail-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.v2-prose .v2-rail-title{ margin:0; font-size:var(--v2-fs-18); font-weight:800; }
.v2-prose a.v2-rail-all{
  display:inline-flex; align-items:center; gap:6px; min-height:44px; flex:none;
  font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-text); text-decoration:none;
}
.v2-prose a.v2-rail-all:hover{ color:var(--v2-link); }
.v2-rail-all .v2-icon{ width:18px; height:18px; transition:transform .2s; }
.v2-rail-all:hover .v2-icon{ transform:translateX(-3px); }
.v2-rail-body{ position:relative; }
.v2-prose .v2-rail-track{
  display:flex; gap:12px; list-style:none; margin:0; padding:2px 2px 10px;
  overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain;
}
.v2-rail-track::-webkit-scrollbar{ display:none; }
.v2-prose .v2-rail-card{ flex:none; width:152px; margin:0; padding:0; scroll-snap-align:start; }
.v2-prose .v2-rail-card::before{ display:none; }
.v2-prose a.v2-rail-link{
  display:grid; gap:10px; height:100%; padding:8px 8px 14px;
  border:1px solid var(--v2-border); border-radius:var(--v2-radius-l);
  background:var(--v2-surface); color:var(--v2-text); text-decoration:none;
  transition:border-color .15s, box-shadow .15s;
}
.v2-prose a.v2-rail-link:hover{ border-color:var(--v2-border-strong); box-shadow:var(--v2-shadow-raised); color:var(--v2-text); }
.v2-rail-img{ position:relative; display:block; aspect-ratio:1; border-radius:10px; overflow:hidden; background:var(--v2-white); }
.v2-prose .v2-rail-img img{ display:block; width:100%; height:100%; max-height:none; object-fit:contain; border-radius:0; }
.v2-rail-off{
  position:absolute; top:6px; inset-inline-start:6px; padding:0 8px; border-radius:999px;
  background:var(--v2-brand); color:var(--v2-on-brand); font-size:var(--v2-fs-14); font-weight:700; line-height:1.7;
}
.v2-rail-name{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  min-height:calc(2 * 1.7em); padding-inline:4px; font-size:var(--v2-fs-14); font-weight:500; line-height:1.7;
}
.v2-rail-price{ padding-inline:4px; font-size:var(--v2-fs-14); color:var(--v2-text-subtle); line-height:1.6; }
.v2-rail-price del{ display:block; font-size:var(--v2-fs-14); opacity:.8; }
.v2-rail-price b{ color:var(--v2-text); font-size:var(--v2-fs-16); font-weight:800; margin-inline-end:2px; }
.v2-rail-nav{
  display:none; position:absolute; top:calc(50% - 26px); z-index:2;
  place-items:center; width:42px; height:42px; border-radius:50%;
  background:var(--v2-surface); color:var(--v2-text);
  box-shadow:var(--v2-shadow-raised); border:1px solid var(--v2-border);
}
.v2-rail-nav:hover{ background:var(--v2-surface-subtle); }
.v2-rail-prev{ right:-8px; }
.v2-rail-next{ left:-8px; }
.v2-rail-prev .v2-icon{ transform:scaleX(-1); }

/* نسخه‌ی صوتی مقاله ([article_audio]) — کلاس‌ها از نسخه‌ی قبلی */
.v2-prose .british-article-audio{
  margin:1.2em 0; padding:16px; border-radius:var(--v2-radius-l);
  background:var(--v2-surface-subtle); text-align:start;
}
.v2-prose .british-article-audio__title{ margin:0 0 4px; font-size:var(--v2-fs-16); font-weight:700; line-height:1.7; color:var(--v2-text); }
.v2-prose .british-article-audio__notice,
.v2-prose .british-article-audio__meta,
.v2-prose .british-article-audio__resume{ margin:4px 0 0; font-size:var(--v2-fs-14); line-height:1.8; color:var(--v2-text-subtle); }
.v2-prose .british-article-audio__player{ display:block; width:100%; margin-top:10px; }
.v2-shortcode-error{ padding:8px 12px; border-radius:var(--v2-radius-s); background:var(--v2-tint); color:var(--v2-error); font-size:var(--v2-fs-14); }

/* صفحه‌بندی داخل مقاله */
.v2-page-links{ display:flex; gap:8px; margin-top:20px; font-weight:700; }

/* ---------- انتهای مقاله: برچسب‌ها و آمار ---------- */
.v2-post-end{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px;
  margin-top:26px; padding-top:14px; border-top:1px solid var(--v2-border);
}
.v2-hashtags{ display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.v2-hashtags a{
  display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:4px 12px; border-radius:8px;
  background:var(--v2-surface-subtle); color:var(--v2-text);
  font-size:var(--v2-fs-14); font-weight:500; transition:background-color .15s;
}
.v2-hashtags a:hover{ background:var(--v2-surface-hover); }
.v2-hashtags .v2-icon{ width:16px; height:16px; color:var(--v2-text-subtle); }
.v2-post-stats{ display:flex; align-items:center; gap:16px; order:-1; width:100%; }
.v2-stat{ display:inline-flex; align-items:center; gap:6px; min-height:36px; font-size:var(--v2-fs-14); color:var(--v2-text-subtle); }
.v2-stat:hover{ color:var(--v2-text); text-decoration:underline; text-underline-offset:4px; }
.v2-stat .v2-icon{ width:18px; height:18px; }
.v2-stat strong{ font-weight:700; color:var(--v2-text); }

/* ---------- نویسنده ---------- */
.v2-author-box{
  position:relative; margin-top:76px; padding:64px 20px 24px; border-radius:var(--v2-radius-xl);
  background:var(--v2-tint); text-align:center;
}
.v2-author-box.no-photo{ margin-top:36px; padding-top:26px; }
.v2-author-photo{
  position:absolute; top:0; inset-inline-start:50%; width:96px; height:96px; border-radius:50%; overflow:hidden;
  transform:translate(50%,-50%); border:3px solid var(--v2-brand); background:var(--v2-avatar-bg);
}
.v2-author-photo img{ display:block; width:100%; height:100%; object-fit:cover; }
.v2-author-name{ margin:0 0 6px; font-size:var(--v2-fs-22); font-weight:700; line-height:1.6; color:var(--v2-heading); }
.v2-author-body{ display:grid; gap:8px; max-width:580px; margin-inline:auto; }
.v2-author-body p{ margin:0; font-size:var(--v2-fs-16); line-height:2; }
.v2-author-more{
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; margin-top:6px;
  font-size:var(--v2-fs-14); font-weight:500; color:var(--v2-link);
}
.v2-author-more .v2-icon{ width:16px; height:16px; transition:transform .2s; }
.v2-author-more:hover{ color:var(--v2-link-hover); text-decoration:underline; text-underline-offset:4px; }
.v2-author-more:hover .v2-icon{ transform:translateX(-3px); }

/* ---------- مقالات مرتبط ---------- */
.v2-related{ margin-top:44px; padding-top:32px; border-top:1px solid var(--v2-border); }
.v2-related-head{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 12px; margin-bottom:16px; }
.v2-related-head h2{ margin:0; font-size:var(--v2-fs-22); font-weight:800; color:var(--v2-heading); }
.v2-related-head span{ font-size:var(--v2-fs-14); color:var(--v2-text-subtle); }
.v2-related-grid{ display:grid; gap:16px; list-style:none; margin:0; padding:0; }
.v2-related-card{ display:grid; grid-template-columns:116px minmax(0,1fr); gap:14px; align-items:center; }
.v2-related-thumb{ display:block; border-radius:14px; overflow:hidden; aspect-ratio:4 / 3; background:var(--v2-surface-subtle); }
.v2-related-thumb img{ display:block; width:100%; height:100%; object-fit:cover; }
.v2-related-body h3{ margin:0 0 6px; font-size:var(--v2-fs-16); font-weight:700; line-height:1.75; }
.v2-related-body h3 a:hover{ color:var(--v2-link); }
.v2-related-meta{ display:flex; flex-wrap:wrap; gap:0 12px; font-size:var(--v2-fs-14); color:var(--v2-text-subtle); }

/* ---------- امتیاز به مقاله ---------- */
.v2-rating{ max-width:var(--v2-article); margin-inline:auto; padding-block:8px 28px; }
.v2-rating-card{
  display:grid; justify-items:center; gap:4px; text-align:center;
  padding:24px 16px 20px; border-radius:var(--v2-radius-xl); background:var(--v2-surface-subtle);
}
.v2-rating-title{ margin:0; font-size:var(--v2-fs-18); font-weight:800; line-height:1.7; }
.v2-rating-sub{ margin:0; font-size:var(--v2-fs-14); color:var(--v2-text-subtle); }
.v2-rating-stars{ display:flex; justify-content:center; gap:2px; margin-top:12px; }
.v2-rating-stars button{
  display:grid; place-items:center; width:48px; height:48px; border-radius:50%;
  transition:transform .12s, background-color .15s;
}
.v2-rating-stars button:hover{ transform:scale(1.08); }
.v2-rating-stars button[disabled]{ cursor:default; transform:none; }
.v2-rating-stars .v2-icon{ width:34px; height:34px; fill:none; stroke:var(--v2-star-empty); stroke-width:1.6; stroke-linejoin:round; transition:fill .12s, stroke .12s; }
.v2-rating-stars button.is-on .v2-icon{ fill:var(--v2-brand); stroke:var(--v2-brand); }
.v2-rating-reason{ display:grid; gap:8px; width:100%; max-width:520px; margin-top:12px; text-align:start; }
.v2-rating-reason[hidden]{ display:none; }
.v2-rating-reason label{ font-size:var(--v2-fs-14); font-weight:700; }
.v2-rating-reason textarea{
  display:block; width:100%; min-height:96px; padding:10px 12px; resize:vertical;
  background:var(--v2-surface); color:var(--v2-text);
  border:1px solid var(--v2-border); border-radius:12px;
  font:inherit; font-size:var(--v2-fs-16); line-height:1.8;
}
.v2-rating-reason textarea:focus{ outline:0; border-color:var(--v2-brand); box-shadow:0 0 0 3px var(--v2-brand-ring); }
.v2-rating-reason textarea[aria-invalid="true"]{ border-color:var(--v2-error); }
.v2-rating-hint{ margin:0; font-size:var(--v2-fs-14); line-height:1.8; color:var(--v2-text-subtle); }
.v2-rating-actions{ display:flex; gap:10px; }
.v2-hp{ position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); opacity:0; }
.v2-rating-status{ margin:6px 0 0; min-height:1.8em; font-size:var(--v2-fs-14); font-weight:500; line-height:1.8; }
.v2-rating-status.is-error{ color:var(--v2-error); }

/* ---------- تبلت و دسکتاپ ---------- */
@media (min-width:768px){
  .v2-post-wrap{ padding-block:16px 32px; }
  .v2-post-title{ margin:16px 0 12px; text-wrap:wrap; }
  .v2-post-meta-main{ gap:0 14px; }
  .v2-post-meta-main li + li::before{ margin-inline-end:8px; }
  .v2-post-meta-main .v2-icon{ display:block; }
  .v2-share-desktop{ display:flex; }
  .v2-share-mobile{ display:none; }
  .v2-prose h2{ font-size:var(--v2-fs-28); }
  .v2-prose h3{ font-size:var(--v2-fs-22); }
  .v2-prose .v2-rail-title{ font-size:var(--v2-fs-22); }
  .v2-prose .v2-rail-card{ width:calc((100% - 36px) / 4); min-width:164px; }
  .v2-rail-nav{ display:grid; }
  .v2-post-stats{ order:0; width:auto; }
  .v2-author-box{ margin-top:84px; padding:68px 32px 28px; }
  .v2-author-box.no-photo{ margin-top:44px; padding-top:30px; }
  .v2-author-photo{ width:104px; height:104px; }
  .v2-related-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
  .v2-related-card{ grid-template-columns:1fr; gap:12px; align-items:start; }
  .v2-related-thumb{ aspect-ratio:16 / 9; }
}
@media (max-width:768px){
.v2-prose table{width:100%!important;}
}