/* ETO lesson kit: the building blocks of the new lessons (post type eto_lesson). Loads after single.css on lessons only.
   The memorable thing is the grammar colour code: the same four colours mark the same jobs in every formula, example
   and timeline (subject blue, main verb plum, helper verb teal, time word amber), so a learner reads a formula and an
   example the same way. Everything else stays quiet and uses the theme tokens. Guide: docs/lessons/lesson-design-kit.md */

:root {
  --k-subj: #1D4F9C; --k-subj-soft: #E3ECFA; --k-subj-edge: #9DB8E6;
  --k-verb: #84267F; --k-verb-soft: #F7E5F4; --k-verb-edge: #D9A3D3;
  --k-help: #0D6B63; --k-help-soft: #DCF2EE; --k-help-edge: #93D1C7;
  --k-time: #6E5000; --k-time-soft: #FBF0C9; --k-time-edge: #E0C25E;
  --k-pic-chip: var(--accent-soft); /* square behind word-card pictures */
}
[data-scheme="dark"] {
  --k-subj: #9CC0FF; --k-subj-soft: #1C2940; --k-subj-edge: #35507E;
  --k-verb: #EAA8E3; --k-verb-soft: #36203A; --k-verb-edge: #6C3F6B;
  --k-help: #6FD6C8; --k-help-soft: #15322E; --k-help-edge: #2E6158;
  --k-time: #F2CD4F; --k-time-soft: #3A3217; --k-time-edge: #6B5A1E;
  --k-pic-chip: #E6EBF3; /* light chip behind drawn icons, so their dark outlines show */
}
/* No JavaScript: twin of the dark rule above (tests/js/lesson-kit.test.mjs keeps them in step). */
@media (prefers-color-scheme: dark) {
  [data-scheme="auto"] {
  --k-subj: #9CC0FF; --k-subj-soft: #1C2940; --k-subj-edge: #35507E;
  --k-verb: #EAA8E3; --k-verb-soft: #36203A; --k-verb-edge: #6C3F6B;
  --k-help: #6FD6C8; --k-help-soft: #15322E; --k-help-edge: #2E6158;
  --k-time: #F2CD4F; --k-time-soft: #3A3217; --k-time-edge: #6B5A1E;
  --k-pic-chip: #E6EBF3; /* light chip behind drawn icons, so their dark outlines show */
  }
}

/* 1. Coloured words, inside any sentence: <span class="eto-w eto-w--verb">visited</span> */
.eto-w { padding: 0 .18em; border-radius: 4px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.eto-w--subj { color: var(--k-subj); background: var(--k-subj-soft); }
.eto-w--verb { color: var(--k-verb); background: var(--k-verb-soft); }
.eto-w--help { color: var(--k-help); background: var(--k-help-soft); }
.eto-w--time { color: var(--k-time); background: var(--k-time-soft); }
.eto-w--end { color: var(--k-verb); text-decoration: underline 2px; text-underline-offset: 3px; } /* the ending that changes: walk<b class="eto-w--end">ed</b> */

/* Example sentences: one per line, each with a small dot in the main-verb colour. */
.eto-prose ul.eto-examples { margin: 0 0 18px; padding: 0; list-style: none; }
.eto-prose .eto-examples li { position: relative; margin: 0 0 6px; padding-left: 22px; }
.eto-examples li::before { content: ""; position: absolute; left: 5px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--k-verb-edge); }

/* 2. Formula: a row of word bricks. Each brick has a thick bottom edge, like a toy brick seen from the side. */
.eto-formula { margin: 0 0 22px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.eto-formula__row { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 14px; align-items: start; padding: 10px 0; }
.eto-formula__row + .eto-formula__row { border-top: 1px dashed var(--line); }
.eto-formula__name { padding-top: 7px; font-size: 15px; font-weight: 700; color: var(--text-2); }
.eto-formula__bricks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.eto-formula__ex { grid-column: 2; margin: 0; font-size: 16.5px; color: var(--text-2); }
.eto-brick { display: inline-block; padding: 5px 12px 3px; border: 1px solid; border-bottom-width: 4px; border-radius: 9px; font-size: 16px; font-weight: 650; line-height: 1.35; white-space: nowrap; }
.eto-brick--subj { color: var(--k-subj); background: var(--k-subj-soft); border-color: var(--k-subj-edge); }
.eto-brick--verb { color: var(--k-verb); background: var(--k-verb-soft); border-color: var(--k-verb-edge); }
.eto-brick--help { color: var(--k-help); background: var(--k-help-soft); border-color: var(--k-help-edge); }
.eto-brick--time { color: var(--k-time); background: var(--k-time-soft); border-color: var(--k-time-edge); }
.eto-brick--rest { color: var(--text-2); background: var(--surface-2); border-color: var(--line-strong); font-weight: 500; }
/* Optional part of a formula, e.g. "(Wh-)" before the helping verb: dashed, because it is not always there. */
.eto-brick--opt { color: var(--text-2); background: transparent; border-color: var(--line-strong); border-style: dashed; border-bottom-style: dashed; font-weight: 600; }
.eto-op { font-size: 18px; font-weight: 700; color: var(--muted); }
@media (max-width: 620px) {
  .eto-formula__row { grid-template-columns: 1fr; }
  .eto-formula__name { padding-top: 0; }
  .eto-formula__ex { grid-column: 1; }
  .eto-brick { white-space: normal; }
}

/* The colour key, once per lesson near the first formula. */
.eto-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -10px 0 22px; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.eto-prose .eto-key li { margin: 0; }
.eto-key li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.eto-key__subj::before { background: var(--k-subj-edge); }
.eto-key__verb::before { background: var(--k-verb-edge); }
.eto-key__help::before { background: var(--k-help-edge); }
.eto-key__time::before { background: var(--k-time-edge); }

/* 3. In short: the one- or two-sentence definition at the top (what Google may quote). */
.eto-inshort { margin: 0 0 26px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); font-size: 19px; line-height: 1.6; }
.eto-inshort > :last-child { margin-bottom: 0; }

/* 4. Notes: tip, easy to remember, watch out, American English. One look, four colours; the title says which. */
.eto-note { margin: 0 0 22px; padding: 14px 18px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.eto-note > :last-child { margin-bottom: 0; }
.eto-note__t { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; }
.eto-note__t::before { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1; }
.eto-note--tip { background: var(--right-soft); border-color: transparent; }
.eto-note--tip .eto-note__t::before { content: "✓"; background: var(--right); color: var(--on-mark); }
.eto-note--remember { background: var(--reward-soft); border-color: transparent; }
.eto-note--remember .eto-note__t { color: var(--reward-ink); }
.eto-note--remember .eto-note__t::before { content: "★"; background: var(--reward); color: #fff; }
.eto-note--warn { background: var(--wrong-soft); border-color: transparent; }
.eto-note--warn .eto-note__t::before { content: "!"; background: var(--wrong); color: var(--on-mark); font-weight: 800; }
.eto-note--us .eto-note__t::before { content: "US"; width: auto; padding: 0 7px; border-radius: 6px; background: var(--k-subj-soft); color: var(--k-subj); font-size: 12px; font-weight: 800; height: 22px; }

/* 5. Timeline: past on the left, now in the middle, future on the right. Marks are placed with style="--at:30%". */
.eto-tl { margin: 4px 0 24px; padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.eto-tl__track { position: relative; height: 92px; margin: 0 8px; }
.eto-tl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 58px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.eto-tl__track::after { content: ""; position: absolute; right: -8px; top: 53px; border: 6.5px solid transparent; border-left: 10px solid var(--line-strong); }
.eto-tl__now { position: absolute; left: var(--at, 70%); top: 44px; width: 3px; height: 31px; margin-left: -1.5px; border-radius: 2px; background: var(--accent-edge); }
.eto-tl__now::after { content: attr(data-label); position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.eto-tl__pt, .eto-tl__span { position: absolute; top: 0; left: var(--at, 30%); }
.eto-tl__pt { transform: translateX(-50%); text-align: center; }
.eto-tl__pt::after { content: ""; position: absolute; left: 50%; top: 50px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--k-verb); box-shadow: 0 0 0 4px var(--surface); }
.eto-tl__span { width: var(--len, 30%); }
.eto-tl__span::after { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 15px; border-radius: 8px; background: var(--k-verb-edge); border: 2px solid var(--k-verb); }
/* A repeated action (a habit): a row of small dots along the period instead of a solid bar. */
.eto-tl__span--repeat::after { height: 16px; border: 0; border-radius: 0; background: radial-gradient(circle, var(--k-verb) 4.5px, transparent 5.5px) 0 50% / 20px 16px; background-repeat: space no-repeat; }
.eto-tl__label { display: inline-block; max-width: 13em; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--k-verb); }
.eto-tl__span .eto-tl__label { display: block; text-align: center; max-width: none; }
/* Phones: smaller, narrower point labels so neighbours don't collide */
@media (max-width: 620px) { .eto-tl__label { font-size: 13px; } .eto-tl__pt .eto-tl__label { max-width: 6.5em; } }
.eto-tl__ends { display: flex; justify-content: space-between; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.eto-tl figcaption { margin-top: 8px; font-size: 15px; color: var(--text-2); }

/* 6. Common mistakes: wrong, then right, one pair per line. */
.eto-fix { margin: 0 0 22px; padding: 0; list-style: none; }
.eto-prose .eto-fix li { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.eto-fix__no, .eto-fix__yes { position: relative; padding: 9px 12px 9px 38px; border-radius: 10px; font-size: 16.5px; line-height: 1.45; }
.eto-fix__no { background: var(--wrong-soft); color: var(--text-2); }
.eto-fix__no s { text-decoration-color: var(--wrong); text-decoration-thickness: 2px; }
.eto-fix__yes { background: var(--right-soft); }
.eto-fix__no::before, .eto-fix__yes::before { position: absolute; left: 12px; top: 9px; font-weight: 800; }
.eto-fix__no::before { content: "✗"; color: var(--wrong); }
.eto-fix__yes::before { content: "✓"; color: var(--right); }
@media (max-width: 620px) { .eto-prose .eto-fix li { grid-template-columns: 1fr; gap: 4px; margin-bottom: 12px; } }

/* 7. Which one? Two columns side by side; the heading colour tells them apart. */
.eto-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; }
.eto-vs__col { padding: 14px 16px; border: 1px solid var(--line); border-top: 5px solid var(--k-verb-edge); border-radius: 12px; background: var(--surface); }
.eto-vs__col + .eto-vs__col { border-top-color: var(--k-help-edge); }
.eto-vs__col h4 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.eto-vs__col ul { margin: 0; padding-left: 20px; font-size: 16.5px; }
.eto-vs__col li { margin: 0 0 6px; }
.eto-vs__test { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 16.5px; }
@media (max-width: 620px) { .eto-vs { grid-template-columns: 1fr; } }

/* 8. Word tables (irregular verbs, time words): the first column reads as the word to learn. */
.eto-prose table.eto-words { display: table; width: 100%; border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.eto-prose .eto-words th { background: var(--surface-3); font-size: 14px; color: var(--text-2); border: 0; }
.eto-prose .eto-words td { border: 0; border-top: 1px solid var(--line); }
.eto-prose .eto-words tr:nth-child(even) td { background: var(--surface); }
.eto-prose .eto-words td:first-child { font-weight: 650; }
/* Phones: let long words in table cells wrap instead of pushing the page sideways (owner approved 20 Nov) */
.eto-prose .eto-words th, .eto-prose .eto-words td { overflow-wrap: break-word; }
/* Phones: only a word too long for its cell may break (break-word); never split ordinary words. `anywhere` with
   hyphens: auto let the table shrink a column to one letter and split "mat-ch", "con-fused" (v07 frontend review). */
@media (max-width: 767px) { .eto-prose .eto-words th, .eto-prose .eto-words td { overflow-wrap: break-word; hyphens: manual; } }
/* Desktop: the first column holds the labels; never squeeze it below 7em (owner saw it one word wide). */
@media (min-width: 1024px) { .eto-prose .eto-words th:first-child, .eto-prose .eto-words td:first-child { min-width: 7em; } }
@media (max-width: 420px) { .eto-prose .eto-words th, .eto-prose .eto-words td { padding: 8px 6px; font-size: 15px; } }

/* 9. Check yourself: questions in order, the answer opens with a tap. */
.eto-check { margin: 0 0 24px; padding: 16px 18px 8px; border: 2px solid var(--accent); border-radius: 14px; background: var(--surface); counter-reset: eto-check; }
.eto-check__t { margin: 0 0 10px; font-family: var(--font-serif); font-size: 21px; font-weight: 600; }
.eto-check details { counter-increment: eto-check; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.eto-check details:last-child { border-bottom: 0; }
.eto-check summary { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: baseline; cursor: pointer; list-style: none; font-size: 17px; }
.eto-check summary::-webkit-details-marker { display: none; }
.eto-check summary::before { content: counter(eto-check) "."; font-weight: 700; color: var(--muted); }
.eto-check summary::after { content: "Show answer"; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.eto-check details[open] summary::after { content: "Hide"; }
/* Taller tap area for Check yourself questions (44 px) */
.eto-check summary { min-height: 44px; align-content: center; }
.eto-check summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.eto-check__a { margin: 8px 0 0 38px; padding: 8px 12px; border-radius: 8px; background: var(--right-soft); font-size: 16.5px; }

/* 10. Related lessons: a row of chips at the end of the text. */
.eto-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.eto-related b { margin-right: 4px; }
.eto-prose .eto-related a { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15.5px; text-decoration: none; }
.eto-prose .eto-related a:hover { border-color: var(--accent-edge); background: var(--accent-soft); }

/* 11. Tile grid: letters or numbers, big, with their name or sound underneath. Vowels (or any key tiles) stand out. */
.eto-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
/* Beat the theme’s .eto-prose ul padding (only spacing; keep the --wide column rule winning). */
.eto-prose ul.eto-tiles { margin: 0 0 22px; padding: 0; }
.eto-prose .eto-tiles li { margin: 0; }
.eto-tiles li { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 82px; padding: 8px 4px 6px; border: 1px solid var(--line); border-bottom-width: 4px; border-radius: 12px; background: var(--surface); text-align: center; }
.eto-tiles b { font-family: var(--font-serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
/* A tile with a 🔊 word (vocabulary reviews): the button goes under the word, inside the tile. */
.eto-tiles .eto-sayw { flex-direction: column; gap: 4px; }
.eto-tiles .eto-sayw > :first-child { overflow-wrap: anywhere; }
.eto-uses__i { white-space: nowrap; }
.eto-uses__i:not(:empty) { min-width: 40px; width: auto; padding: 0 4px; }
.eto-tiles span { margin-top: 4px; font-size: 13.5px; line-height: 1.3; color: var(--text-2); }
.eto-tiles .eto-tiles__key { background: var(--accent-soft); border-color: var(--accent-edge); }
.eto-tiles--wide { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.eto-tiles--wide b { font-size: 24px; }

/* "Mark as studied" (ETO Quiz course.php + studied.js) and the end of a lesson: studied, next lesson, all lessons. */
.eto-studied-wrap[hidden] { display: none; }
.eto-studied { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--right); border-radius: 999px; background: var(--surface); color: var(--right); font: inherit; font-weight: 700; cursor: pointer; }
.eto-studied:hover { background: var(--right-soft); }
.eto-studied[aria-pressed="true"] { background: var(--right); color: var(--on-mark); }
.eto-studied:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.eto-studied--small { min-height: 0; padding: 0; border: 0; background: none; color: inherit; font-weight: 600; gap: 5px; text-decoration: underline; text-underline-offset: 3px; }
.eto-studied--small:hover { background: none; color: var(--right); }
.eto-studied--small[aria-pressed="true"] { background: none; color: var(--right); text-decoration: none; }
.eto-finish { margin: 32px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.eto-finish__t { margin: 0 0 4px; font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.eto-finish__hint { margin: 0 0 14px; font-size: 15.5px; color: var(--text-2); }
.eto-finish__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.eto-studied-badge { margin: 12px 0 0; color: var(--right); font-weight: 700; } /* "New badge: …" after Mark as studied (20 Nov 2026) */
.eto-finish__next { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; box-shadow: 0 2px 0 var(--accent-edge); }
.eto-finish__all { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }
@media print { .eto-finish, .eto-studied-wrap { display: none; } }

/* 12. Steps: a real sequence, as numbered cards (how to choose, how to change a sentence, how to learn). */
.eto-prose ol.eto-steps { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: eto-step; }
.eto-prose .eto-steps li { position: relative; margin: 0; padding: 14px 16px 14px 62px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); counter-increment: eto-step; }
.eto-steps li::before { content: counter(eto-step); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: 0 2px 0 var(--accent-edge); }
.eto-steps b:first-child { display: block; margin-bottom: 2px; }
.eto-steps__ex { display: block; margin-top: 6px; font-size: 16px; color: var(--text-2); }

/* 13. Uses: "where / when we use it" as small cards with an icon. */
.eto-prose ul.eto-uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.eto-prose .eto-uses li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px; align-content: start; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 16px; line-height: 1.5; }
.eto-uses__i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); font-size: 21px; line-height: 1; }
.eto-uses li > b { font-size: 16.5px; }
/* The title sits beside the icon; the text runs under both and uses the whole card (owner, 19 Nov 2026).
   By position, because lesson-kit.js wraps a spoken title in span.eto-sayw. */
.eto-uses li > :nth-child(2) { align-self: center; font-weight: 700; font-size: 16.5px; }
.eto-uses li > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; margin-top: 4px; color: var(--text-2); }


/* Examples (owner, 19 Nov 2026): in plain text <em> stays italic (the yellow band was tried and dropped: harder to read).
   On tinted boxes italics were hard to notice, so there they are upright and semi-bold. */
.eto-prose .eto-inshort em, .eto-prose .eto-note em, .eto-prose .eto-fix__yes em, .eto-prose .eto-partners em, .eto-prose .eto-check__a em { font-style: normal; font-weight: 600; }
.eto-prose .eto-wc__ex em { font-style: normal; }

/* Vocabulary lessons (owner, 19 Nov 2026): word cards, the speak button, word families, word partners, register tags. */
/* Word cards: picture (emoji), word + 🔊, IPA, word class, meaning, example. */
.eto-prose ul.eto-wordcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
/* Top line: picture + word, 🔊, IPA, class; below, the meaning and the example use the whole card width (owner, 19 Nov:
   easier to read). minmax(0, 1fr) and overflow-wrap keep long words such as "disinformation" inside the card. */
.eto-prose .eto-wordcards li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 12px; align-content: start; align-items: center; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); line-height: 1.5; }
.eto-wc__pic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); font-size: 27px; line-height: 1; }
/* Words with no clear emoji get a small drawn icon (assets/img/vocab/<word>.svg) in the same square. */
.eto-wc__pic:has(img), .eto-uses__i:has(img) { background: var(--k-pic-chip); }
.eto-wc__pic img, .eto-uses__i img { display: block; width: 32px; height: 32px; }
.eto-wc__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.eto-wc__head .eto-sayw { flex-wrap: wrap; }
.eto-wc__w { font-size: 18.5px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.eto-wc__ipa { font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.eto-wc__cls { font-size: 13px; font-style: normal; font-weight: 650; color: var(--k-verb); }
.eto-wc__m { grid-column: 1 / -1; font-size: 16px; color: var(--text); overflow-wrap: break-word; }
.eto-wc__ex { grid-column: 1 / -1; padding: 7px 12px; border-left: 3px solid var(--k-help); border-radius: 0 8px 8px 0; background: var(--surface-2); font-size: 15.5px; font-style: normal; color: var(--text); overflow-wrap: break-word; }
/* The speak button (lesson-kit.js adds it after any [data-say]; hidden where the device has no voice). */
.eto-say { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: 0 2px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 15px; line-height: 1; cursor: pointer; vertical-align: middle; }
.eto-sayw { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.eto-sayw > .eto-say { flex: none; }
.eto-say:hover { border-color: var(--accent-edge); color: var(--text); }
.eto-say:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.eto-say[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.eto-say--us::after { content: "US"; margin-left: 1px; font-size: 9px; font-weight: 800; }
@media (pointer: coarse) { .eto-say { width: 40px; height: 40px; } }
/* Word family: decide → decision → decisive → decisively. */
.eto-prose ul.eto-family { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); list-style: none; }
.eto-prose .eto-family li { display: flex; align-items: center; gap: 8px; margin: 0; }
.eto-prose .eto-family li + li::before { content: "→"; color: var(--muted); }
.eto-family li > span { display: grid; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); line-height: 1.3; }
.eto-family b { font-size: 17px; }
.eto-family i { font-size: 12.5px; font-style: normal; font-weight: 650; color: var(--k-verb); }
/* Word partners: common pairs, the partner word in bold. */
.eto-partners { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--k-help); border-radius: 12px; background: var(--surface); }
.eto-partners__t { margin: 0 0 8px; font-weight: 700; }
.eto-prose .eto-partners ul { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.eto-prose .eto-partners li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--k-help-soft); font-size: 15.5px; }
.eto-partners li b { color: var(--k-help); }
/* Register and variety tags. */
.eto-reg { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 750; letter-spacing: .02em; vertical-align: 1px; text-transform: uppercase; }
.eto-reg--formal { background: var(--k-subj-soft); color: var(--k-subj); }
.eto-reg--informal { background: var(--k-time-soft); color: var(--k-time); }
.eto-reg--neutral { background: var(--surface-2); color: var(--text-2); }
.eto-reg--uk, .eto-reg--us { background: var(--k-verb-soft); color: var(--k-verb); }
@media print { .eto-say { display: none; } .eto-wordcards li, .eto-family, .eto-partners { break-inside: avoid; } }

/* Print: colours stay (they carry meaning), answers open, nothing splits across pages. */
@media print {
  .eto-formula, .eto-tl, .eto-note, .eto-vs, .eto-check, .eto-inshort, .eto-fix li, .eto-tiles li, .eto-steps li, .eto-uses li { break-inside: avoid; }
  .eto-w, .eto-brick, .eto-note, .eto-inshort, .eto-fix__no, .eto-fix__yes, .eto-tl, .eto-tiles li, .eto-uses__i, .eto-steps li::before, .eto-key li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .eto-check summary::after { content: none; }
  .eto-check details > .eto-check__a { display: block; }
}
