/* wp-img-auto-sizes-contain */
img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
/* sc-tokens */
/* =========================================================
   SHIFT.camp — Design Tokens v2.0  (۲ آبان ۱۴۰۵)
   تنها منبع رنگ، اندازه، فاصله، گوشه، سایه و حرکت در کل سایت.
   مستقل از قالب (در SHIFT Core) تا با تغییر قالب از بین نرود.
   ساختار (برگرفته از Material 3):
     ۱. Reference  — مقادیر خام (فقط همین فایل)
     ۲. System     — نقش‌ها (کامپوننت‌ها فقط از این لایه)
     ۳. Component  — اندازه‌های ثابت کامپوننت‌ها
   ========================================================= */

:root {
  /* ---------- ۱. REFERENCE ---------- */
  --sc-ref-white:      #FFFFFF;
  --sc-ref-ink:        #0C0C0C;
  --sc-ref-ink-800:    #2A2C31;
  --sc-ref-gray-700:   #4A4D57;
  --sc-ref-gray-100:   #E2E4E9;
  --sc-ref-gray-50:    #F4F5F7;

  --sc-ref-blue-50:    #F2F5FF;
  --sc-ref-blue-100:   #E0E8FF;
  --sc-ref-blue-200:   #C2D1FF;
  --sc-ref-blue-300:   #94AFFF;
  --sc-ref-blue-400:   #668CFF;
  --sc-ref-blue-500:   #3366FF;
  --sc-ref-blue-600:   #2952D9;
  --sc-ref-blue-700:   #1F3FB0;
  --sc-ref-blue-800:   #172F85;
  --sc-ref-blue-900:   #0F1F5C;

  --sc-ref-green-50:   #E3F5EB;
  --sc-ref-green-500:  #00A550;
  --sc-ref-green-700:  #00753A;
  --sc-ref-red-50:     #FBEAE4;
  --sc-ref-red-500:    #D43E11;
  --sc-ref-red-700:    #A8300B;
  --sc-ref-yellow-50:  #FFFAE8;
  --sc-ref-yellow-100: #F2E4B8;
  --sc-ref-yellow-200: #FFEFA6;
  --sc-ref-yellow-500: #E0A100;
  --sc-ref-yellow-800: #7A5A00;

  --sc-ref-dark-300:   #C9CCD3;
  --sc-ref-dark-400:   #A3A7B2;
  --sc-ref-dark-500:   #6E727C;
  --sc-ref-dark-700:   #34363C;
  --sc-ref-dark-850:   #24262B;

  /* ---------- ۲. SYSTEM ---------- */
  --sc-bg:                     var(--sc-ref-white);
  --sc-surface:                var(--sc-ref-gray-50);
  --sc-ink:                    var(--sc-ref-ink);
  --sc-text:                   var(--sc-ref-ink-800);
  --sc-line:                   var(--sc-ref-gray-100);
  --sc-text-muted:             var(--sc-ref-gray-700);
  --sc-line-strong:            var(--sc-ref-ink);

  --sc-primary:                var(--sc-ref-ink);
  --sc-on-primary:             var(--sc-ref-white);
  --sc-primary-hover:          var(--sc-ref-ink-800);

  --sc-accent:                 var(--sc-ref-blue-500);
  --sc-on-accent:              var(--sc-ref-white);
  --sc-accent-hover:           var(--sc-ref-blue-600);
  --sc-accent-pressed:         var(--sc-ref-blue-700);
  --sc-accent-container:       var(--sc-ref-blue-50);
  --sc-accent-container-hover: var(--sc-ref-blue-100);
  --sc-on-accent-container:    var(--sc-ref-blue-700);
  --sc-link:                   var(--sc-ref-blue-500);
  --sc-link-hover:             var(--sc-ref-blue-700);
  --sc-focus:                  var(--sc-ref-blue-500);
  --sc-focus-halo:             var(--sc-ref-blue-100);

  --sc-success:                var(--sc-ref-green-500);
  --sc-on-success-container:    var(--sc-ref-green-700);
  --sc-success-container:      var(--sc-ref-green-50);
  --sc-error:                  var(--sc-ref-red-500);
  --sc-on-error-container:     var(--sc-ref-red-700);
  --sc-error-container:        var(--sc-ref-red-50);
  --sc-note:                   var(--sc-ref-yellow-500);
  --sc-on-note-container:      var(--sc-ref-yellow-800);
  --sc-note-container:         var(--sc-ref-yellow-50);
  --sc-note-line:              var(--sc-ref-yellow-100);
  --sc-highlight:              var(--sc-ref-yellow-200);

  --sc-inverse:                var(--sc-ref-ink);
  --sc-on-inverse:             var(--sc-ref-white);
  --sc-on-inverse-strong:      var(--sc-ref-dark-300);
  --sc-on-inverse-text:        var(--sc-ref-dark-400);
  --sc-on-inverse-muted:       var(--sc-ref-dark-500);
  --sc-inverse-line:           var(--sc-ref-dark-850);
  --sc-inverse-card:           var(--sc-ref-ink-800);
  --sc-inverse-card-line:      var(--sc-ref-dark-700);

  --sc-disabled-opacity:       .38;

  /* ---------- تایپوگرافی ---------- */
  --sc-font: "IRANYekanX", Roboto, Arial, sans-serif;
  --sc-font-latin: Roboto, Arial, sans-serif;
  --sc-font-latin-mixed: Roboto, "IRANYekanX", Arial, sans-serif;  /* رمز: ارقام لاتین، حروف فارسی (placeholder) از IRANYekanX */  /* اعداد انگلیسی: کلاس .sc-en در sc-base.css */
  --sc-weight-thin:    100;   /* براکت‌ها و برچسب‌های ظریف روی زمینه‌ی تیره */
  --sc-weight-regular: 400;
  --sc-weight-bold:    700;

  --sc-display-size:   40px;   --sc-display-lh:   1.2;
  --sc-headline-size:  24px;   --sc-headline-lh:  1.35;
  --sc-title-l-size:   21px;   --sc-title-l-lh:   1.45;
  --sc-title-m-size:   20px;   --sc-title-m-lh:   1.45;
  --sc-title-s-size:   15px;   --sc-title-s-lh:   1.5;
  --sc-body-l-size:    17px;   --sc-body-l-lh:    1.9;
  --sc-body-m-size:    15px;   --sc-body-m-lh:    1.8;
  --sc-body-s-size:    14px;   --sc-body-s-lh:    1.6;
  --sc-label-l-size:   14px;
  --sc-label-m-size:   13px;   --sc-label-m-lh:   1.5;
  --sc-label-s-size:   11.5px;
  --sc-badge-size:     10px;

  /* ---------- فاصله ---------- */
  --sc-space-1: 4px;
  --sc-space-2: 8px;
  --sc-space-3: 16px;
  --sc-space-4: 24px;
  --sc-space-5: 32px;
  --sc-space-6: 48px;
  --sc-space-7: 64px;
  --sc-space-8: 96px;
  --sc-section-gap: 56px;

  /* ---------- چیدمان ---------- */
  --sc-container: 1170px;
  --sc-measure:   720px;
  --sc-gutter:    16px;

  /* ---------- گوشه‌ها ---------- */
  --sc-radius-none: 0;
  --sc-radius-xs:   3px;
  --sc-radius-sm:   8px;
  --sc-radius-md:   12px;
  --sc-radius-pill: 999px;

  /* ---------- خطوط ---------- */
  --sc-border:        1px;
  --sc-border-strong: 1.5px;
  --sc-rule:          3px;
  --sc-bar:           4px;

  /* ---------- سایه ---------- */
  --sc-elevation-0: none;
  --sc-elevation-1: 0 6px 16px -6px rgba(12,12,12,.45);
  --sc-elevation-2: 0 16px 40px -12px rgba(12,12,12,.35);
  --sc-elevation-header: 0 3px 8px -4px rgba(12,12,12,.12); /* هدر چسبان */
  --sc-scrim:       rgba(12,12,12,.6);

  /* ---------- حرکت ---------- */
  --sc-duration-short:  150ms;
  --sc-duration-medium: 200ms;
  --sc-ease: cubic-bezier(.2, 0, 0, 1);
  --sc-transition: color var(--sc-duration-short) var(--sc-ease),
                   background-color var(--sc-duration-short) var(--sc-ease),
                   border-color var(--sc-duration-short) var(--sc-ease),
                   box-shadow var(--sc-duration-short) var(--sc-ease);

  /* ---------- ۳. COMPONENT ---------- */
  --sc-btn-h-sm:  32px;
  --sc-btn-h:     40px;
  --sc-btn-h-lg:  48px;
  --sc-btn-px:    20px;
  --sc-field-h:   44px;
  --sc-touch:     44px;
  --sc-chip-h:    26px;
  --sc-card-pad:  24px;
  --sc-fab:       40px;
  --sc-avatar:    120px;

  /* سربرگ نوشتارهای دانش‌کده (KnowHouse Header) */
  --sc-head-min-h:     200px;
  --sc-head-dot-size:  8px;

  /* نشانه‌های نوشتاری: کادر عنوان (Mark) و براکت — گوشه‌ی تیز */
  --sc-mark-bg:        var(--sc-inverse);
  --sc-on-mark:        var(--sc-on-inverse);
  --sc-mark-dark-bg:   var(--sc-ref-ink-800);
  --sc-mark-muted-bg:  var(--sc-surface);
  --sc-on-mark-muted:  var(--sc-ink);
  --sc-mark-pad-y:     6px;
  --sc-mark-pad-x:     16px;
  --sc-mark-radius:    var(--sc-radius-none);
  --sc-bracket-gap:    .35em;

  /* الگوهای صفحه: ریتم بخش‌ها، خط اتصال، هیرو */
  --sc-section-y:      64px;
  --sc-connector-w:    4px;
  --sc-connector-h:    48px;
  --sc-hero-overlap:   -24px;  /* منفی = فاصله میان تیتر و تصویر */
  --sc-hero-title-size: 35px;
  --sc-hero-art-w:     340px;
  --sc-connector-overlap: 24px;   /* خط اتصال تا داخل بخش بعدی */

  /* هدر مقاله‌ی دانش‌کده (v2.1) */
  --sc-article-title-size: 32px;  --sc-article-title-lh: 1.3;
  --sc-ah-min-h:       160px;
  --sc-ah-pad-y:       22px;
  --sc-ah-pad-x:       32px;
  --sc-ah-btn-h:       40px;    --sc-ah-btn-w: 40px;
  --sc-icon-xs:        12px;
  --sc-icon-s:         16px;
  --sc-icon-m:         18px;
  --sc-progress-h:     2px;
  --sc-dialog-w:       520px;
  --sc-tile-h:         80px;
  --sc-views-h:        22px;
  /* SHIFT 2026-11-09: پله‌ی صفر (کم‌بازدیدترین/پیش‌فرض) قبلاً فقط از ink-800 با متن dark-400
     استفاده می‌کرد که روی زمینه‌ی تقریباً سیاه هدر (--sc-inverse = ink) عملاً محو می‌شد و فقط
     لبه‌ی متن/آیکن به چشم می‌آمد، نه خودِ پرشدگی. حالا متن/آیکن به on-inverse-strong (روشن‌تر)
     و یک بوردر قابل‌دیدن (dark-500) اضافه شده تا این پله هم مثل بقیه خوانایی کامل روی سیاه داشته باشد. */
  --sc-views-0-bg: var(--sc-ref-ink-800);  --sc-views-0-fg: var(--sc-on-inverse-strong); --sc-views-0-line: var(--sc-ref-dark-500);
  --sc-views-1-bg: var(--sc-ref-white);    --sc-views-1-fg: var(--sc-ref-ink);
  --sc-views-2-bg: var(--sc-ref-blue-500); --sc-views-2-fg: var(--sc-ref-white);
  --sc-views-3-bg: var(--sc-ref-green-700);--sc-views-3-fg: var(--sc-ref-white);
  --sc-views-4-bg: var(--sc-ref-red-700);  --sc-views-4-fg: var(--sc-ref-white);
}

@media (max-width: 549px) {
  :root {
    --sc-display-size:  28px;
    --sc-headline-size: 21px;
    --sc-title-l-size:  19px;
    --sc-title-m-size:  18px;
    --sc-body-l-size:   16px;
    --sc-section-gap:   44px;
    --sc-btn-h:         44px;
    --sc-avatar:        96px;
    --sc-section-y:     48px;
    --sc-connector-overlap: 16px;
    --sc-connector-h:   32px;
    --sc-hero-overlap:  0px;
    --sc-hero-title-size: 26px;
    --sc-hero-art-w:    260px;
    --sc-head-min-h:    140px;
    --sc-article-title-size: 24px;
    --sc-article-title-lh: 1.45;
    --sc-ah-min-h:      124px;
    --sc-ah-btn-h:      32px;
    --sc-ah-btn-w:      32px;
    --sc-dialog-w:      calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --sc-duration-short: 0ms; --sc-duration-medium: 0ms; }
}

/* sc-base */
/* =========================================================
   SHIFT.camp — Base v2.0 (۲ آبان ۱۴۰۵)
   نگاشت اجزای سراسری به توکن‌ها. وابسته به sc-tokens.
   فقط var(--sc-…)؛ هیچ مقدار دستی.
   ========================================================= */

/* ---------- ۱. فوکوس سراسری ---------- */
:where(a, button, input, select, textarea, summary, [tabindex], .button):focus-visible {
  outline: 2px solid var(--sc-focus);
  outline-offset: 2px;
}

/* ---------- ۲. دکمه‌ها — پایه ---------- */
.button:not(.icon):not(.circle),
input[type="submit"],
.wp-block-button__link {
  border-radius: var(--sc-radius-sm);
  font-weight: var(--sc-weight-bold);
  transition: var(--sc-transition);
}
/* دکمه‌ی pill نداریم */
.button.round:not(.icon):not(.circle) { border-radius: var(--sc-radius-sm); }

/* Filled (اقدام اصلی) */
.button.primary:not(.is-outline):not(.is-link):not(.is-underline):hover {
  background-color: var(--sc-primary-hover);
  box-shadow: none;
}

/* Tool (جستجو/ابزار) */
.button.secondary:not(.is-outline):not(.is-link):not(.is-underline):hover {
  background-color: var(--sc-accent-hover);
  box-shadow: none;
}
.button.secondary:not(.is-outline):not(.is-link):not(.is-underline):active {
  background-color: var(--sc-accent-pressed);
}

/* Outlined */
.button.is-outline { border-width: var(--sc-border-strong); }

/* Tonal (جدید) */
.button.sc-tonal,
.is-style-sc-tonal .wp-block-button__link {
  background-color: var(--sc-accent-container);
  color: var(--sc-on-accent-container);
  border: 0;
  box-shadow: none;
}
.button.sc-tonal:hover,
.is-style-sc-tonal .wp-block-button__link:hover {
  background-color: var(--sc-accent-container-hover);
  color: var(--sc-on-accent-container);
}

/* گوتنبرگ: پیش‌فرض = Filled، Outline = Outlined */
.wp-block-button__link {
  min-height: var(--sc-btn-h);
  padding: var(--sc-space-2) var(--sc-btn-px);
  font-size: var(--sc-label-l-size);
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sc-space-2);
}
.wp-block-button:not(.is-style-outline):not(.is-style-sc-tonal) .wp-block-button__link:not(.has-background) {
  background-color: var(--sc-primary);
}
.wp-block-button:not(.is-style-outline):not(.is-style-sc-tonal) .wp-block-button__link:not(.has-text-color) {
  color: var(--sc-on-primary);
}
.wp-block-button:not(.is-style-outline):not(.is-style-sc-tonal) .wp-block-button__link:not(.has-background):hover {
  background-color: var(--sc-primary-hover);
}
.is-style-outline .wp-block-button__link {
  border: var(--sc-border-strong) solid var(--sc-ink);
  background-color: transparent;
}
.is-style-outline .wp-block-button__link:not(.has-text-color) { color: var(--sc-ink); }
.is-style-outline .wp-block-button__link:hover { background-color: var(--sc-surface); }

/* غیرفعال */
.button[disabled], .button.disabled, .button:disabled,
input[type="submit"]:disabled,
.wp-block-button__link[aria-disabled="true"] {
  opacity: var(--sc-disabled-opacity);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- ۳. فیلدها ---------- */
:is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
    input[type="number"], input[type="password"], input[type="url"], textarea, select):not(.searchform *):not(.header-search-form *):not(.betterdocs-search-field):not([class*="betterdocs"] *) {
  border-radius: var(--sc-radius-sm);
  border: var(--sc-border) solid var(--sc-line);
  background-color: var(--sc-bg);
  box-shadow: none;
  transition: var(--sc-transition);
}
:is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
    input[type="number"], input[type="password"], input[type="url"], textarea, select):not(.searchform *):not(.header-search-form *):not(.betterdocs-search-field):not([class*="betterdocs"] *):hover {
  border-color: var(--sc-text);
}
:is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
    input[type="number"], input[type="password"], input[type="url"], textarea, select):focus {
  border-color: var(--sc-focus);
  box-shadow: 0 0 0 3px var(--sc-focus-halo);
  outline: 0;
}
:is(input, textarea, select)[aria-invalid="true"]:not(#sc-none) { border-color: var(--sc-error); }

/* ---------- ۴. لینک و متن ---------- */
/* فقط لینک‌های درون متن (نه دکمه و منو) */
:is(.entry-content, .sp-wrap, .kh-test .entry-content) a:not([class]):hover { color: var(--sc-link-hover); }

mark:not([class*="has-"]), mark.has-inline-color {
  border-radius: var(--sc-radius-xs);
}

/* ---------- ۵. نشانه‌های نوشتاری (گوشه‌ی تیز = نوشتار، نه تعامل) ---------- */
/* کادر عنوان: یک کادر به اندازه‌ی متن */
.sc-mark {
  text-align: start;
  width: fit-content;
  max-width: 100%;
  background-color: var(--sc-mark-bg);
  color: var(--sc-on-mark);
  padding: var(--sc-mark-pad-y) var(--sc-mark-pad-x);
  border-radius: var(--sc-mark-radius);
}
/* هر خط کادر خودش: روی بلوک، متن داخلش کادر می‌گیرد */
.sc-mark.is-lines {
  background: none;
  padding: 0;
  width: auto;
  line-height: 1.6;
}
.sc-mark.is-lines > span,
.sc-mark.is-lines > mark,
.sc-mark.is-lines > strong {
  background-color: var(--sc-mark-bg);
  color: var(--sc-on-mark);
  padding: var(--sc-mark-pad-y) var(--sc-mark-pad-x);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: var(--sc-mark-radius);
}
.sc-mark.is-dark,
.sc-mark.is-lines.is-dark > * { background-color: var(--sc-mark-dark-bg); }
.sc-mark.is-muted,
.sc-mark.is-lines.is-muted > * { background-color: var(--sc-mark-muted-bg); color: var(--sc-on-mark-muted); }
.sc-mark.is-lines { background: none; }
:is(h1, h2, h3, h4, p).sc-mark { color: var(--sc-on-mark); }
:is(h1, h2, h3, h4, p).sc-mark.is-muted { color: var(--sc-on-mark-muted); }
:is(h1, h2, h3, h4, p).sc-mark.is-lines { color: var(--sc-on-mark); }

/* براکت: برچسب کوچک، عنوان ستون/فهرست، عنوان بخش برگه‌های برند */
.sc-bracket::before { content: "["; margin-inline-end: var(--sc-bracket-gap); font-weight: var(--sc-weight-bold); }
.sc-bracket::after  { content: "]"; margin-inline-start: var(--sc-bracket-gap); font-weight: var(--sc-weight-bold); }
.sc-eyebrow {
  font-size: var(--sc-body-s-size);
  font-weight: var(--sc-weight-bold);
  color: var(--sc-ink);
  margin-bottom: var(--sc-space-2);
}

/* ---------- ۶. چیپ و کارت (گوتنبرگ، سراسری) ---------- */
.sc-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sc-space-1);
  min-height: var(--sc-chip-h);
  padding: 0 var(--sc-space-3);
  border-radius: var(--sc-radius-pill);
  background-color: var(--sc-surface);
  color: var(--sc-text);
  font-size: var(--sc-label-s-size);
  font-weight: var(--sc-weight-bold);
  line-height: 1;
}
.sc-chip.is-active { background-color: var(--sc-primary); color: var(--sc-on-primary); }
.sc-chip.is-success { background-color: var(--sc-success-container); color: var(--sc-on-success-container); }
.sc-chip.is-error { background-color: var(--sc-error-container); color: var(--sc-on-error-container); }

.sc-card {
  background-color: var(--sc-bg);
  border: var(--sc-border) solid var(--sc-line);
  border-radius: var(--sc-radius-md);
  padding: var(--sc-card-pad);
}
.sc-card.is-interactive:hover { border-color: var(--sc-line-strong); }
.sc-card.is-muted { background-color: var(--sc-surface); border-color: transparent; }

/* ---------- ۷. دکمه روی زمینه‌ی تیره (inverse) ---------- */
/* Filled = سفید با متن ink · Outlined = حاشیه و متن سفید ۹۰٪ */
.button.white:not(.is-outline):not(.is-link) {
  background-color: var(--sc-on-inverse);
  color: var(--sc-ink) !important;
  border-color: var(--sc-on-inverse);
}
.button.white:not(.is-outline):not(.is-link):hover {
  background-color: var(--sc-on-inverse-strong);
  color: var(--sc-ink) !important;
}
.button.white.is-outline:not(#sc-none),
:is(.sc-on-inverse, .shift-footer, .sp-support) .is-style-outline .wp-block-button__link:not(#sc-none) {
  color: color-mix(in srgb, var(--sc-on-inverse) 90%, transparent) !important;
  border: var(--sc-border-strong) solid color-mix(in srgb, var(--sc-on-inverse) 90%, transparent);
  background-color: transparent;
  opacity: 1;
}
.button.white.is-outline:not(#sc-none):hover,
:is(.sc-on-inverse, .shift-footer, .sp-support) .is-style-outline .wp-block-button__link:not(#sc-none):hover {
  color: var(--sc-on-inverse) !important;
  border-color: var(--sc-on-inverse) !important;
  background-color: color-mix(in srgb, var(--sc-on-inverse) 10%, transparent) !important;
  box-shadow: none !important;
}

/* ---------- پاراگراف‌ها: justify (قاعده‌ی سایت) ---------- */
:is(.entry-content, .wp-block-post-content, .betterdocs-entry-content) p {
  text-align: justify;
  text-justify: inter-word;
}
/* ترازهای صریح گوتنبرگ حفظ شوند */
:is(.entry-content, .wp-block-post-content, .betterdocs-entry-content) p.has-text-align-center { text-align: center !important; }
:is(.entry-content, .wp-block-post-content, .betterdocs-entry-content) p.has-text-align-left { text-align: left !important; }
:is(.entry-content, .wp-block-post-content, .betterdocs-entry-content) p.has-text-align-right { text-align: right !important; }
/* بخش‌های وسط‌چین: justify با سطر آخر وسط */
.sc-center p,
.sc-panel:not(.is-wide) p {
  text-align: justify !important;
  text-align-last: center;
}

/* ---------- لیست‌ها: جلوتر و فشرده‌تر ---------- */
:is(.entry-content, .wp-block-post-content) :is(ul, ol).wp-block-list:not(:is(.accord, .note-acc) *) { padding-inline-start: var(--sc-space-5); }
:is(.entry-content, .wp-block-post-content) :is(ul, ol).wp-block-list:not(:is(.accord, .note-acc) *) > li { margin: 0 0 var(--sc-space-1); line-height: var(--sc-body-s-lh); }


/* اعداد انگلیسی در متن فارسی (IRANYekanX ارقام را فارسی می‌کشد): <span class="sc-en">V4.0.0</span> */
.sc-en{font-family:var(--sc-font-latin);direction:ltr;unicode-bidi:isolate}


/* رمز عبور: ارقام انگلیسی (نوع فیلد هنگام «نمایش رمز» به text تغییر می‌کند، پس چند راه پوشش داده شد) */
input[type="password"], input[autocomplete="current-password"], input[autocomplete="new-password"], input[name*="pass" i], input[id*="pass" i] { font-family: var(--sc-font-latin-mixed) !important; }

/* خط زیر پیش‌فرض فیلدهای Digits («نامی که از شما نمایش داده شود» و فیلدهای سفارشی ثبت‌نام): حاشیه‌ی خود فیلد کافی است */
.digits-input-wrapper { border-bottom: 0 !important; }

/* sc-patterns */
/* =========================================================
   SHIFT.camp — Patterns v2 (۳ آبان ۱۴۰۵)
   الگوهای صفحه برای گوتنبرگ: برگرفته از روح صفحه‌ی اصلی سایت.
   هیرو (تصویرسازی + تیتر کادردار)، خط اتصال، پنل، بخش. فقط var(--sc-…).
   ========================================================= */

/* ظرف صفحه و بخش */
.sc-page { max-width: var(--sc-container); margin-inline: auto; padding-inline: var(--sc-gutter); padding-bottom: var(--sc-section-y); }
.sc-page > * { margin-block: 0; }
.sc-section { padding-block: var(--sc-section-y); }
.sc-center { text-align: center; }
.sc-measure { max-width: var(--sc-measure); margin-inline: auto; }
.sc-page p:not(.sc-mark) { font-size: var(--sc-body-m-size); line-height: var(--sc-body-m-lh); color: var(--sc-text); text-align: start; }
.sc-page .sc-center > p, .sc-page p.sc-center { text-align: center; }

/* کادر عنوان وسط‌چین و هر خط یک کادر (داخل بلوک) */
.sc-mark.is-centered, .sc-center > .sc-mark:not(.is-inline) { margin-inline: auto; }
.sc-mark.is-inline {
  display: inline;
  width: auto;
  background-color: var(--sc-mark-bg);
  color: var(--sc-on-mark);
  padding: var(--sc-mark-pad-y) var(--sc-mark-pad-x);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: var(--sc-mark-radius);
  line-height: 1.75;
}

/* ---------- هیرو ---------- */
.sc-hero { padding-block: var(--sc-section-y) var(--sc-space-6); }
.sc-hero.wp-block-columns { align-items: center; gap: 0; margin-bottom: 0; }
.sc-hero .sc-hero-art img { display: block; width: 100%; max-width: var(--sc-hero-art-w); height: auto; margin-inline: auto 0; }
.sc-hero .sc-hero-text { position: relative; z-index: 1; margin-inline-start: calc(-1 * var(--sc-hero-overlap)); }
.sc-hero h1.sc-mark { font-size: var(--sc-hero-title-size); line-height: 1.4; font-weight: var(--sc-weight-bold); margin: 0; }
.sc-hero .sc-hero-sub {
  width: fit-content; margin: var(--sc-space-2) 0 0;
  font-size: var(--sc-body-m-size); font-weight: var(--sc-weight-bold); line-height: 1.6; text-align: start;
}

/* ---------- خط اتصال (میان بخش‌ها) ---------- */
.sc-connector {
  position: relative;
  z-index: 2;
  width: var(--sc-connector-w) !important;
  height: calc(var(--sc-connector-h) + var(--sc-connector-overlap)) !important;
  margin: 0 auto calc(-1 * var(--sc-connector-overlap)) !important;
  background-color: var(--sc-accent);
}
.sc-connector.is-ink { background-color: var(--sc-ink); }

/* ---------- پنل (ظرف خاکستری) ---------- */
.sc-panel {
  background-color: var(--sc-surface);
  border-radius: var(--sc-radius-md);
  padding: var(--sc-space-6) var(--sc-space-4);
}
.sc-panel > * { max-width: var(--sc-measure); margin-inline: auto; }
.sc-panel > :first-child { margin-top: 0; }
.sc-panel > :last-child { margin-bottom: 0; }
.sc-panel h2, .sc-panel h3 { text-align: center; color: var(--sc-ink); }
.sc-panel h2:not(.sc-mark) { font-size: var(--sc-title-l-size); line-height: var(--sc-title-l-lh); margin-bottom: var(--sc-space-3); }
.sc-panel h3.sc-mark { font-size: var(--sc-title-m-size); }
.sc-panel .wp-block-image { margin-inline: auto; margin-bottom: var(--sc-space-4); }
.sc-panel .wp-block-image img { max-width: 240px; height: auto; }
.sc-panel .wp-block-buttons, .sc-center .wp-block-buttons { justify-content: center; gap: var(--sc-space-2); margin-top: var(--sc-space-4); }

/* عنوان بخش */
.sc-section-title { text-align: center; margin-bottom: var(--sc-space-5); }
.sc-section-title h2.sc-mark { font-size: var(--sc-title-l-size); margin-inline: auto; }

/* ---------- موبایل ---------- */
@media (max-width: 781px) {
  .sc-hero .sc-hero-text { text-align: center; margin-top: var(--sc-space-4); }
  .sc-hero .sc-hero-sub { margin-inline: auto; }
  .sc-hero .sc-hero-art img { margin-inline: auto; }
}
@media (max-width: 549px) {
  .sc-panel { padding: var(--sc-space-6) var(--sc-space-3); }
}

/* دکمه‌های گوتنبرگ داخل الگوها = Label L */
.sc-page .wp-block-button .wp-block-button__link { font-size: var(--sc-label-l-size); }

/* پنل پهن: محتوا تمام‌عرض، تیترها راست‌چین */
.sc-panel.is-wide > * { max-width: none; }
.sc-panel.is-wide :is(h2, h3) { text-align: start; }

/* ظاهر شدن نرم از پایین — فقط تصویر هیرو، هنگام بارگذاری (نه اسکرولی) */
@keyframes sc-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.sc-rise { animation: sc-rise 900ms var(--sc-ease) both; }
@media (prefers-reduced-motion: reduce) { .sc-rise { animation: none; } }
.editor-styles-wrapper .sc-rise { animation: none; }

/* پنل و وسط‌چین: بر قانون‌های عمومی ماژول‌ها (مثل .sh-home p) غلبه کند */
/* style.css چایلد و shift-home.css با !important راست‌چین/justify می‌کنند؛ تا پاک‌سازی مرحله‌ی ۹ ناچار !important */
.sc-page .sc-panel:not(.is-wide) > * { margin-inline: auto !important; }
.sc-page .sc-center > :is(p, h1, h2, h3, h4):not(.sc-mark) { text-align: center !important; }

/* متن پاراگراف‌های پنل: justify، سطر آخر وسط (۳ آبان، به خواست مالک)؛ تیترها وسط‌چین می‌مانند */
.sc-page .sc-center > p:not(.sc-mark) { text-align: justify !important; text-align-last: start; }
/* سطر کوتاه پیش از معادله وسط بماند */
.sc-page .sc-center > p:has(+ .sh-eq) { text-align: center !important; }

/* ---------- دستاوردهای یادگیری (Learning Outcomes Box: [shift_outcomes]) ---------- */
.shift-outcomes {
  direction: rtl;
  font-family: inherit;
  border: 1.5px solid #000;
  border-radius: 4px;
  overflow: hidden;
  margin: 32px 0;
  background: var(--sc-bg);
}
.shift-outcomes__head {
  background: #000;
  color: var(--sc-on-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
}
.shift-outcomes__title,
.shift-outcomes__head p,
body.kh-test .betterdocs-entry-content .shift-outcomes__head p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--sc-on-primary) !important;
  text-align: right !important;
  line-height: 1.6 !important;
}
.shift-outcomes__tag {
  font-size: .7em;
  letter-spacing: .06em;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 99px;
  padding: 0px 10px;
  white-space: nowrap;
  color: var(--sc-on-primary);
}
.shift-outcomes ol {
  list-style: none !important;
  counter-reset: so;
  margin: 0 !important;
  padding: 6px 24px !important;
}
.shift-outcomes li {
  counter-increment: so;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  border-bottom: 1px solid #ececec !important;
  color: #222 !important;
  line-height: 1.9 !important;
  list-style: none !important;
  font-size: 14px;
}
.shift-outcomes li:last-child {
  border-bottom: 0 !important;
}
.shift-outcomes li::before {
  content: counter(so, persian) !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin-top: 4px !important;
  border-radius: 50% !important;
  background: var(--sc-accent) !important;
  color: var(--sc-on-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.shift-outcomes li::after {
  display: none !important;
}
.shift-outcomes li::marker {
  display: none !important;
  content: "" !important;
}
@media (max-width: 549px) {
  .shift-outcomes__head,
  .shift-outcomes ol {
    padding-inline: 16px !important;
  }
}


/* shift-article-bottom */
/* =========================================================
   SHIFT.camp — پایین نوشتار: نوار پدیدآورندگان، دکمه‌های پایین مقاله، پاپ‌آپ «ارسال پیام»
   SHIFT 2026-11-10: این قوانین قبلاً داخل header-buttons.css بودند (جای اشتباه)؛ بدون هیچ تغییری
   به این فایل منتقل شدند و درست بعد از header-buttons.css بار می‌شوند تا ترتیب اعمال یکسان بماند.
   ========================================================= */

/* ---------- موبایل: دکمه‌های پایین مقاله کنار هم ---------- */
@media (max-width: 849px) {
	html body .betterdocs-entry-footer.betterdocs-entry-footer {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
	html body .betterdocs-entry-footer .feedback-update-form.feedback-update-form {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 8px !important;
	}
	html body .betterdocs-entry-footer .feedback-update-form > .simplefavorite-button.simplefavorite-button,
	html body .betterdocs-entry-footer .feedback-update-form > .feedback-form.feedback-form {
		flex: 0 1 auto !important;
		margin: 0 !important;
	}
	html body .betterdocs-entry-footer .feedback-update-form > .feedback-form a,
	html body .betterdocs-entry-footer .feedback-update-form > .simplefavorite-button.simplefavorite-button {
		white-space: nowrap;
		width: auto !important;
		min-width: 0 !important;
		padding: 0 10px !important;
		gap: 4px;
		font-size: 12px !important;
	}
	html body .betterdocs-entry-footer .feedback-update-form > .update-date.update-date {
		flex: 1 0 100% !important;
		text-align: center !important;
		margin: 4px 0 0 !important;
	}
}

/* =====================================================================
   SHIFT 2026-11-05 — نوار پدیدآورندگان یک‌خطی در پایین نوشتار
   راست: «پدیدآورنده/پدیدآورندگان» + نام‌ها | چپ: «ارسال پیام مستقیم به ما» + آیکن نشان کردن
   نوار قدیمی پایین (نشان کردن، پیام، تاریخ به‌روزرسانی) جمع می‌شود؛ مدال فرم پیام سر جایش می‌ماند.
   ===================================================================== */
.shift-authors-wrapper .shift-ab-actions{margin-inline-start:auto;display:flex;align-items:center;gap:8px}
.shift-authors-wrapper .shift-ab-actions .shift-ab-msg{display:inline-flex !important;align-items:center;gap:6px;height:40px;padding:0 14px;border:1px solid var(--sc-line,var(--sc-line));border-radius:8px;background:var(--sc-bg);color:var(--sc-ink,var(--sc-ink)) !important;font-size:13px;font-weight:700;line-height:1;text-decoration:none !important;white-space:nowrap;transition:border-color .15s ease,color .15s ease}
.shift-authors-wrapper .shift-ab-actions .shift-ab-msg svg{color:var(--sc-accent,var(--sc-link));flex:0 0 auto}
.shift-authors-wrapper .shift-ab-actions .shift-ab-msg:hover,.shift-authors-wrapper .shift-ab-actions .shift-ab-msg:focus-visible{border-color:var(--sc-accent,var(--sc-accent));color:var(--sc-accent,var(--sc-link)) !important}
.shift-authors-wrapper .shift-ab-actions .shift-bookmark-btn.shift-ab-bm{width:40px !important;height:40px !important;min-width:40px !important;min-height:0 !important;padding:0 !important;margin:0 !important;border:1px solid var(--sc-line,var(--sc-line)) !important;border-radius:8px !important;background:var(--sc-bg) !important;color:var(--sc-ink,var(--sc-ink)) !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:0 !important;box-shadow:none !important}
.shift-authors-wrapper .shift-ab-actions .shift-bookmark-btn.shift-ab-bm .shift-bm-text{display:none !important}
.shift-authors-wrapper .shift-ab-actions .shift-bookmark-btn.shift-ab-bm:hover{border-color:var(--sc-accent,var(--sc-accent)) !important;color:var(--sc-accent,var(--sc-link)) !important}
.shift-authors-wrapper .shift-ab-actions .shift-bookmark-btn.shift-ab-bm.is-bookmarked,.shift-authors-wrapper .shift-ab-actions .shift-bookmark-btn.shift-ab-bm.active{color:var(--sc-accent,var(--sc-link)) !important;border-color:var(--sc-accent,var(--sc-accent)) !important}

/* تاریخ به‌روزرسانی پایین نوشتار حذف (بالای نوشتار هست) */
html body .betterdocs-entry-footer .feedback-update-form > .update-date.update-date{display:none !important}
/* وقتی نوار پدیدآورندگان هست، نوار قدیمی پایین جمع شود (مدال فرم پیام داخل همین نوار است و نباید پنهان شود) */
html body:has(.shift-ab-actions) .betterdocs-entry-footer.betterdocs-entry-footer{border:0 !important;padding:0 !important;margin:0 !important;background:none !important;box-shadow:none !important;min-height:0 !important}
html body:has(.shift-ab-actions) .betterdocs-entry-footer .feedback-update-form > .simplefavorite-button.simplefavorite-button,
html body:has(.shift-ab-actions) .betterdocs-entry-footer .feedback-form > a.feedback-form-link{display:none !important}

@media (max-width: 549px){
	.shift-authors-wrapper .shift-ab-actions{margin-inline-start:0;width:100%;justify-content:flex-end}
}

.shift-authors-wrapper .shift-ab-actions .shift-ab-msg::before{content:none !important;display:none !important}

/* =====================================================================
   SHIFT 2026-11-05 — موبایل: نوار پدیدآورندگان + پاپ‌آپ «ارسال پیام مستقیم»
   ===================================================================== */
/* پاپ‌آپ پیام: BetterDocs محتوا را ۲۰٪ پایین‌تر می‌گذارد (translateY) و در موبایل از صفحه بیرون می‌زند */
html body #betterdocs-form-modal .modal-content{transform:none !important}
@media (max-width: 849px){
	html body #betterdocs-form-modal .modal-inner{align-items:center !important;justify-content:center !important;min-height:100% !important;padding:16px !important;box-sizing:border-box !important}
	html body #betterdocs-form-modal .modal-content{width:100% !important;max-width:520px !important;max-height:calc(100dvh - 32px) !important;overflow-y:auto !important;margin:0 auto !important;padding:20px !important;border-radius:16px !important;box-sizing:border-box !important;-webkit-overflow-scrolling:touch}
	html body #betterdocs-form-modal .modal-content textarea{min-height:110px !important;height:110px !important}
}


