/* ============================================================
   typography.css — قواعد تایپوگرافی سراسری + ضدِ دوخطی
   ============================================================
   این فایل بعد از base.css لود می‌شود و قواعد زیر را اعمال می‌کند:
   - ellipsis برای عنوان‌های تک‌خطی
   - line-clamp برای زیرعنوان‌های حداکثر ۲ خطی
   - nowrap برای لیبل‌ها و دکمه‌ها
   ============================================================ */

/* ---------- عنوان‌های تک‌خطی (هرگز دوخط نمی‌شوند) ---------- */
.page-title-text,
.card-title,
.plan-card-title,
.accordion-title,
.item-title,
.contact-title,
.story-title,
.account-card-header .card-title-text,
.requests-card-header .card-title-text,
.modal-main-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- زیرعنوان‌ها: حداکثر ۲ خط، سپس سه‌نقطه ---------- */
.plan-card-subtitle,
.accordion-subtitle,
.contact-subtitle,
.story-subtitle,
.legal-card-subtitle,
.section-title-sub,
.exam-credit-subtitle,
.option-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--lh-tight);
}

/* ---------- لیبل‌های فرم: هرگز نمی‌شکنند ---------- */
.select-label,
.link-label,
.custom-label,
.example-label,
.membership-greeting strong {
  white-space: nowrap;
}

/* ---------- دکمه‌ها: هرگز دوخطی نمی‌شوند ---------- */
.btn-green,
.btn-orange,
.btn-ble,
.btn-submit-plan,
.btn-accordion-action,
.btn-health-test,
.btn-primary-custom,
.btn-check-membership,
.membership-btn,
.request-report-btn,
.story-cta-btn,
.contact-support-btn,
.plus-btn {
  white-space: nowrap;
}

/* ---------- آیتم‌های feature: خط فشرده‌تر برای شانس تک‌خطی ---------- */
.plan-feature-text,
.accordion-feature-text {
  line-height: var(--lh-snug);
}

/* ---------- بدنه‌های توضیحی: خط بازتر ---------- */
.story-intro p,
.story-block p,
.legal-block p,
.legal-intro p {
  line-height: var(--lh-loose);
}

/* ---------- متن‌های کوتاه بدنه: خط استاندارد ---------- */
.membership-text,
.copyright-text,
.request-info-item {
  line-height: var(--lh-base);
}
