/* Inter 4.1, official distribution: https://rsms.me/inter/
   SIL Open Font License 1.1: assets/inter-OFL.txt.
   Keep the question/answer typography scoped so other cartoon highlights stay intact. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/inter-regular-4.1.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/inter-bold-4.1.woff2') format('woff2');
}

/* The existing presentation theme marks headings/buttons as !important.
   Override only question and answer text, including the paused correction. */
.question-text,
.correction-question,
.answer-reading-intro h2 {
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-synthesis: none;
}

.answer,
.answer .letter,
.correction-picked p,
.correction-answer strong,
.answer-reading-intro p,
.answer-reveal b {
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-synthesis: none;
}

/* Keep natural Inter spacing and a comfortable rhythm for wrapped questions. */
body.screen-fit .question-panel .question-text {
  line-height: 1.25;
  letter-spacing: normal;
  word-spacing: normal;
  text-wrap: balance;
}
body.screen-fit .answers {
  margin-block-start: 4px;
}

/* A separate marker column keeps every wrapped line on the same text edge.
   This also replaces the short-phone float that indented only the first line. */
body.screen-fit .answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: start;
  justify-content: normal;
  column-gap: 12px;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.35;
  letter-spacing: normal;
  word-spacing: normal;
}
body.screen-fit .answer .letter {
  position: static;
  float: none;
  margin: 0;
}
body.screen-fit .answer > span:not(.letter) {
  display: block;
  min-width: 0;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.screen-fit .correction-question {
  line-height: 1.3;
  letter-spacing: normal;
  word-spacing: normal;
  text-wrap: balance;
}
body.screen-fit .correction-picked p,
body.screen-fit .correction-answer strong {
  line-height: 1.35;
  letter-spacing: normal;
  word-spacing: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 480px) and (max-height: 740px) {
  /* A single reading column gives long options enough width without splitting
     words or letting wrapped text crowd the confirmation button. */
  body.screen-fit .answers {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(44px, 1fr));
    gap: 4px;
  }
  body.screen-fit .answer {
    column-gap: 10px;
    padding: 3px 8px;
    line-height: 1.3;
  }
}
