/* eng.css — THUD ENG's own (ENG.md): what a learner of English reads first. Linked last on every page. */

/* the answer's panel: the English is the word taught and its example is said first (eng-drill.js puts it first and
   says it when tapped); the Ukrainian is the meaning */
html[data-skin="frap"] #grammar-note .gn-en { color: var(--acc-ink) !important; }
html[data-skin="frap"] #grammar-note .gn-uk { color: var(--ink) !important; }
html[data-skin="frap"] #grammar-note .gn-exen { color: var(--ink) !important; }
html[data-skin="frap"] #grammar-note .gn-ex { color: var(--ink-3) !important; }
#grammar-note .gn-exen.eng-say { cursor: pointer; text-decoration: underline dotted color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; }
/* written for a learner of Ukrainian: its grammar (gender, aspect) and the English note about the Ukrainian word */
#grammar-note .gn-lemma, #grammar-note .gn-note { display: none !important; }

/* the Grammar's card: under a question, the sentence in Ukrainian (Wheat & Sky's [0]), the context that pins one answer */
.bk-hint { margin-top: 10px; font-size: 15px; line-height: 1.35; color: var(--ink-3); font-weight: 500; }

/* Reading (read.html): the English is what is read, so it is the line, and the Ukrainian is under it, smaller. The
   engine's block holds the Ukrainian line first and its English after (Chasen's, protected): the order is turned here. */
.al-block { display: flex; flex-direction: column; }
.al-block > .al-en { order: -1; margin: 0; width: auto; font-family: var(--quiz-font); font-weight: 400; font-size: calc(1.42rem * var(--al-scale, 1)); line-height: 1.6; color: var(--ink); }
.al-block > .al-line { margin: 2px 0 0; font-size: calc(.95rem * var(--al-scale, 1)); line-height: 1.5; color: var(--ink-2); }
.al-block.done > .al-en { color: var(--ink-3); }
.al-block.en-now > .al-en { color: var(--ink); background: var(--sel-wash); border-radius: 6px; }
/* the story's head the same way round: its English title first and large, the Ukrainian (the engine's h1) under it;
   folded while the story is scrolled, the English title stays and the Ukrainian is kept for a screen reader only */
.al-head .who > .te { order: -1; margin: 0; font-family: var(--quiz-font); font-weight: 600; font-size: 1.32rem; line-height: 1.3; color: var(--ink); }
.al-head .who > .t { margin: 3px 0 0; font-weight: 400; font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.rd-fold .al-head .who > .te { display: block; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-fold .al-head .who > .te .al-fresh { display: none; }
.rd-fold .al-head .who > .t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .al-head .who > .te { font-size: 1.18rem; } .rd-fold .al-head .who > .te { font-size: 1.05rem; } }
/* a long press on an English word looks it up (punk-read.js enWord): the line is not selected under the finger */
#al-text .al-en { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#al-text .al-en.rd-pressing { background: var(--sel-wash); border-radius: 6px; }
/* ONLY ENGLISH (ENG.md call 62; punk-read.js): the Ukrainian line laid over its block and not drawn until its line is
   tapped. Never display:none: the engine keeps the word being read in view by its rectangle. */
body.rd-en .al-block:not([data-uk]) > .al-line { position: absolute; left: 0; right: 0; top: 0; height: 100%; margin: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
body.rd-en #al-text .al-en { cursor: pointer; }
body.rd-en .al-order { display: none; }
#al-status[data-stale] { display: none; }
.rd-ku { display: none; }
body.rd-en .rd-ku { display: inline; }

/* Settings › Without a network (frap-screens.js offlineSheet): what is kept, and a bar that fills as it is kept */
.off__now { margin: 14px 0 8px; font-size: .95rem; font-weight: 600; color: var(--ink); min-height: 1.4em; }
.off__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.off__bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--acc-2); transition: width .3s ease; }

/* a word asked before the page's first touch is not heard on a phone (eng-voice.js): until a touch opens the voice, the
   round's speaker breathes, so the first Listen card is heard before it is answered */
html.eng-hush #vk-listen-btn, html.eng-hush #pronounce-btn { animation: eng-hush 1.2s ease-in-out infinite; }
@keyframes eng-hush { 50% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(var(--acc-rgb), .3); } }
@media (prefers-reduced-motion: reduce) { html.eng-hush #vk-listen-btn, html.eng-hush #pronounce-btn { animation: none; box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .55); } }

/* Review's turn (eng-turn.js): the next drill, one tap beside the hero when the button is Review's */
.def-turn { display: flex; justify-content: center; margin: 12px 0 0; }
.def-turn .chip { text-decoration: none; max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }

/* The taught word in its example (eng-hit.js, ENG.md call 35): marked by weight alone, the ink the sentence's own;
   and the line that says an example uses another word */
#grammar-note .gn-exen .eng-hit { font-weight: 800; font-style: inherit; color: inherit; }
#grammar-note .gn-other { margin-top: 2px; font-size: .78rem; line-height: 1.3; color: var(--ink-3); }
/* how the word is said, and the forms no rule gives (eng-say.js, ENG.md call 59): one quiet line under the pair. The
   transcription stands in the platform's own face: a skin's face holds no such letters, and a line set from two faces
   reads as a fault */
#grammar-note .gn-say { margin-top: 3px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
#grammar-note .gn-say .gn-ipa { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; font-weight: 400; font-style: normal; white-space: nowrap; }
#grammar-note .gn-say .gn-form { font-weight: 600; color: var(--ink); }

/* The course (eng-course.js, ENG.md call 37; THUD CORE's styles carried): the day's bar in the hero, the course's own
   under it, the pace offered down, the Debrief's line, Settings' quiet line */
.def-hero__day { display: block; height: 4px; margin-top: 14px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
html[data-look="milk"] .def-hero__day { background: rgba(0, 0, 0, .14); }
.def-hero__day::after { content: ""; display: block; height: 100%; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--ember)); }
.def-hero--course .def-hero__btn { margin-top: 14px; }
.def-course { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 0; min-height: 36px; }
.def-course__all { flex: 1 1 96px; height: 4px; border-radius: 2px; background: var(--line, rgba(128, 128, 128, .3)); overflow: hidden; }
.def-course__all i { display: block; height: 100%; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--acc-2, currentColor); }
.def-ladder { flex: 1 1 168px; min-width: 0; display: flex; gap: 6px; }   /* the list's ladder, a rung a band (ENG.md call 38) */
.def-rung { flex: 1 1 0; min-width: 0; display: grid; gap: 5px; }
.def-rung__b { font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.def-rung i { display: block; height: 4px; border-radius: 2px; background: var(--line, rgba(128, 128, 128, .3)); overflow: hidden; }
.def-rung i::after { content: ""; display: block; height: 100%; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--acc-2, currentColor); }
.def-rung.is-done i::after { transform: none; }
.def-rung.is-now .def-rung__b { color: var(--ink); }
.def-rung.is-under { opacity: .5; }
.def-course__n { flex: none; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.def-course .chip { flex: 0 1 auto; text-decoration: none; max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.def-ease { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r-row); display: grid; gap: 12px; }
.def-ease__t { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.def-ease__t b { color: var(--ink); display: block; margin-bottom: 2px; font-size: 15px; }
.def-ease__b { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 720px) { .def-ease { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 14px 16px 14px 18px; } .def-ease__t { max-width: 68ch; } .def-ease__b { flex-wrap: nowrap; } }
.fr-res .fr-course { margin: 8px 0 0; text-align: center; font-size: 14px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* the lead's second line is a sentence here («Every A1 word of the course is met»), not the engine's count: it takes a second line
   where the skin's face is wide (Steampunk's small capitals cut it short at 428, WebKit, 2026-11-14) and on a narrow phone */
.fr-res .fr-lead .fr-go__sub { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.row__said { display: block; margin-top: 4px; }

/* THE ANSWERED SENTENCE IS HEARD (eng-book.js, ENG.md call 60): again, and again slowly, beside a Grammar card's verdict.
   They stand in the note's corner, as the tortoise does in a round of words, so the note keeps the height punk-book-drill.js measured. */
#grammar-note .eb-ears { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; gap: 8px; }
#grammar-note .gn-pair:has(> .eb-ears) .gn-verdict { padding-right: 98px; }
.eb-ear { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: rgba(var(--tint), .09); box-shadow: inset 0 0 0 1px rgba(var(--tint), .12); color: var(--ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.eb-ear svg { width: 22px; height: 22px; }
.eb-ear:hover, .eb-ear:focus-visible { color: var(--ink); }
.eb-ear:active { transform: scale(.94); }
html[data-watch="on"] .eb-ears { display: none; }
