/* "Tiếng Anh giao tiếp theo chủ đề" (tieng-anh-giao-tiep.html, js/esl.js).
   The layout is css/ielts.css; this adds the listening quiz. Colours are tokens. */
body.esl-page { --lv: var(--accent); }
body.esl-page .page-title::before { content: "💬"; }

.esl-play { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.esl-big { font-size: var(--text-lg); padding-inline: var(--space-4); }
.esl-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); }
.esl-opts { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esl-opt { font: inherit; text-align: left; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); cursor: pointer; }
.esl-opt:hover:not(:disabled) { border-color: var(--accent); }
.esl-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.esl-opt:disabled { cursor: default; }
.esl-opt.is-right { border-color: var(--ok); background: var(--ok-soft); }
.esl-opt.is-wrong { border-color: var(--flag); background: var(--flag-soft); }
.esl-reveal { display: grid; gap: 4px; }
.esl-word { font-size: var(--text-xl); font-weight: 700; }
.esl-ipa { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-soft); }
.esl-sent { font-size: var(--text-lg); line-height: 1.6; margin: 0; }
.esl-blank { display: inline-block; min-width: 4.5em; border-bottom: 2px solid var(--lv); }
.esl-hit { font-weight: 700; border-bottom: 2px solid var(--ok); }
.esl-score { font-size: var(--text-2xl); font-weight: 700; }
.esl-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.esl-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.esl-words { display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 10px 0 0; padding: 0; list-style: none; }

@media (pointer: coarse), (max-width: 720px) {
  .esl-opt { min-height: 44px; }
  .esl-page details > summary { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 420px) {
  .esl-opts { grid-template-columns: 1fr; }
}
