/* ==================================================================
   學術文章版面（APA-like）
   ------------------------------------------------------------------
   只套用在 front matter 有 academic: true 的文章。
   目的：讓學術報告在網頁上保留接近 Word / APA 的閱讀節奏。
   ================================================================== */

/* 學術文章使用較寬的正文欄位，接近 A4 文章比例 */
.post--academic .post__header.wrap--narrow,
.post--academic .post__content.wrap--narrow,
.post--academic .post__nav.wrap--narrow {
  max-width: 52rem;
}

.post--academic .post__title {
  font-size: clamp(1.55rem, 1.35rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
  text-align: center;
}

/* 正文採接近 APA 的雙倍行距閱讀感 */
.post--academic .post__content {
  font-family: "Times New Roman", "Noto Serif TC", "Songti TC", "宋體", serif;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0;
}

/* APA 段落不額外增加段前段後距離；中文首行縮排兩字 */
.post--academic .post__content > * + * {
  margin-top: 0;
}

.post--academic .post__content p {
  margin: 0;
  text-align: justify;
  text-justify: inter-ideograph;
  text-indent: 2em;
  overflow-wrap: break-word;
}

/* 章節標題左對齊、粗體，不做首行縮排 */
.post--academic .post__content h2 {
  margin: 2rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0;
  text-align: left;
}

.post--academic .post__content h3 {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0;
  text-align: left;
}

/* 清單保留雙倍行距，不額外拉開每一項 */
.post--academic .post__content ul,
.post--academic .post__content ol {
  margin: 0;
  padding-left: 2.5em;
}

.post--academic .post__content li {
  line-height: 2;
}

.post--academic .post__content li + li {
  margin-top: 0;
}

/* APA 參考文獻：凸排（hanging indent） */
.post--academic .apa-references {
  margin-top: 0;
}

.post--academic .apa-references p {
  padding-left: 2em;
  text-indent: -2em;
  text-align: left;
  line-height: 2;
  overflow-wrap: anywhere;
}

/* 引文維持可讀性，但不破壞學術正文節奏 */
.post--academic .post__content blockquote {
  margin: 0;
  padding-left: 2em;
}

.post--academic .post__content blockquote p {
  text-indent: 0;
}

/* 列印時更接近正式報告 */
@media print {
  .post--academic .post__content,
  .post--academic .post__title {
    color: #000;
  }

  .post--academic .post__content {
    font-size: 12pt;
    line-height: 2;
  }

  .post--academic .post__header.wrap--narrow,
  .post--academic .post__content.wrap--narrow {
    max-width: none;
  }
}
