/* 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; }

/* 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 asked the other way round, said (ENG.md call 77) */
.rv__way { text-align: center; color: var(--ink-2); }
/* Settings › Appearance: one row, however many lights the skin has (three, Petrykivka's four; frap-screens.js sets
   --looks). THUD CORE's stand in threes: its calm skins have the clock's parts too */
.looks { grid-template-columns: repeat(var(--looks, 3), minmax(0, 1fr)); }
/* the Ways sheet's second tab: the course's two lists side by side (THUD CORE's has three months) */
@media (min-width: 960px) { .ways__months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 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: calc(11px + 11 * var(--tz, 0px)); 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: calc(13px + 13 * var(--tz, 0px)); 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: calc(14px + 14 * var(--tz, 0px)); line-height: 1.45; }
.def-ease__t b { color: var(--ink); display: block; margin-bottom: 2px; font-size: calc(15px + 15 * var(--tz, 0px)); }
.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: calc(14px + 14 * var(--tz, 0px)); 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; }

/* ── THUD ENG's own, once in its copy of thud-def.css (joined 2026-11-24, ROUNDS.md §E3) ─────────────────────────────── */
/* the course's ladder, a rung a band (frap.js courseHero(), ENG.md call 38) */
.ladder { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; }
.ladder li { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0 0; border-top: 2px solid var(--line); }
.ladder li:not(.none) { border-top-color: var(--acc-ink); }
.ladder b { font-size: calc(16px + 16 * var(--tz, 0px)); font-weight: 700; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder li.none b { font-weight: 500; color: var(--ink-3); }
.ladder li > span[aria-hidden] { font-size: calc(10.5px + 10.5 * var(--tz, 0px)); color: var(--ink-3); white-space: nowrap; }
/* Grammar's and Reading's ways (eng-ways.js, ENG.md call 64): the same hand. The way's card heads its place, where a
   sentence stood; the road's ladder under the Grammar's «next»; the books under a story's lines */
/* THE DAY, IN THREE (eng-day.js, ENG.md call 65): three slim rows under the course's ladder; the step to take now in
   the accent, a step done ticked (drawn here, no picture), Reading's never. Still: nothing here moves */
.day3 { margin: 16px 0 6px; }
.day3__k { margin: 0 2px 8px; color: var(--ink-3); }
.day3__l { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.day3__i + .day3__i { border-top: 1px solid var(--line); }
.day3__a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 12px 9px 14px; color: inherit; text-decoration: none; }
.day3__n { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: calc(13px + 13 * var(--tz, 0px)); font-weight: 700; color: var(--ink-3); position: relative; }
.day3__i.is-now .day3__n { border-color: var(--acc-ink); color: var(--acc-ink); }
.day3__i.is-done .day3__n { border-color: var(--acc-ink); }
.day3__i.is-done .day3__n::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--acc-ink); border-bottom: 2px solid var(--acc-ink); transform: translateY(-1.5px) rotate(-45deg); }
.day3__t { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 1px; font-size: calc(14px + 14 * var(--tz, 0px)); line-height: 1.3; color: var(--ink-2); }
.day3__t > b { flex-basis: 100%; font-size: calc(15px + 15 * var(--tz, 0px)); color: var(--ink); }
.day3__i.is-done .day3__t > b { flex-basis: auto; }
.day3__ok { color: var(--acc-ink); font-size: calc(13px + 13 * var(--tz, 0px)); flex: 1; }
.day3__i.is-done .day3__t > .day3__ok ~ span:not(.sr) { flex-basis: 100%; }
.day3__free { color: var(--ink-3); font-size: calc(13px + 13 * var(--tz, 0px)); }
.day3__a .i--chev { flex: none; opacity: .55; }
.fr-d3 { margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.fr-d3__k { margin: 0 0 10px; display: flex; flex-direction: column; gap: 3px; }
.fr-d3__why { font-size: calc(14px + 14 * var(--tz, 0px)); color: var(--ink-2); }
.bk-way, .rd-way { margin: 14px 0; }
.rd-way__free { margin: -8px 2px 14px; }
.rd-way__books { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.rd-way__books p { margin: 0; text-align: center; }
.bk-why { margin: 14px 0 10px; }
.how__half .ofig { margin: 12px auto 2px; }
.ofig--story .gl.here { fill: var(--acc-ink); }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-low="on"]):not([data-calm]) .ofig--lesson .tile { animation: ofig-ask 5s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--back .st { animation: ofig-stop 7s linear infinite; animation-delay: var(--d, 0s); }
  html:not([data-low="on"]):not([data-calm]) .ofig--story .wave { animation: ofig-wave 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
}
/* the hero's embers (frap.js), still under Low power */
html[data-low="on"] .def-hero__embers { animation: none !important; display: none; }
/* the hero's embers stay hidden (THUD ENG's frap.js still writes them; THUD CORE's has none) */
.def-hero__embers { display: none; }
/* Petrykivka's four lights (frap-look.js lightSeg) take a row of their own: beside Text size, Dawn's Ukrainian ran out */
html[data-palette="petryk"] .lk-pair { grid-template-columns: minmax(0, 1fr); }
/* on a desk the words that fight back stand in two columns, each row's rule its own: its frap-screens.js stands them
   alone, the page's width (THUD CORE's pairs them beside its words, one column: punk-record.css), until it is joined */
@media (min-width: 1100px) {
  .fights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .fights .row + .row::before { display: none; }
  .fights .row:nth-child(n + 3)::after { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }
}

/* ── THE GRAMMAR, THUD ENG'S OWN (E3, 2026-11-24). punk-book.css is both apps' now; these are the rules of its own book's
   markup (its punk-book.js, punk-book-drill.js, eng-ways.js, eng-rules.js): its road and its bands, the rule's three
   voices, what a set's misses share, a table's caption, its tables on a phone, a note on a short phone, the two ways at
   375 px, the Tryzub's row once grown, «Find your level» on a phone, a level's Ukrainian name, Hear and write's labels,
   a story's lines. A rule both books state alike is punk-book.css's, at its place there, as it was in its copy. ── */
/* THE ROAD (WEEK.md W1): a band's head says Wheat & Sky's name for it under its own, its count under both, and what the
   learner can do after it */
.bk-part__main { flex: 1; min-width: 0; }
.bk-part--band .t-foot { display: block; margin-top: 4px; }
.bk-band { display: block; margin-top: 3px; font-size: calc(15px + 15 * var(--tz, 0px)); font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--ink-2); }
.bk-cando { margin: 12px 4px 0; font-size: calc(15px + 15 * var(--tz, 0px)); line-height: 1.45; color: var(--ink-2); }
.bk-cando .caps { display: block; margin-bottom: 4px; color: var(--acc-ink); }
/* a lesson on a desk: the page's column is 1080px there, and a rule's paragraph ran 150 letters a line; the lesson stands
   in the 760px column a smaller desk gives every page, centred, its prose near a reading measure */
@media (min-width: 1100px) { #view > .bk-head--lesson, #view > .bk-body { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; } }
/* THUD ENG (WEEK.md W7): the rule's tone, Wheat & Sky's three voices, above the lesson's first rule */
.bk-voice { display: grid; gap: 7px; margin: 0 2px; }
.bk-voice__l { color: var(--ink-3); font-size: calc(11px + 11 * var(--tz, 0px)); }
.bk-voice .seg { width: 100%; }
/* a phone: four columns at 17px ran a subject's cell («he / she / it — anyone single») five lines deep; set tighter there */
@media (max-width: 520px) { .bk-table td { padding: 8px 10px 8px 0; font-size: 15px; line-height: 1.32; } .bk-table th { padding-right: 10px; } }
/* at 375 wide (an iPhone SE, a mini, an X or 11 Pro) the two ways' unbroken labels pushed the card 8 px past the screen
   (WebKit, 2026-10-25): the column may not grow past the card, and «Only its questions» stacks over its count when the two
   do not fit side by side */
.bk-hero, .bk-hero--two .bk-hero__ways { grid-template-columns: minmax(0, 1fr); }
.bk-hero__q { flex-wrap: wrap; white-space: normal; row-gap: 2px; text-align: center; }

/* THE BOOK'S OTHER ORDERS (ENG.md call 69): «Find your level» is two lines in Ukrainian on a phone */
.bk-find .btn { max-width: 100%; white-space: normal; text-align: center; padding-block: 8px; }   /* its Ukrainian is two lines on a phone; a button's nowrap ran it off the screen (call 73) */
/* THE WHOLE BOOK (#/grammar/map): a level's Ukrainian name beside its own. Still: nothing here moves. */
.bk-level__uk { color: var(--ink-2); font-weight: 500; }
.bk-level__uk::before { content: '· '; color: var(--ink-3); }


/* SEE IT IN A STORY (ENG.md call 98; eng-rules.js story()): the lesson's words in the library's own lines, the word
   marked as the book marks a form (.af), each line a tap from its story. Drawn only where the lesson has a line. */
.bk-story { display: grid; gap: 8px; margin-top: 18px; }
.bk-story[hidden] { display: none !important; }
.bk-story__h { margin: 0 4px; }
.bk-story__sub { margin: 0 4px 2px; }
.bk-story__lv { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-story__row { align-items: center; text-decoration: none; color: inherit; }
.bk-story__line { display: block; font-size: calc(16px + 16 * var(--tz, 0px)); line-height: 1.5; color: var(--ink); }
.bk-story__line mark { padding: 0; background: none; color: var(--acc-ink); font-weight: 700; }
.bk-story__from { display: block; margin-top: 3px; }

/* THE LOOK-UP AND «BEFORE YOU READ», TURNED ROUND (punk-read.js, both apps'): the lesson that teaches an English word
   (eng-rules.js html(), ENG.md call 68) under the dictionary, its number in the accent; a rare word's English is the
   story's own reading face, its Ukrainian the small line under it (call 100) */
.rd-look__rules { margin: 10px 0 0; }
.rd-look__rule { text-decoration: none; color: inherit; }
.rd-look__n { font-weight: 700; color: var(--accent); margin-right: .2em; }
.rd-before__en { font-family: var(--quiz-font); font-size: 1.25rem; line-height: 1.3; font-weight: 500; color: inherit; }
.rd-before__uk { font-family: inherit; font-size: calc(14px + 14 * var(--tz, 0px)); line-height: inherit; font-weight: inherit; color: var(--ink-2); }
