/*
 * WENQING HSK5 - READABILITY OVERRIDE
 * Version: 20261004-03
 * Scope: bai1.html ... bai36.html
 * Purpose: improve readability only. No LMS/scoring/content logic changes.
 */

/* Main reading passages */
.q-passage {
  font-size: 1.12rem !important;
  line-height: 1.72 !important;
  padding: .9rem 1rem !important;
  letter-spacing: .01em;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

/* Existing lessons use <br><br> between paragraphs.
   At the larger font size that creates an oversized blank line.
   Collapse only consecutive breaks inside reading passages to one normal line break. */
.q-passage br + br {
  display: none !important;
}

/* Question text and answer choices: slightly larger, still compact */
.q-text {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

.opt {
  font-size: .98rem !important;
  line-height: 1.6 !important;
}

/* Reading instructions */
.section-sub {
  font-size: .9rem;
  line-height: 1.6;
}

/* Presentation mode: prioritize long Chinese passages */
body.presentation-mode .q-passage {
  font-size: clamp(1.30rem, 1.70vw, 1.65rem) !important;
  line-height: 1.68 !important;
  padding: clamp(.9rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 1.5rem) !important;
}

body.presentation-mode .q-text {
  font-size: clamp(1.12rem, 1.55vw, 1.38rem) !important;
  line-height: 1.8 !important;
}

body.presentation-mode .opt {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem) !important;
  line-height: 1.65 !important;
}

/* Mobile: maintain a comfortable minimum size without forcing horizontal scroll */
@media (max-width: 600px) {
  .q-passage {
    font-size: 1.06rem !important;
    line-height: 1.72 !important;
    padding: .8rem .85rem !important;
  }

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

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