/* Homework page: question layout (screen), answer controls, results. Print layout comes from print.css. */
.hw-main { max-width: 900px; margin: 0 auto; padding: 32px 32px 60px; background: #fff; }
.hw-main header { border-top: 5px solid #25685e; padding-top: 18px; margin-bottom: 18px; }
.hw-main .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1.6px; color: #40685f; }
.hw-main h1 { font-size: 34px; line-height: 1.15; margin: 8px 0; }
.hw-main h2 { font-size: 23px; margin: 0 0 12px; }
.hw-main h3 { font-size: 18px; margin: 0 0 8px; }
.hw-main section { margin: 28px 0 0; padding: 22px 0 0; border-top: 2px solid #d8e4df; }
.hw-main .hw-intro { border-top: 0; padding-top: 0; margin-top: 0; }
.hz-print-name { display: none; }
.task { margin: 20px 0 26px; }
.instruction { font-weight: 650; margin: 6px 0; }
.passage { font: 18px/1.7 Georgia, "Times New Roman", serif; margin: 10px 0; white-space: pre-line; }
.gloss { font-size: 14px; color: #50635c; margin: 4px 0 8px; }
.choices { list-style-type: upper-alpha; padding-left: 34px; margin: 10px 0; }
.choices li { margin: 8px 0; padding: 9px 12px; border: 1px solid #d3e0da; border-radius: 10px; background: #fbfdfc; }
/* Choices of a few words (longest up to 20 characters) sit side by side, on screen and in print: all four in one row where
   the width allows, and a whole choice moves to the next row where it does not (narrow print columns, phones).
   Longer choices stay one per line. */
.choices.choices-row { display: flex; flex-wrap: wrap; gap: 8px 3%; padding-left: 0; list-style-position: inside; }
.choices.choices-row li { margin: 0; flex: 0 0 auto; min-width: 22%; white-space: nowrap; }
.hw-choice { cursor: pointer; }
.hw-choice:hover { border-color: #25685e; }
.hw-choice:focus-visible { outline: 3px solid #d39a2b; outline-offset: 2px; }
.hw-choice.is-selected { border-color: #25685e; background: #e5f1ec; font-weight: 650; box-shadow: inset 4px 0 0 #25685e; }
.hw-locked .hw-choice { cursor: default; }
.hw-choice.is-key { border-color: #1f6b43; background: #e3f2e8; box-shadow: inset 4px 0 0 #1f6b43; }
.hw-choice.is-miss { border-color: #9a2f2f; background: #f8e7e5; box-shadow: inset 4px 0 0 #9a2f2f; }
.hw-mark { margin: 6px 0 0; font-size: 15px; }
.is-correct .hw-mark { color: #1f6b43; }
.is-wrong .hw-mark { color: #9a2f2f; }
.hw-text { display: block; width: 100%; margin: 10px 0 0; padding: 10px 12px; border: 1px solid #c8d6cf; border-radius: 10px; font: 16px/1.5 inherit; font-family: inherit; resize: vertical; }
.workspace { display: none; }
.hw-answer-bar { position: sticky; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 26px -32px 0; padding: 12px 32px; background: rgba(255, 255, 255, .96); border-top: 1px solid #d3e0da; box-shadow: 0 -6px 18px rgba(20, 40, 40, .06); }
.hw-answer-bar [data-status] { color: #50635c; font-size: 14px; }
.hw-result { margin: 12px 0 0; padding: 12px 16px; border-radius: 10px; background: #f3f7f5; }
.hw-result:empty { display: none; }
@media (max-width: 600px) {
  .hw-main { padding: 22px 16px 40px; }
  .hw-main h1 { font-size: 28px; }
  .passage { font-size: 17px; }
  .hw-answer-bar { margin: 20px -16px 0; padding: 10px 16px; }
}
@media print {
  .hz-print-name { display: block !important; }
  .choices li, .hw-choice { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 0 0 2pt !important; font-weight: 400 !important; }
  .hw-text, .hw-mark, .hw-answer-bar, .hw-result { display: none !important; }
}
