/**
 * 手機版字級／行距統一（≤720px，與底部快速列 .chicing-mobile-bar 同一個斷點）。
 *
 * 業主要求：手機上同一層級的文字，全站字級與行高一致；內文一律 15px。
 * 首頁主視覺（.hero）、頁首 banner（.page-hero）與特殊設計區塊（服務磚、院所電話、
 * 最末預約 CTA、英文 kicker、按鈕）保留各自的字級，不在這裡處理。
 *
 * 全站字級只在下方 :root 這一組變數調整。本檔由 functions.php 最後載入，
 * 選擇器沿用原規則的特異度，同特異度下靠載入順序勝出（不使用 !important）。
 *
 * 層級：
 *   --m-body        內文，以及卡片／區塊的描述文字（描述＝內文，同一級）
 *   --m-card-title  卡片標題（文章卡、療程卡、醫師名、院所名、特色標題）
 *   --m-h2          區塊標題與內文 h2
 *   --m-h3          內文小標 h3
 *   --m-meta        輔助資訊（署名、職稱）
 *   ※ 備註（p.chic-fine）不另設變數：它是 min(.82em, 12.5px)，自動跟著 --m-body 縮放（見 blog-premium.css）。
 */
@media (max-width: 720px) {
  :root {
    --m-body: 15px;
    --m-body-lh: 1.7;
    --m-card-title: 17px;
    --m-card-title-lh: 1.45;
    --m-h2: 22px;
    --m-h2-lh: 1.4;
    --m-h3: 18px;
    --m-h3-lh: 1.5;
    --m-meta: 13px;
    --m-meta-lh: 1.5;
  }

  /* ---------- 內文 ---------- */
  /* 內頁容器設好字級，段落／清單一律繼承 */
  body:not(.home).chic-inner .chic-article .chic-article__body,
  body:not(.home).chic-inner .entry-content,
  body:not(.home).chic-inner .wpb_text_column,
  body.chic-inner .chicing-treatment__content,
  body.chic-inner .chicing-doctor__content,
  body.chic-inner .chicing-testimonial__content {
    font-size: var(--m-body);
    line-height: var(--m-body-lh);
  }
  body.chic-inner .chicing-treatment__content p,
  body.chic-inner .chicing-doctor__content p,
  body:not(.home).chic-inner .chic-article__body li { line-height: var(--m-body-lh); }

  /* ---------- 卡片／區塊描述（＝內文） ---------- */
  body.chic-inner .wpb-content-wrapper .vc_row.cb-cards .wpb_text_column p,
  body.chic-inner .wpb-content-wrapper .treatment-card__excerpt,
  body.home .treatment-card__excerpt,
  body.home .ribbon-sub,
  body.home .clinic-card__address,
  body.home .clinic-card__hours,
  body .ch-team__lead,
  body .chic-booking__text,
  body .doctor-card__credentials {
    font-size: var(--m-body);
    line-height: var(--m-body-lh);
  }

  /* ---------- 卡片標題 ---------- */
  body.home .post-card__title,
  body.home .treatment-card__title,
  body.home .clinic-card__name,
  body.home .ribbon-title,
  body.home .doctor-card__name,
  body.home .case-card__title,
  body.chic-inner .wpb-content-wrapper :is(.post-card__title, .treatment-card__title),
  body.chic-inner .chic-pcard__title,
  body.chic-inner .wpb-content-wrapper .vc_row.cb-cards .wpb_text_column h3,
  body .ch-doc-grid .ch-doc-card__name {
    font-size: var(--m-card-title);
    line-height: var(--m-card-title-lh);
  }

  /* ---------- 輔助資訊 ---------- */
  body.home .post-card__byline,
  body.chic-inner .wpb-content-wrapper .post-card__byline,
  body .chic-pcard__byline,
  body .ch-doc-grid .ch-doc-card__pos {
    font-size: var(--m-meta);
    line-height: var(--m-meta-lh);
  }

  /* ---------- 區塊標題／內文 h2 ---------- */
  body.home .section-head h2,
  body.home .section-head h2.vc_custom_heading,
  body.chic-inner .wpb-content-wrapper .wpb_text_column.cb-head h2,
  body:not(.home).chic-inner .chic-article__body h2,
  body.chic-inner .chic-section-title,
  body .ch-team__heading,
  body .chic-booking__title {
    font-size: var(--m-h2);
    line-height: var(--m-h2-lh);
  }

  /* ---------- 內文小標 h3 ---------- */
  /* cb-head--sm、cb-fine 的 h3 是設計標題，特異度較高，不受影響 */
  body.chic-inner .wpb-content-wrapper .wpb_text_column h3,
  body:not(.home).chic-inner .chic-article__body h3 {
    font-size: var(--m-h3);
    line-height: var(--m-h3-lh);
  }
}
