/* English But Better — Homophone error detection (assets/homophone-fix.js) */
.hfx-title { font-size: 1.25rem; margin: 0 0 6px; }
.hfx-instr { margin: 0 0 4px; }
.hfx-count { margin: 0 0 14px; color: var(--text); }
.hfx-audio { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 10px 14px; background: var(--blue-light); border-radius: 12px; }
.hfx-audio-label { font-weight: 600; font-size: .92rem; }
.hfx-play { width: 40px; height: 40px; margin: 0; font-size: 1rem; flex: none; }
.hfx-seek { flex: 1; min-width: 160px; accent-color: var(--blue); cursor: pointer; }
.hfx-seek:disabled { cursor: default; opacity: .5; }
.hfx-time { font-size: .85rem; color: var(--text-light); min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.hfx-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.hfx-toggle input { width: 18px; height: 18px; margin: 0; cursor: pointer; }

.hfx-text { background: var(--white); border: 1px solid var(--gray-mid); border-radius: 12px; padding: 18px 20px; }
.hfx-p { margin: 0 0 14px; font-size: 1.08rem; line-height: 2.75; }
.hfx-p:last-child { margin-bottom: 0; }
.hfx-w { display: inline-block; padding: 0 3px; margin: 0; border-radius: 6px; cursor: pointer; line-height: inherit; -webkit-tap-highlight-color: rgba(27, 156, 216, .18); }
.hfx-w:hover { background: var(--blue-light); }
.hfx-w:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.hfx-editing { padding: 0; }
.hfx-in { font: inherit; font-size: 16px; line-height: 1.5; padding: 1px 6px; border: 2px solid var(--blue); border-radius: 8px; background: var(--white); color: var(--text); min-width: 4ch; max-width: 100%; box-sizing: content-box; outline: none; }
.hfx-in:focus { box-shadow: 0 0 0 3px rgba(27, 156, 216, .25); }

/* the user's word with the original small, above it, struck through */
.hfx-ed { ruby-position: over; }
.hfx-ed rt { font-size: .6em; line-height: 1; font-weight: 500; }
.hfx-orig { text-decoration: line-through; color: var(--text-light); }
.hfx-hide-orig .hfx-orig { visibility: hidden; }          /* hidden, but the line keeps its height */
.hfx-edited .hfx-new { color: var(--blue-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.hfx-fix { color: #1b6b3d; font-weight: 700; text-decoration: none; }

/* after "Check answers" */
.hfx-locked .hfx-w { cursor: default; }
.hfx-locked .hfx-w:hover { background: none; }
.hfx-ok { background: #E8F8EE; }
.hfx-ok .hfx-new { color: #1b6b3d; font-weight: 700; }
.hfx-bad { background: #FDECEA; }
.hfx-bad .hfx-new { color: #a8281c; font-weight: 700; }
.hfx-bad .hfx-fix { color: #a8281c; }
.hfx-miss { background: #FFF4DB; box-shadow: inset 0 -2px 0 #F5A623; }
.hfx-miss .hfx-fix { color: #9a5b00; }
.hfx-locked .hfx-hide-orig .hfx-fix, .hfx-hide-orig .hfx-fix { visibility: visible; }

.hfx-result { margin-top: 16px; }
.hfx-false { margin: 0 0 10px; font-size: .95rem; }
.hfx-table { max-width: 520px; }
.hfx-error { color: var(--red); }
@media (max-width: 560px) {
  .hfx-text { padding: 14px 12px; }
  .hfx-p { font-size: 1.02rem; line-height: 2.9; }
  .hfx-w { padding: 1px 4px; }
}
