/**
 * تک‌نوشته: هیرو دو ستونه، چیدمان (محتوا چپ / سایدبار راست)، سایدبار چسبان.
 */

/* sticky و چیدمان LTR برای ستون‌های گرید؛ در موبایل clip افقی برای جلوگیری از بیرون‌زدن جدول */
main.single-post.site-main {
  overflow-x: visible;
}

@media (max-width: 768px) {
  main.single-post.site-main {
    overflow-x: clip;
  }
}

/* بردکرامب تک‌نوشته — خارج از هیرو؛ یک خط + اسکرول افقی بدون نوار اسکرول */
.single-post__breadcrumb {
  margin-block-end: var(--space-3);
  padding: var(--space-2) 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.single-post__breadcrumb::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.single-post__breadcrumb .single-post__breadcrumb-inner,
.single-post__breadcrumb .netron-breadcrumb-wrap.single-post__breadcrumb-inner {
  margin: 0;
  width: max-content;
  max-width: none;
  margin-bottom: 0;
}

.single-post__breadcrumb .netron-breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  width: max-content;
}

.single-post__breadcrumb .netron-breadcrumb__list {
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

.single-post__breadcrumb .netron-breadcrumb__item {
  flex-shrink: 0;
}

.single-post__breadcrumb .netron-breadcrumb__link {
  white-space: nowrap;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.single-post__breadcrumb .netron-breadcrumb__link:hover,
.single-post__breadcrumb .netron-breadcrumb__link:focus-visible {
  color: var(--color-primary);
  outline: none;
}

.single-post__breadcrumb .netron-breadcrumb__current {
  white-space: nowrap;
  color: var(--color-text-secondary);
}

.single-post__breadcrumb .netron-breadcrumb__sep {
  color: color-mix(in srgb, var(--color-text-secondary) 55%, transparent);
  margin-inline: 0.2rem;
}

/* —— Hero تک‌نوشته (بدون بردکرامب) —— */
.hero-section--single {
  margin-block-end: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1rem, 2vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    color-mix(in srgb, var(--color-primary) 8%, #f8fafc) 45%,
    #f1f5f9 100%
  );
}

.hero-section--single .hero-section__inner {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(200px, 36%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(1rem, 3vw, 2rem);
  row-gap: 0;
  align-items: stretch;
}

.hero-section__media-wrap {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-section--single .hero-section__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-background) 85%, var(--color-divider));
}

.hero-section--single .hero-section__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-primary) 10%, var(--color-background)) 0%,
    var(--color-divider) 100%
  );
}

.hero-section__placeholder-label {
  margin: 0;
  max-width: 16rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.hero-section--single .hero-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section__lead {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: stretch;
  min-width: 0;
  min-height: 0;
}

.hero-section--single .hero-section__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.35;
  color: var(--color-text-heading);
}

.hero-section--single .hero-section__excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-body);
}

/* هیروی آرشیو دسته: توضیحات کامل + بدون نوار اشتراک */
.hero-section--category .hero-section__lead {
  align-self: start;
}

.hero-section--category .hero-section__excerpt,
.hero-section--category .hero-section__excerpt--category {
  flex-shrink: 0;
  min-height: 0;
}

.hero-section--category .hero-section__excerpt--category > *:first-child {
  margin-top: 0;
}

.hero-section--category .hero-section__excerpt--category > *:last-child {
  margin-bottom: 0;
}

.hero-section__bottom-row--category {
  justify-content: flex-start;
}

.hero-section__bottom-row {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
  min-width: 0;
  position: relative;
  isolation: isolate;
}

.hero-section__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3) var(--space-4);
  /* flex-basis: 0 گاهی در ردیف + RTL عرض عملی صفر می‌دهد و متن زیر نوار اشتراک می‌رود */
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.hero-section__meta::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hero-section__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.hero-section__share-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-section__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-divider));
  background: color-mix(in srgb, var(--color-primary) 9%, #fff);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hero-section__share-link img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero-section__share-link:hover,
.hero-section__share-link:focus-visible {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-divider));
  outline: none;
  transform: translateY(-1px);
}

.hero-section__meta-icon-img {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: auto;
  object-fit: contain;
}

.hero-section__meta-item:not(.hero-section__meta-item--update) .hero-section__meta-text {
  color: var(--color-text-body);
}

.hero-section__meta-item--update .hero-section__meta-text {
  color: var(--color-success);
}

.hero-section__meta-text {
  color: inherit;
}

@media (max-width: 768px) {
  .hero-section__meta-item {
    font-size: 1rem;
  }

  /* یک ستون: عنوان/لید → متا → تصویر تمام‌عرض → اشتراک تمام‌عرض زیر تصویر */
  .hero-section--single .hero-section__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(0.875rem, 3vw, 1.25rem);
    grid-template-columns: unset;
    grid-template-rows: unset;
  }

  .hero-section__bottom-row {
    display: contents;
  }

  .hero-section__lead {
    order: 1;
    grid-column: unset;
    grid-row: unset;
  }

  .hero-section__meta {
    order: 2;
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid var(--color-divider);
    padding-top: var(--space-3);
    margin-top: 0;
    margin-bottom: 16px;
  }

  .hero-section__media-wrap {
    order: 3;
    grid-column: unset;
    grid-row: unset;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .hero-section__share-bar {
    order: 4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    gap: var(--space-2);
    padding-top: var(--space-3);
    margin-top: 0;
    border-top: 1px solid var(--color-divider);
  }

  .hero-section--single .hero-section__share-link {
    flex: 1 1 0;
    min-width: 44px;
    max-width: none;
    width: auto;
  }
}

/* —— کانتینر و گرید مقاله —— */
.single-post-container {
  width: 100%;
  min-width: 0;
}

.single-post-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: stretch;
}

@media (min-width: 960px) {
  .single-post-layout {
    direction: ltr;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: var(--space-5);
    align-items: start;
  }

  .single-post-layout .main-content,
  .single-post-layout .sidebar {
    direction: rtl;
  }

  .single-post-layout .main-content {
    grid-column: 1;
    grid-row: 1;
  }

  .single-post-layout .single-post-layout__comments {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .single-post-layout .sidebar {
    grid-column: 2;
    grid-row: 1 / -1;
  }
}

.single-post .main-content {
  min-width: 0;
}

.single-post .sidebar {
  min-width: 0;
}

@media (min-width: 960px) {
  .single-post .sidebar {
    position: sticky;
    top: calc(var(--header-bar-height, 64px) + var(--space-4));
    align-self: start;
  }
}

.single-post .entry-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-body);
  min-width: 0;
}

/* جدول در تک‌نوشته: جهت اسکرول RTL، separate برای sticky پایدار، محدود به عرض ستون */
.single-post .entry-content .table-container,
.single-post .entry-content figure.wp-block-table {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  direction: rtl;
}

.single-post .entry-content .table-container table,
.single-post .entry-content figure.wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.single-post .entry-content a:not(.entry-toc__link),
.single-post .entry-content a:not(.entry-toc__link):visited,
.single-post .page-links a,
.single-post .page-links a:visited,
.single-post .post-comments a,
.single-post .post-comments a:visited {
  color: var(--color-primary);
  text-decoration: none;
}

.single-post .entry-content a:not(.entry-toc__link):hover,
.single-post .page-links a:hover,
.single-post .post-comments a:hover {
  text-decoration: none;
  opacity: 0.88;
}

.single-post .entry-content a:not(.entry-toc__link):focus-visible,
.single-post .page-links a:focus-visible,
.single-post .post-comments a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 2px;
}

.single-post .entry-content img {
  border-radius: 12px;
}

/* فهرست h2 — ابتدای محتوا (شیشهٔ سفید هماهنگ با فرم سایدبار) */
.single-post .entry-toc {
  margin: 0 0 var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-glass-stroke);
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.single-post .entry-toc__details {
  padding: 0;
}

.single-post .entry-toc__summary {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--color-text-heading);
  user-select: none;
}

.single-post .entry-toc__summary::-webkit-details-marker {
  display: none;
}

.single-post .entry-toc__summary::marker {
  content: "";
}

.single-post .entry-toc__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  width: 22px;
}

.single-post .entry-toc__burger span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--color-text-secondary);
}

.single-post .entry-toc__label {
  flex: 1;
  min-width: 0;
  text-align: right;
}

/* بسته: ▼  |  باز: ▲ — مثلث CSS تا جهت در RTL برعکس نشود */
.single-post .entry-toc__chevron {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-inline-start: 0.25rem;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--color-text-secondary);
  transform: rotate(0deg);
  translate: 0 0.12rem;
  transform-origin: 50% 40%;
  transition: transform 0.2s ease, translate 0.2s ease;
}

.single-post .entry-toc__details[open] .entry-toc__chevron {
  transform: rotate(180deg);
  translate: 0 -0.04rem;
}

.single-post .entry-toc__list {
  margin: 0;
  padding: 0 var(--space-4) var(--space-4);
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--color-text-secondary) 14%, transparent);
}

.single-post .entry-toc__item {
  margin: 0;
  padding: 0;
}

.single-post .entry-toc__item + .entry-toc__item {
  margin-top: var(--space-2);
}

.single-post .entry-toc__link,
.single-post .entry-toc__link:visited {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.single-post .entry-toc__link:hover {
  color: var(--color-text-body);
  background: color-mix(in srgb, var(--color-text-secondary) 12%, transparent);
}

.single-post .entry-toc__link:focus-visible {
  color: var(--color-text-body);
  background: color-mix(in srgb, var(--color-text-secondary) 12%, transparent);
  outline: 2px solid color-mix(in srgb, var(--color-text-secondary) 45%, transparent);
  outline-offset: 2px;
}

.single-post .entry-content h2[id] {
  scroll-margin-top: calc(var(--header-bar-height, 64px) + var(--space-3));
}

.single-post .entry-content > *:first-child {
  margin-top: 0;
}

/* نقل‌قول شاخص (متاباکس نوشته) */
.single-post .post-pull-quote {
  margin: var(--space-5) 0;
  box-sizing: border-box;
}

.single-post .post-pull-quote__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: 12px;
  border: 2px solid #ffffff;
  background-color: #eef1f6;
}

.single-post .post-pull-quote__icon {
  flex-shrink: 0;
  line-height: 0;
}

.single-post .post-pull-quote__icon img {
  display: block;
  width: 31px;
  height: auto;
  border-radius: 0;
}

.single-post .post-pull-quote__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-heading);
  text-align: start;
}

.single-post .post-pull-quote__text > :first-child {
  margin-top: 0;
}

.single-post .post-pull-quote__text > :last-child {
  margin-bottom: 0;
}

/* —— سایدبار —— */
.sidebar-single {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sidebar-cta {
  box-sizing: border-box;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  padding: var(--space-5);
  color: #f1f5f9;
  background: linear-gradient(160deg, #0f172a 0%, #020617 55%, #0f172a 100%);
}

.sidebar-cta__head {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.sidebar-cta__icon-wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, #fff 12%, transparent);
}

.sidebar-cta__icon-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sidebar-cta__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  color: #f8fafc;
}

.sidebar-cta__text {
  margin: 0 0 var(--space-4);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.sidebar-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  font: inherit;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sidebar-cta__button:hover,
.sidebar-cta__button:focus-visible {
  background: #f1f5f9;
  outline: none;
  transform: translateY(-1px);
}

/* —— فرم لید (کارت شیشه‌ای هماهنگ با تم) —— */
.lead-form-card {
  box-sizing: border-box;
  border: 1px solid var(--color-glass-stroke);
  border-radius: var(--radius-lg);
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-5);
}

.lead-form-card__head {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.lead-form-card__avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lead-form-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 0.75rem;
  color: #1e3a8a;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.lead-form-card__avatar + .lead-form-card__avatar {
  margin-inline-start: -0.65rem;
}

.lead-form-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text-heading);
}

.lead-form__note {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}

.lead-form__note--success {
  border: 1px solid color-mix(in srgb, #2e7d32 45%, var(--color-divider));
  color: var(--color-text-body);
  background: color-mix(in srgb, #2e7d32 10%, transparent);
}

.lead-form__note--error {
  border: 1px solid color-mix(in srgb, #c62828 45%, var(--color-divider));
  color: var(--color-text-body);
  background: color-mix(in srgb, #c62828 8%, transparent);
}

.lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.lead-form__input,
.lead-form__select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text-body);
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lead-form__input--phone {
  direction: rtl;
  text-align: right;
}

.lead-form__input--phone::placeholder {
  direction: rtl;
  text-align: right;
}

.lead-form__select {
  appearance: none;
  padding-inline-end: 2.25rem;
  cursor: pointer;
}

.lead-form__select-wrap {
  position: relative;
}

.lead-form__select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.85rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.35rem;
  border-inline-end: 2px solid var(--color-text-secondary);
  border-block-end: 2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  pointer-events: none;
}

.lead-form__input::placeholder {
  color: color-mix(in srgb, var(--color-text-body) 55%, transparent);
}

.lead-form__input:focus-visible,
.lead-form__select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-divider));
  background-color: color-mix(in srgb, #fff 88%, transparent);
}

.lead-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead-form {
  position: relative;
}

.lead-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-4);
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font: inherit;
  cursor: pointer;
  color: #fff;
  background: var(--color-primary);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.lead-form__button:hover,
.lead-form__button:focus-visible {
  opacity: 0.95;
  outline: none;
}

.lead-form__button:active {
  transform: scale(0.99);
}

/* —— آزمون درک مطلب (انتهای مقاله) —— */
.single-post .post-reading-quiz {
  margin-block-start: var(--space-6);
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-glass-stroke);
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.single-post .post-reading-quiz__title {
  margin: 0 0 var(--space-4);
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text-heading);
}

.single-post .post-reading-quiz__progress-head {
  margin: 0 0 var(--space-4);
}

.single-post .post-reading-quiz__progress {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: #e8ecf1;
  overflow: hidden;
}

.single-post .post-reading-quiz__progress-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--quiz-p, 25%);
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.single-post .post-reading-quiz__counter {
  margin: var(--space-2) 0 0;
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.single-post .post-reading-quiz__panel[hidden] {
  display: none !important;
}

.single-post .post-reading-quiz__question {
  margin: 0 0 var(--space-3);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-heading);
}

.single-post .post-reading-quiz__toggle {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0 0 var(--space-3);
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
}

.single-post .post-reading-quiz__toggle:hover,
.single-post .post-reading-quiz__toggle:focus-visible {
  text-decoration: underline;
  outline: none;
}

.single-post .post-reading-quiz__toggle[aria-expanded="false"] .post-reading-quiz__toggle-text--hide,
.single-post .post-reading-quiz__toggle[aria-expanded="true"] .post-reading-quiz__toggle-text--show {
  display: none;
}

.single-post .post-reading-quiz__toggle[aria-expanded="true"] .post-reading-quiz__toggle-text--hide {
  display: inline;
}

.single-post .post-reading-quiz__toggle-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-inline-start: 0.25rem;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-primary);
  transition: transform 0.2s ease;
}

.single-post .post-reading-quiz__toggle[aria-expanded="true"] .post-reading-quiz__toggle-chevron {
  transform: rotate(180deg);
}

.single-post .post-reading-quiz__answer {
  margin-bottom: var(--space-4);
}

.single-post .post-reading-quiz__answer-inner {
  padding: var(--space-4);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #fff 40%, var(--color-divider));
  background-color: #eef1f6;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text-body);
}

.single-post .post-reading-quiz__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--color-glass-stroke) 28%, transparent);
}

.single-post .post-reading-quiz__prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-glass-stroke) 45%, var(--color-divider));
  background: color-mix(in srgb, #ffffff 55%, transparent);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.single-post .post-reading-quiz__prev:hover:not(:disabled),
.single-post .post-reading-quiz__prev:focus-visible:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  outline: none;
}

.single-post .post-reading-quiz__prev:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.single-post .post-reading-quiz__prev-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.single-post .post-reading-quiz__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--color-primary);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.single-post .post-reading-quiz__next:hover:not(:disabled),
.single-post .post-reading-quiz__next:focus-visible:not(:disabled) {
  opacity: 0.95;
  outline: none;
}

.single-post .post-reading-quiz__next:active:not(:disabled) {
  transform: scale(0.99);
}

.single-post .post-reading-quiz__next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.single-post .post-reading-quiz__next-chevron {
  font-size: 1.1rem;
  line-height: 1;
}

/* —— سوالات متداول مقاله (زیر کوییز) ——
   سکشن بیرونی بدون گلس؛ گلس فقط روی هر .post-faq__card (مطابق project-architecture §۶) */
.single-post .post-faq {
  margin-block-start: var(--space-8);
  padding: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}

.single-post .post-faq__title {
  margin: 0 0 var(--space-4);
  text-align: start;
  font-size: 1.125rem;
  color: var(--color-text-heading);
}

.single-post .post-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.single-post .post-faq__card {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-glass-stroke);
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-sizing: border-box;
}

.single-post .post-faq__summary {
  direction: rtl;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--color-text-heading);
  user-select: none;
}

.single-post .post-faq__summary::-webkit-details-marker {
  display: none;
}

.single-post .post-faq__summary::marker {
  content: "";
}

.single-post .post-faq__question-text {
  flex: 1;
  min-width: 0;
  text-align: start;
  line-height: 1.55;
}

.single-post .post-faq__chevron {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--color-text-secondary);
  transition: transform 0.2s ease;
}

.single-post .post-faq__card[open] .post-faq__chevron {
  transform: rotate(180deg);
}

.single-post .post-faq__answer {
  padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.single-post .post-faq__answer-inner {
  margin: 0;
  padding-top: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  text-align: start;
}

/* ---------- دیدگاه‌ها ---------- */
.single-post .post-comments {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  direction: rtl;
  text-align: start;
}

.single-post .post-comments__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.single-post .post-comments__intro {
  min-width: 0;
}

.single-post .post-comments__title {
  margin: 0 0 var(--space-2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--color-text-heading);
}

.single-post .post-comments__count {
  color: var(--color-primary, #2563eb);
  font-weight: 700;
}

.single-post .post-comments__title-text {
  color: var(--color-text-heading);
}

.single-post .post-comments__subtitle {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.single-post .post-comments__toggle {
  flex-shrink: 0;
  margin-inline-start: auto;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--color-primary, #2563eb);
  background: var(--color-primary, #2563eb);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.single-post .post-comments__toggle:hover {
  opacity: 0.92;
}

.single-post .post-comments--form-open .post-comments__toggle[hidden] {
  display: none;
}

.single-post .post-comments__form-wrap {
  margin-bottom: var(--space-6);
}

.single-post .post-comments__form-wrap[hidden] {
  display: none;
}

.single-post .post-comments__respond {
  margin: 0;
  padding: 0;
}

.single-post .post-comments__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-glass-stroke);
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.single-post .post-comments__field {
  margin: 0;
}

.single-post .post-comments__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.single-post .post-comments__input,
.single-post .post-comments__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--color-divider);
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-text-heading);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.single-post .post-comments__textarea {
  min-height: 8rem;
  resize: vertical;
}

.single-post .post-comments__submit-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
}

.single-post .post-comments__submit {
  align-self: flex-start;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary, #2563eb);
  background: var(--color-primary, #2563eb);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.single-post .post-comments__submit:hover {
  opacity: 0.92;
}

.single-post .post-comments__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.single-post .post-comments__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.single-post .post-comments__list .children {
  margin: var(--space-3) 0 0;
  padding: 0;
  padding-inline-start: var(--space-5);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.single-post .post-comments__item {
  margin: 0;
}

.single-post .post-comments__card {
  margin: 0;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-glass-stroke);
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.single-post .post-comments__card-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.single-post .post-comments__card-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.single-post .post-comments__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.single-post .post-comments__reply-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.single-post .post-comments__author-name {
  font-size: 0.9375rem;
  color: var(--color-text-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-post .post-comments__date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.single-post .post-comments__card-body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
  word-break: break-word;
}

.single-post .post-comments__card-body p {
  margin: 0 0 0.75rem;
}

.single-post .post-comments__card-body p:last-child {
  margin-bottom: 0;
}

.single-post .post-comments .comment-navigation {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.875rem;
}

.single-post .post-comments .comment-navigation a {
  color: var(--color-primary, #2563eb);
  text-decoration: none;
}

.single-post .post-comments .comment-navigation a:hover {
  text-decoration: none;
  opacity: 0.88;
}
