/*
 * WENQING HSK4 - READABILITY OVERRIDE
 * Version: 20261004-01
 * Scope: bai1.html ... bai20.html
 * Purpose: improve readability only. No LMS/scoring/content logic changes.
 */

/* Main Chinese reading passages across the different HSK4 lesson templates. */
.q-passage,
.passage,
.reading-passage {
  font-size: 1.10rem !important;
  line-height: 1.72 !important;
  letter-spacing: .01em;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

/* The oldest HSK4 template uses especially small question text. */
.q-text,
.q-text-cn,
.q-txt {
  font-size: 1.05rem !important;
  line-height: 1.68 !important;
}

/* Answer choices in the compact q-card template were only .88rem. */
.opt {
  font-size: 1rem !important;
  line-height: 1.58 !important;
}

/* Presentation mode: passages should remain the visual focus. */
body.presentation-mode .q-passage,
body.presentation-mode .passage,
body.presentation-mode .reading-passage {
  font-size: clamp(1.28rem, 1.70vw, 1.60rem) !important;
  line-height: 1.68 !important;
}

body.presentation-mode .q-text,
body.presentation-mode .q-text-cn,
body.presentation-mode .q-txt {
  font-size: clamp(1.12rem, 1.45vw, 1.34rem) !important;
  line-height: 1.72 !important;
}

/* Mobile: keep Chinese text comfortably readable without creating horizontal scroll. */
@media (max-width: 600px) {
  .q-passage,
  .passage,
  .reading-passage {
    font-size: 1.05rem !important;
    line-height: 1.70 !important;
  }

  .q-text,
  .q-text-cn,
  .q-txt,
  .opt {
    font-size: 1rem !important;
  }

  body.presentation-mode .q-passage,
  body.presentation-mode .passage,
  body.presentation-mode .reading-passage {
    font-size: 1.16rem !important;
    line-height: 1.70 !important;
  }
}