/* ═══════════════════════════════════════════
   Public pages (src/publicRoute.js): catalog, lesson page (option B:
   pages | lesson | dictionary + booking form), booking form.
   Loaded after main.css on a lesson page (its exercise styles are reused);
   the tokens below restyle those exercises in the public site's colours.
═══════════════════════════════════════════ */
:root {
  --pub-ink: #0B1F3A;
  --pub-body: #33415C;
  --pub-muted: #5B6478;
  --pub-line: #E3E6EC;
  --pub-soft: #F4F6F9;
  --pub-accent: #1F4FD8;
  --pub-accent-h: #163BA6;
  --pub-accent-s: #E8EEFF;
  --pub-amber: #F2B705;
  --pub-amber-s: #FFF4D1;
  --pub-green: #1F5E3A;
  --pub-green-s: #EEF8F1;
  /* Manrope: the Cyrillic letters (Plus Jakarta Sans has none) */
  --pub-display: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
  --pub-text: 'IBM Plex Sans', system-ui, sans-serif;
}
/* main.css's tokens, in the public site's colours (exercises) */
body.pub {
  --accent: #1F4FD8; --accent-h: #163BA6; --accent-s: #E8EEFF; --accent-m: rgba(31,79,216,0.12);
  --text: #0B1F3A; --text2: #33415C; --text3: #5B6478;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --bg: #FFFFFF;
}

body.pub { margin: 0; background: #FFFFFF; color: var(--pub-body); font-family: var(--pub-text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.pub * { box-sizing: border-box; }
.pub h1, .pub h2, .pub h3 { font-family: var(--pub-display); color: var(--pub-ink); margin: 0; letter-spacing: -0.01em; line-height: 1.2; }
.pub p { margin: 0; }
.pub a { color: var(--pub-accent); text-decoration: none; }
.pub a:hover { color: var(--pub-accent-h); }
.pub-wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.pub-sr, .pub-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-hp { left: -9999px; }
.pub-skip { position: absolute; left: -9999px; top: 8px; background: var(--pub-ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.pub-skip:focus { left: 8px; }
.pub :focus-visible { outline: 3px solid var(--pub-accent); outline-offset: 2px; }

/* buttons */
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: 600 15px/1.2 var(--pub-text); border: 1.5px solid transparent; cursor: pointer; text-align: center; }
.pub-btn-primary { background: var(--pub-accent); color: #fff !important; }
.pub-btn-primary:hover { background: var(--pub-accent-h); }
.pub-btn-dark { background: var(--pub-ink); color: #fff !important; }
.pub-btn-dark:hover { background: #142E54; }
.pub-btn-ghost { background: #fff; color: var(--pub-ink) !important; border-color: #C9CFDA; }
.pub-btn-ghost:hover { border-color: var(--pub-ink); }
.pub-btn-amber { background: var(--pub-amber); color: var(--pub-ink) !important; border: 0; width: 100%; }
.pub-btn-amber:hover { background: #E0A800; }
.pub-btn:disabled { opacity: .6; cursor: default; }

/* header / footer */
.pub-header { border-bottom: 1px solid var(--pub-line); background: #fff; position: sticky; top: 0; z-index: 40; }
/* the header stays on screen: its height (+ border) keeps anchors and sticky columns below it */
:root { --pub-head: 65px; }
html { scroll-padding-top: var(--pub-head); }
.pub-header-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.pub-logo { display: flex; align-items: center; gap: 10px; color: var(--pub-ink) !important; font: 800 18px var(--pub-display); }
.pub-logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--pub-ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.pub-nav { display: flex; gap: 24px; flex: 1; font-weight: 500; font-size: 15px; }
.pub-nav a { color: var(--pub-ink); }
.pub-header-actions { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.pub-login { color: var(--pub-ink) !important; font-weight: 600; }
.pub-footer { background: var(--pub-ink); color: #B7C2D6; font-size: 15px; margin-top: 0; }
.pub-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.pub-footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.pub-footer a { color: #B7C2D6; }
.pub-footer a:hover { color: #fff; }
.pub-footer-name { font: 800 19px var(--pub-display); color: #fff; }
.pub-footer-h { color: #fff; font-weight: 600; }

/* badges, chips */
.pub-badge { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pub-badge-free { background: var(--pub-accent-s); color: var(--pub-accent-h); }
.pub-badge-started { background: var(--pub-green-s); color: var(--pub-green); }
.pub-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid #C9CFDA; background: #fff; color: var(--pub-ink) !important; font-weight: 600; font-size: 15px; }
.pub-chip.is-on { background: var(--pub-ink); border-color: var(--pub-ink); color: #fff !important; }
.pub-crumbs, .pl-crumbs { font-size: 14px; color: var(--pub-muted); display: flex; gap: 6px; flex-wrap: wrap; }

/* catalog */
.pub-hero-band { background: var(--pub-soft); border-bottom: 1px solid var(--pub-line); }
.pub-hero-band .pub-wrap { padding-top: 44px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 18px; }
.pub-hero-band h1 { font-size: 40px; font-weight: 800; }
.pub-lead-text { font-size: 19px; max-width: 760px; }
.pub-levels { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: -28px; }
.pub-levels a { padding: 12px 16px; color: var(--pub-muted) !important; font-weight: 600; border-bottom: 3px solid transparent; }
.pub-levels a.is-on { color: var(--pub-ink) !important; border-bottom-color: var(--pub-accent); }
.pub-section { padding-top: 40px; padding-bottom: 8px; }
.pub-section:last-of-type { padding-bottom: 64px; }
.pub-track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pub-track { border: 1px solid var(--pub-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.pub-track:hover { border-color: var(--pub-accent); }
.pub-track-name { font: 700 21px var(--pub-display); color: var(--pub-ink); }
.pub-track-meta { color: var(--pub-muted); font-size: 15px; }
.pub-lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.pub-lesson-card { display: flex; gap: 14px; align-items: center; border: 1px solid var(--pub-line); border-radius: 14px; padding: 14px 16px; color: var(--pub-ink) !important; }
.pub-lesson-card:hover { border-color: var(--pub-accent); }
.pub-lesson-num { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--pub-soft); display: flex; align-items: center; justify-content: center; font: 700 16px var(--pub-display); }
.pub-lesson-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pub-lesson-title { font-weight: 600; }
.pub-lesson-desc { font-size: 14px; color: var(--pub-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pub-empty { padding: 80px 24px; display: flex; flex-direction: column; gap: 12px; }
.pub-empty-text { font-size: 18px; }

/* ═══ home page ═══ */
.pub-btn-lg { min-height: 52px; padding: 14px 24px; font-size: 17px; border-radius: 12px; }
.pub-btn-outline { background: #fff; color: var(--pub-ink) !important; border-color: var(--pub-ink); }
.pub-btn-outline:hover { background: var(--pub-soft); }
.pub-btn-light { background: #fff; color: var(--pub-ink) !important; }
.home-hero { background: var(--pub-soft); }
.home-hero-row { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; padding-top: 80px; padding-bottom: 88px; }
.home-hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; }
.home-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pub-accent); }
.home-hero h1 { font-size: 50px; line-height: 1.1; font-weight: 800; }
.home-sub { font-size: 20px; max-width: 580px; }
.home-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.home-contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.home-contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--pub-ink) !important; font-weight: 600; min-height: 44px; }
.home-contacts-big a { font-size: 18px; }
.home-preview { flex: 1 1 400px; max-width: 520px; background: #fff; border: 1px solid var(--pub-line); border-radius: 18px; padding: 26px; box-shadow: 0 18px 40px rgba(11,31,58,.08); display: flex; flex-direction: column; gap: 14px; }
.home-preview-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--pub-muted); }
.home-preview-title { font: 700 23px var(--pub-display); color: var(--pub-ink); }
.home-preview-note { font-size: 14px; color: var(--pub-muted); }
.home-preview-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; }
.home-preview-row > span { color: var(--pub-muted); font-weight: 600; width: 14px; }
.home-preview-row b { font-weight: 600; border-radius: 8px; padding: 1px 12px; border: 1.5px solid #C9CFDA; min-width: 90px; min-height: 28px; display: inline-block; }
.home-preview-row b.is-right { border-color: #2E7D4F; background: var(--pub-green-s); color: var(--pub-green); }
.home-preview-row b.is-typing { border-color: var(--pub-accent); color: var(--pub-ink); font-weight: 400; }
.home-preview-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--pub-line); padding-top: 14px; font-size: 15px; color: var(--pub-muted); }
.home-preview-btn { background: var(--pub-ink); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }

/* hero ticker: two columns of real exercises scrolling in opposite directions,
   running the full height of the hero band (the negative margins undo the row's padding) */
.home-hero { overflow: hidden; }
.home-tick { flex: 1 1 460px; max-width: 560px; align-self: stretch; position: relative; margin: -80px 0 -88px; min-height: 600px; }
.home-tick-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; overflow: hidden; color: inherit; text-decoration: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 130px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 130px), transparent 100%); }
.home-tick-col { overflow: hidden; }
.home-tick-in { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; animation: home-tick-up 80s linear infinite; }
.home-tick-col.is-b .home-tick-in { animation-duration: 92s; animation-direction: reverse; }
@keyframes home-tick-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.home-tick:hover .home-tick-in { animation-play-state: paused; }
.home-tick-cta { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--pub-ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 30px rgba(11,31,58,.25); z-index: 2; }
.pub .home-tick-cta, .pub .home-tick-cta:hover { color: #fff; }
.home-tick-cta:hover { background: var(--pub-accent); }
.pub .home-tick-cols, .pub .home-tick-cols:hover { color: var(--pub-ink); }
.ht-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--pub-line); border-radius: 16px; padding: 18px; box-shadow: 0 10px 26px rgba(11,31,58,.06); color: var(--pub-ink); transition: border-color .2s; }
.ht-card:hover { border-color: var(--pub-accent); }
.ht-pill { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; line-height: 1.4; }
.ht-c-it { background: #E8EEFF; color: #163BA6; }
.ht-c-doc { background: #E2F3EF; color: #0F5A52; }
.ht-c-log { background: #FFF4D1; color: #6E4B00; }
.ht-c-sales { background: #FDECE3; color: #9A3412; }
.ht-c-biz { background: #E9ECF2; color: var(--pub-ink); }
.ht-c-day { background: #F1EAFD; color: #5B21B6; }
.ht-c-des { background: #FCE7F3; color: #9D174D; }
.ht-title { font: 700 17px/1.3 var(--pub-display); }
.ht-task { font-size: 12.5px; color: var(--pub-muted); }
.ht-row { font-size: 14.5px; line-height: 1.9; }
.ht-ch, .ht-dd, .ht-h { white-space: nowrap; }
.ht-ok, .ht-ch, .ht-dd { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ht-opt { font-size: 14px; border: 1.5px solid #D5DAE3; border-radius: 9px; padding: 5px 10px; }
.ht-opt.is-ok, .ht-ok, .ht-dd { border: 1.5px solid #2E7D4F; background: var(--pub-green-s); color: var(--pub-green); font-weight: 600; }
.ht-ok { border-radius: 7px; padding: 0 9px; }
.ht-e { display: inline-block; vertical-align: middle; box-sizing: border-box; border: 1.5px solid #C9CFDA; border-radius: 7px; min-width: 70px; height: 24px; }
.ht-ch { border: 1.5px solid #C9CFDA; background: var(--pub-soft); border-radius: 7px; padding: 1px 8px; font-weight: 600; }
.ht-h { font-size: 12.5px; color: var(--pub-muted); font-style: italic; }
.ht-dd { border-radius: 7px; padding: 0 6px 0 9px; }
.ht-dd::after { content: ' ▾'; color: var(--pub-muted); font-weight: 400; }
.ht-dd.ht-dd0 { border-color: #C9CFDA; background: #fff; color: var(--pub-muted); font-weight: 400; }
.ht-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ht-pics figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ht-pics img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--pub-soft); }
.ht-cap-ok, .ht-cap-hide { text-align: center; font-size: 13px; border-radius: 7px; padding: 1px 4px; }
.ht-cap-ok { font-weight: 600; color: var(--pub-green); background: var(--pub-green-s); border: 1.5px solid #2E7D4F; }
.ht-cap-hide { color: var(--pub-muted); border: 1.5px dashed #C9CFDA; }
.ht-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--pub-muted); border-top: 1px solid var(--pub-line); padding-top: 9px; }
.ht-free { color: var(--pub-green); font-weight: 600; }
@media (max-width: 900px) {
  .home-tick { flex-basis: 100%; max-width: none; margin: 0; min-height: 0; height: 460px; }
}
@media (max-width: 600px) {
  .home-tick-cols { grid-template-columns: minmax(0, 1fr); }
  .home-tick-col.is-b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tick-in { animation: none; }
}
.home-section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }
.home-section h2, .home-book h2 { font-size: 38px; font-weight: 800; }
.home-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.home-head p { font-size: 19px; }
.home-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.home-track { border: 1px solid var(--pub-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--pub-body) !important; }
.home-track h3 { font-size: 21px; }
.home-track p { font-size: 16px; flex: 1; }
.home-track-ico { color: var(--pub-ink); }
.home-track-meta { font-size: 14px; font-weight: 600; color: var(--pub-muted); }
.home-track.is-live { border: 1.5px solid var(--pub-accent); }
.home-track.is-live .home-track-meta { color: var(--pub-accent); }
.home-track.is-live:hover { background: var(--pub-accent-s); }
.home-dark { background: var(--pub-ink); color: #D5DCE8; }
.home-dark h2, .home-dark h3 { color: #fff; }
.home-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.home-steps > div { display: flex; flex-direction: column; gap: 10px; }
.home-step-n { font: 800 44px var(--pub-display); color: var(--pub-amber); line-height: 1; }
.home-steps h3 { font-size: 22px; }
.home-soon { display: inline-block; vertical-align: middle; font: 600 12px var(--pub-text); letter-spacing: .04em; text-transform: uppercase; background: var(--pub-amber-s); color: #6B4E00; border-radius: 999px; padding: 1px 8px; }
.home-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.home-levels > div { background: var(--pub-soft); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; }
.home-levels span { font-size: 14px; font-weight: 600; color: var(--pub-accent); }
.home-levels b { font: 700 17px var(--pub-display); color: var(--pub-ink); }
.home-note { font-size: 17px; }
.home-section + .home-section { padding-top: 0; }
.home-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.home-price { border: 1px solid var(--pub-line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.home-price p { flex: 1; font-size: 16px; }
.home-price-name { font-weight: 600; color: var(--pub-muted); }
.home-price-sum { font: 800 34px var(--pub-display); color: var(--pub-ink); line-height: 1.15; }
.home-price-sum small { font-size: 17px; font-weight: 600; color: var(--pub-muted); }
.home-price.is-accent { border: 2px solid var(--pub-accent); }
.home-price.is-accent .home-price-name { color: var(--pub-accent); }
.home-price.is-dark { background: var(--pub-ink); border-color: var(--pub-ink); color: #D5DCE8; }
.home-price.is-dark .home-price-name { color: var(--pub-amber); }
.home-price.is-dark .home-price-sum { color: #fff; }
.home-book { background: var(--pub-soft); border-top: 1px solid var(--pub-line); }
.home-book-row { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; padding-top: 80px; padding-bottom: 88px; }
.home-book-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.home-book-text p { font-size: 19px; }
.home-book .pub-lead { flex: 1 1 420px; max-width: 560px; margin: 0; }
@media (max-width: 900px) {
  .home-hero-row { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .home-hero h1 { font-size: 32px; }
  .home-sub { font-size: 18px; }
  .home-preview { padding: 20px; }
  .home-section { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .home-section h2, .home-book h2 { font-size: 28px; }
  .home-book-row { padding-top: 48px; padding-bottom: 56px; gap: 28px; }
  .home-ctas .pub-btn { flex: 1 1 220px; }
}

/* ═══ /personal-online-english-lessons/ ═══ */
.pp-hero-row { align-items: center; }
.pp-photo { flex: 1 1 440px; min-width: 0; max-width: 640px; margin: 0; }
.pp-photo img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 40px rgba(11,31,58,.12); }
.pp-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: var(--pub-ink); }
.pp-points li { display: flex; gap: 10px; align-items: flex-start; }
.pp-points svg { color: #2E7D4F; flex-shrink: 0; margin-top: 4px; }
.pp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pp-card { border: 1px solid var(--pub-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pp-card h3 { font-size: 20px; }
.pp-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pp-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px 32px; }
.pp-feat { display: flex; gap: 14px; align-items: flex-start; }
.pp-feat h3 { font-size: 18px; margin-bottom: 4px; }
.pp-tick { width: 34px; height: 34px; border-radius: 10px; background: var(--pub-accent-s); color: var(--pub-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.pp-price, .pp-teacher { border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pp-price { border: 2px solid var(--pub-accent); }
.pp-teacher { background: var(--pub-soft); }
.pp-price h2, .pp-teacher h2 { font-size: 28px; }
.pp-price p, .pp-teacher p { font-size: 17px; }
.pp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.pp-faq details { border: 1px solid var(--pub-line); border-radius: 12px; padding: 0 18px; }
.pp-faq summary { cursor: pointer; font: 700 17px var(--pub-display); color: var(--pub-ink); padding: 16px 0; min-height: 44px; list-style: none; display: flex; align-items: flex-start; gap: 12px; }
/* its own triangle, inside the box (the browser's marker sat outside it) */
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::before { content: ""; flex: 0 0 auto; width: 0; height: 0; margin-top: .42em; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.pp-faq details[open] summary::before { transform: rotate(90deg); }
.pp-faq details p { padding-left: 19px; }
.pp-faq details[open] summary { padding-bottom: 6px; }
.pp-faq details p { padding-bottom: 16px; font-size: 16px; }
.home-dark .home-dark-link { color: #fff !important; text-decoration: underline; }
/* the photo's credit: small and quiet, as the owner asked */
.pp-credit { font-size: 11px; color: #A9B1BF; padding-top: 10px; padding-bottom: 10px; text-align: right; }
.pub .pp-credit a { color: #A9B1BF; }
@media (max-width: 900px) {
  .pp-price, .pp-teacher { padding: 22px; }
  .pp-photo { flex-basis: 100%; }
  .pp-feats, .pp-cards, .pp-split { grid-template-columns: 1fr; }
}

/* ═══ course page (a level with a course plan) ═══ */
.cp-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--pub-muted); }
.cp-stats b { color: var(--pub-ink); font: 800 18px var(--pub-display); font-variant-numeric: tabular-nums; }
.cp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; padding-top: 36px; padding-bottom: 8px; }
.cp-tier { display: flex; gap: 12px; align-items: flex-start; }
.cp-tier div { display: flex; flex-direction: column; font-size: 15px; }
.cp-tier b { color: var(--pub-ink); }
.cp-tier span { color: var(--pub-muted); }
.cp-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.cp-dot-free { background: #2E9E5B; } .cp-dot-account { background: var(--pub-accent); } .cp-dot-sub { background: var(--pub-amber); }
.cp-units { padding-top: 12px; padding-bottom: 64px; }
.cp-unit { padding-top: 36px; }
.cp-unit-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; }
.cp-unit-head h2 { font-size: 24px; }
.cp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pub-accent); }
.cp-lesson { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--pub-line); }
.cp-num { display: flex; flex-direction: column; color: var(--pub-muted); font-size: 12px; line-height: 1.2; }
.cp-num b { font: 800 26px var(--pub-display); color: var(--pub-ink); }
.cp-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cp-main h3 { font-size: 19px; }
.cp-main h3 a { color: var(--pub-ink) !important; }
.cp-main h3 a:hover { color: var(--pub-accent) !important; }
.cp-gram { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; }
.cp-pill { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.cp-pill-new { background: var(--pub-accent-s); color: var(--pub-accent-h); }
.cp-pill-review { background: var(--pub-amber-s); color: #6B4E00; }
.cp-pill-none { background: var(--pub-soft); color: var(--pub-muted); }
.cp-words summary { cursor: pointer; font-size: 14px; color: var(--pub-muted); min-height: 32px; display: flex; align-items: center; }
.cp-words summary:hover { color: var(--pub-ink); }
.cp-words p { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 0 2px; }
.cp-words p span { font-size: 14px; border: 1px solid var(--pub-line); border-radius: 7px; padding: 1px 8px; color: var(--pub-ink); }
.cp-action { display: flex; justify-content: flex-end; }
.cp-action .pub-btn { white-space: nowrap; }
.cp-go { min-width: 168px; }
.cp-unlock { background: #fff; border-color: #C9CFDA; color: var(--pub-ink) !important; }
.cp-unlock:hover { border-color: var(--pub-ink); }
.cp-unlock-account svg { color: var(--pub-accent); }
.cp-unlock-sub svg { color: #B88500; }
.cp-soon { font-size: 14px; font-weight: 600; color: var(--pub-muted); background: var(--pub-soft); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.cp-free .cp-num b { color: #2E9E5B; }
.pub-lead-note { font-size: 14px; color: #E8EEFF; background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 760px) {
  .cp-lesson { grid-template-columns: 48px minmax(0, 1fr); }
  .cp-action { grid-column: 2; justify-content: flex-start; }
  .cp-num b { font-size: 22px; }
}

/* the booking form */
.pub-lead { background: var(--pub-ink); color: #D5DCE8; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pub-lead h2 { color: #fff; font-size: 21px; }
.pub-lead-sub { font-size: 15px; }
.pub-lead label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: #fff; }
.pub-lead input:not([type="checkbox"]) { font: 400 16px var(--pub-text); padding: 11px 12px; border: 0; border-radius: 9px; color: var(--pub-ink); background: #fff; width: 100%; }
.pub-lead .pub-consent { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 13px; color: #D5DCE8; }
.pub-lead .pub-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.pub-lead-msg { font-size: 14px; min-height: 0; }
.pub-lead-msg.is-err { color: #FFD8D8; }
.pub-lead-msg.is-ok { color: #CFE9D9; }
.pub-lead-alt { display: flex; gap: 10px; flex-wrap: wrap; }
.pub-lead-alt a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #4A5E80; color: #fff !important; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.pub-lead-alt a:hover { border-color: #fff; }
.pub-lead-alt:empty { display: none; }
.pub-lead-compact { max-width: 560px; margin: 0 auto; }
/* the lesson page's column: tighter, so it fits one screen with the dictionary */
.pub-lead-side { padding: 14px 16px; gap: 8px; border-radius: 14px; }
.pub-lead-side h2 { font-size: 18px; }
.pub-lead-side .pub-lead-sub { font-size: 14px; line-height: 1.4; }
.pub-lead-side label { gap: 3px; font-size: 13px; }
.pub-lead-side input:not([type="checkbox"]) { padding: 8px 10px; font-size: 15px; }
.pub-lead-side .pub-consent { font-size: 12px; line-height: 1.35; }
.pub-lead-side .pub-consent input { margin-top: 1px; width: 16px; height: 16px; }
.pub-lead-side .pub-btn { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.pub-lead-side .pub-lead-alt { flex-wrap: nowrap; gap: 8px; }
.pub-lead-side .pub-lead-alt a { min-height: 38px; padding: 6px 8px; font-size: 14px; gap: 6px; min-width: 0; }

/* ═══ lesson page: option B ═══ */
.pl { display: grid; grid-template-columns: 260px minmax(0, 1fr) 330px; align-items: start; min-height: calc(100vh - 65px); }
.pl-left, .pl-right { position: sticky; top: var(--pub-head); max-height: calc(100vh - var(--pub-head)); overflow-y: auto; padding: 24px 0; display: flex; flex-direction: column; gap: 18px; }
.pl-left { padding-right: 18px; border-right: 1px solid var(--pub-line); min-height: calc(100vh - 65px); }
.pl-right { padding-left: 22px; border-left: 1px solid var(--pub-line); min-height: calc(100vh - 65px); }
/* the right column is exactly one screen (below the 65px header): the booking form at the bottom keeps its
   height, the dictionary takes what is left — so the form is always whole and a long entry never moves it */
.pl-right { height: calc(100vh - 65px); max-height: none; padding: 16px 0 16px 18px; gap: 12px; }
.pl-title { font-size: 24px; font-weight: 800; }
.pl-progress { display: flex; flex-direction: column; gap: 6px; }
.pl-progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--pub-muted); }
.pl-bar { height: 6px; background: var(--pub-line); border-radius: 3px; overflow: hidden; }
.pl-bar-fill { height: 100%; width: 0; background: var(--pub-accent); border-radius: 3px; transition: width .3s ease; }
.pl-pages { display: flex; flex-direction: column; gap: 2px; }
.pl-page { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--pub-ink) !important; font-size: 15px; line-height: 1.35; }
.pl-page:hover { background: var(--pub-soft); }
.pl-page-num { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--pub-line); color: var(--pub-body); }
.pl-page.is-done .pl-page-num { background: var(--pub-green-s); color: var(--pub-green); }
.pl-page.is-current { background: var(--pub-accent-s); font-weight: 600; }
.pl-page.is-current .pl-page-num { background: var(--pub-accent); color: #fff; }

.pl-main { padding: 28px 40px 48px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pl-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pub-accent); }
.pl-page-h { font-size: 28px; }
.pl-exercises { min-height: 240px; }
.pl-exercises[aria-busy="true"] { opacity: .5; }
.pl-ssr h3 { font-size: 20px; margin: 18px 0 8px; }
.pl-ssr p, .pl-ssr ul { margin: 0 0 10px; }
.pl-empty { color: var(--pub-muted); }
.pl-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--pub-line); padding-top: 18px; flex-wrap: wrap; }
.pl-finished { color: var(--pub-muted); font-size: 15px; }
.pl-tr-btn { align-self: flex-start; margin: 8px 0 6px; font: 600 14px var(--pub-text); color: var(--pub-accent); background: var(--pub-accent-s); border: 0; border-radius: 8px; padding: 8px 12px; min-height: 36px; cursor: pointer; }

/* the app's exercises, on the public page */
.pub-lesson .sync-note, .pub-lesson .transcript-bar, .pub-lesson [data-wl-save], .pub-lesson [data-wl-saveall], .pub-lesson .ed-pencil { display: none !important; }
.pub-lesson .exercise-wrap { margin-bottom: 18px; }
/* the app's exercise text is sized for the lesson room's compact panel;
   a public page reads at the site's size (16px boxes also keep iPhones
   from zooming in when a box is tapped) */
.pub-lesson .ex-text-block, .pub-lesson .sentence-row, .pub-lesson .ex-blank, .pub-lesson .choice-list-question { font-size: 16px; }
.pub-lesson .mc-option, .pub-lesson .match-item, .pub-lesson .choice-opt, .pub-lesson .ex-dropdown { font-size: 15px; }
.pub-lesson .drag-chip, .pub-lesson .wo-list-word .wo-item { font-size: 14.5px; }
/* a photo's credit ("Sources: photo by … on Pexels"): small, grey, barely visible — links too */
.pub-lesson .ex-text-block.ex-text-sources { font-size: 11px; line-height: 1.4; color: #A9B1BF; }
.pub-lesson .ex-text-sources a { color: #A9B1BF !important; text-decoration: underline; text-decoration-color: rgba(169,177,191,.4); }
.pub-lesson .ex-text-sources a:hover { color: var(--pub-muted) !important; }
/* the page's photo credits, alone at its bottom: just the grey line, no card around it */
.pub-lesson .exercise-wrap:has(> .exercise-item:only-of-type > .ex-text-sources) { background: transparent; border: 0; box-shadow: none; padding: 0 4px; margin-top: -4px; }
.pub-lesson .exercise-item + .exercise-item:has(> .ex-text-sources),.pub-lesson .exercise-item + .exercise-item:has(.ex-text-sources:only-child) { margin-top: 6px; padding-top: 0; border-top: 0; }
.pub-lesson .group-heading, .pub-lesson .ex-text-block h3 { font-family: var(--pub-display); font-size: 20px; }
.pub-lesson .pl-exercises .exercise-wrap:last-child { margin-bottom: 4px; }

/* a speaking / writing task's invitation to a teacher (app.js ctaBannerHtml) */
.cta-banner { margin-top: 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--pub-ink); color: #D5DCE8; border-radius: 16px; padding: 20px 22px; }
.cta-banner .cta-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.cta-banner .cta-title { font: 700 20px var(--pub-display); color: #fff; }
.cta-banner p { font-size: 15px; line-height: 1.55; }
.cta-banner .cta-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; background: var(--pub-amber); color: var(--pub-ink) !important; font-weight: 600; font-size: 16px; }
.cta-banner .cta-btn:hover { background: #E0A800; }
.cta-writing { background: var(--pub-accent); color: #E8EEFF; }
.cta-writing .cta-btn { background: #fff; }
.cta-writing .cta-btn:hover { background: var(--pub-accent-s); }
@media (max-width: 900px) { .cta-banner .cta-btn { width: 100%; } }

/* dictionary */
.pl-dict { background: var(--pub-soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pl-dict-head { display: flex; align-items: center; justify-content: space-between; }
.pl-dict-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.pl-dict-hint { font-size: 12px; line-height: 1.35; color: var(--pub-muted); margin-top: 2px; }
.pl-sheet-close { display: none; width: 44px; height: 44px; border: 0; background: transparent; font-size: 18px; color: var(--pub-ink); cursor: pointer; }
.pl-dict-label input { width: 100%; font: 400 16px var(--pub-text); padding: 10px 12px; border: 1px solid #C9CFDA; border-radius: 10px; background: #fff; color: var(--pub-ink); }
.pl-dict-result { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
/* the dictionary fills the column's free space; a long entry scrolls inside its box */
.pl-right > .pl-dict { flex: 1 1 auto; min-height: 210px; }
.pl-right > .pub-lead { flex-shrink: 0; }
.pl-dict-result { flex: 1 1 0; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; }
.pl-dict-tip { color: var(--pub-muted); font-size: 14px; }
.pl-dict-word { font: 700 19px var(--pub-display); color: var(--pub-ink); }
.pl-dict-pos { font-size: 13px; color: var(--pub-muted); font-style: italic; margin-top: 4px; }
.pl-dict-defs { margin: 0; padding-left: 20px; }
.pl-dict-defs li { margin-bottom: 4px; }
.pl-dict-ex { color: var(--pub-muted); font-size: 14px; }
.pl-dict-tr { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pl-dict-tr b { color: var(--pub-ink); margin-right: 4px; }

/* about + next lessons */
.pl-about { background: var(--pub-soft); border-top: 1px solid var(--pub-line); }
.pl-about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.pl-about-grid > div { display: flex; flex-direction: column; gap: 12px; }
.pl-about h2 { font-size: 24px; }
.pl-intro { font-size: 18px; }
.pl-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-next a { display: flex; gap: 12px; align-items: center; color: var(--pub-ink) !important; font-weight: 500; }
.pl-next a span { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.pl-mbar { display: none; }

@media (max-width: 1200px) {
  .pl { grid-template-columns: 220px minmax(0, 1fr) 290px; }
  .pl-main { padding: 24px 28px 40px; }
  .pub-lead-side { padding: 14px 12px; }
  .pub-lead-side .pub-lead-alt { gap: 6px; }
  .pub-lead-side .pub-lead-alt a { font-size: 13px; padding: 6px 4px; gap: 4px; }
}

/* phone & small tablet: one column; pages as a strip; dictionary as a sheet */
@media (max-width: 900px) {
  .pub-wrap { padding-left: 16px; padding-right: 16px; }
  :root { --pub-head: 57px; }
  .pub-header-row { gap: 12px; min-height: 56px; }
  .pub-nav { display: none; }
  .pub-header-actions { margin-left: auto; gap: 12px; }
  .pub-header-cta { display: none; }
  .pub-hero-band h1 { font-size: 30px; }
  .pub-lesson-grid { grid-template-columns: 1fr; }

  .pl { display: block; min-height: 0; }
  .pl-left, .pl-right { position: static; max-height: none; overflow: visible; min-height: 0; border: 0; padding: 16px 0 0; }
  .pl-left { gap: 12px; }
  .pl-title { font-size: 24px; }
  .pl-pages { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .pl-pages::-webkit-scrollbar { display: none; }
  .pl-page { flex-shrink: 0; border: 1px solid var(--pub-line); padding: 8px 12px; min-height: 44px; }
  .pl-page.is-current { border-color: var(--pub-accent); }
  .pl-main { padding: 18px 0 24px; }
  .pl-page-h { font-size: 22px; }
  .pl-right { padding-bottom: 24px; height: auto; }
  .pl-dict { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 75vh; overflow-y: auto; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 30px rgba(11,31,58,0.25); padding: 8px 16px 24px; transform: translateY(105%); transition: transform .25s ease; visibility: hidden; background: #fff; }
  body[data-sheet="dict"] .pl-dict { transform: none; visibility: visible; }
  body[data-sheet="dict"]::after { content: ''; position: fixed; inset: 0; background: rgba(11,31,58,0.45); z-index: 55; }
  .pl-dict-result { background: var(--pub-soft); flex: none; min-height: 60px; overflow: visible; }
  .pl-right > .pl-dict { min-height: 0; }
  .pl-sheet-close { display: flex; align-items: center; justify-content: center; }
  .pl-about-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
  body.pub-lesson { padding-bottom: 72px; }
  .pl-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--pub-line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; box-shadow: 0 -6px 20px rgba(11,31,58,0.08); }
  .pl-mbar > * { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; font: 600 12px var(--pub-text); color: var(--pub-ink) !important; border-radius: 12px; cursor: pointer; }
  .pl-mbar .pl-mbar-book { flex: 1.6; background: var(--pub-accent); color: #fff !important; flex-direction: row; gap: 8px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-dict, .pl-bar-fill { transition: none; }
}

/* ═══ /lessons: the courses page (coursesBody) ═══ */
.cs { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 36px; padding-bottom: 24px; align-items: flex-start; }
.cs [hidden] { display: none !important; }
.cs-side { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 6px; }
.cs-sbtn { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1.5px solid transparent; color: var(--pub-body) !important; }
.cs-sbtn:hover { background: var(--pub-soft); }
.cs-sbtn.is-on { background: #fff; border-color: var(--pub-accent); box-shadow: 0 8px 22px rgba(31,79,216,.12); }
.cs-sbtn b { display: block; color: var(--pub-ink); font: 700 16px/1.3 var(--pub-display); }
.cs-sbtn small { display: block; font-size: 13px; color: var(--pub-muted); line-height: 1.4; }
.cs-ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.cs-ico-it { background: #E8EEFF; color: #163BA6; } .cs-ico-biz { background: #E9ECF2; color: var(--pub-ink); } .cs-ico-sales { background: #FDECE3; color: #9A3412; }
.cs-ico-doc { background: #E2F3EF; color: #0F5A52; } .cs-ico-log { background: #FFF4D1; color: #6E4B00; } .cs-ico-day { background: #F1EAFD; color: #5B21B6; }
.cs-ico-des { background: #FCE7F3; color: #9D174D; }
.cs-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cs-course { display: flex; flex-direction: column; gap: 26px; }
.cs-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pub-accent); }
.cs-course .cs-pitch { font-size: 34px; font-weight: 800; margin-top: -14px; }
.cs-bar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cs-seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--pub-soft); border-radius: 14px; padding: 4px; }
.cs-segb { min-height: 44px; padding: 6px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--pub-body) !important; display: flex; flex-direction: column; justify-content: center; line-height: 1.25; }
.cs-segb small { font-weight: 400; font-size: 12px; color: var(--pub-muted); }
.cs-segb:hover { background: rgba(255,255,255,.6); }
.cs-segb.is-on { background: #fff; color: var(--pub-ink) !important; box-shadow: 0 2px 8px rgba(11,31,58,.1); }
.cs-start { min-width: 240px; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 10px 24px rgba(31,79,216,.25); }
.cs-level { display: flex; flex-direction: column; gap: 32px; }
.cs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cs-box { background: #FAFBFC; border: 1px solid var(--pub-line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.pub .cs-lbl { font: 600 12.5px var(--pub-text); letter-spacing: .08em; text-transform: uppercase; color: var(--pub-muted); }
.cs-cefr { font-size: 14px; color: var(--pub-muted); margin-top: auto !important; }
.cs-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cs-checks li { display: flex; gap: 10px; align-items: flex-start; }
.cs-checks svg { flex: 0 0 auto; margin-top: 3px; color: var(--pub-green); }
.cs-block { display: flex; flex-direction: column; gap: 14px; }
.cs-car { overflow: hidden; }
.cs-car.is-moving { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.cs-car-in { display: flex; gap: 16px; align-items: flex-start; width: max-content; padding: 4px 0 12px; }
.cs-car.is-moving .cs-car-in { animation: cs-car-left 56s linear infinite; }
.cs-car:hover .cs-car-in { animation-play-state: paused; }
@keyframes cs-car-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.cs-car .ht-card { width: 290px; flex: 0 0 290px; text-decoration: none; }
.pub .cs-car .ht-card { color: var(--pub-ink); }
.cs-units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cs-unit { border: 1px solid var(--pub-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cs-unit-h { display: flex; gap: 12px; align-items: center; }
.cs-unit-h b { color: var(--pub-ink); font: 700 16px/1.3 var(--pub-display); }
.cs-un { flex: 0 0 30px; height: 30px; border-radius: 15px; background: var(--pub-accent-s); color: var(--pub-accent-h); font: 700 13px var(--pub-display); display: flex; align-items: center; justify-content: center; }
.cs-ls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.45; }
.cs-ls li { display: flex; gap: 8px; align-items: baseline; }
.cs-ln { flex: 0 0 22px; text-align: right; color: var(--pub-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cs-ls a { font-weight: 500; }
.cs-free { font-size: 11.5px; font-weight: 600; color: var(--pub-green); background: var(--pub-green-s); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.cs-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cs-ctas .pub-btn { text-transform: uppercase; letter-spacing: .04em; min-width: 220px; }
.cs-others { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--pub-line); padding-top: 24px; }
@media (max-width: 900px) {
  .cs-side { max-width: none; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .cs-sbtn { flex: 0 0 auto; min-width: 230px; }
  .cs-two, .cs-units { grid-template-columns: minmax(0, 1fr); }
  .cs-course .cs-pitch { font-size: 26px; }
  .cs-start, .cs-ctas .pub-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-car.is-moving .cs-car-in { animation: none; }
  .cs-car.is-moving { overflow-x: auto; }
}

/* course page: narrow banner where the free lessons end (account) and where the account lessons end (subscription) */
.cp-gate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.cp-gate > svg { flex: 0 0 auto; }
.cp-gate p { flex: 1 1 320px; margin: 0; }
.cp-gate b { color: var(--pub-ink); }
.cp-gate .pub-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.cp-gate-account { background: var(--pub-accent-s); color: var(--pub-accent-h); }
.cp-gate-sub { background: var(--pub-amber-s); color: #6E4B00; }

/* home: the "Your profession isn't listed?" card and the highlighted "free" */
.home-track.home-track-ask { border: 1.5px dashed #9DB2EE; background: #FAFBFF; }
.home-track.home-track-ask .home-track-ico { color: var(--pub-accent); }
.home-track.home-track-ask .home-track-meta { color: var(--pub-accent); font-weight: 600; }
.home-track.home-track-ask:hover { border-color: var(--pub-accent); background: var(--pub-accent-s); }
.home-free { color: #B88500; }
.pub-lead [hidden] { display: none !important; }

/* accounts (public-lesson.js bindAccount): the sign-up / log-in window */
.acc-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11,31,58,.55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.acc-overlay[hidden] { display: none; }
body.acc-open { overflow: hidden; }
.acc-box { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 28px 24px 22px; box-shadow: 0 24px 60px rgba(11,31,58,.3); margin: auto; }
.acc-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; font-size: 18px; color: var(--pub-muted); cursor: pointer; }
.acc-x:hover { background: var(--pub-soft); color: var(--pub-ink); }
.acc-body h2 { font-size: 22px; padding-right: 28px; }
.acc-note { margin-top: 8px !important; font-size: 15px; }
.acc-body form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.acc-body label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--pub-ink); }
.acc-body input:not([type="checkbox"]) { font: 400 16px var(--pub-text); padding: 11px 12px; border: 1.5px solid #C9CFDA; border-radius: 9px; color: var(--pub-ink); background: #fff; width: 100%; }
.acc-body input:focus { border-color: var(--pub-accent); outline: none; box-shadow: 0 0 0 3px var(--pub-accent-s); }
.acc-body input.acc-code { font: 700 26px var(--pub-display); letter-spacing: 8px; text-align: center; }
.acc-body .pub-btn { width: 100%; }
.acc-msg { font-size: 14px; }
.acc-msg:empty { display: none; }
.acc-msg.is-err { color: #B42318; }
.acc-msg.is-ok { color: var(--pub-green); }
.acc-small { margin-top: 12px !important; font-size: 13px; color: var(--pub-muted); }
.acc-switch { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--pub-line); font-size: 14px; }
.acc-body > .pub-btn { margin-top: 16px; }

/* the header's account link */
.pub-me { display: inline-flex; align-items: center; gap: 6px; }
.pub-me span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* /account */
.acct h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.acct-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.acct-small { margin-top: 16px !important; font-size: 14px; color: var(--pub-muted); }
.acct-welcome, .acct-ok { display: flex; align-items: center; gap: 8px; color: var(--pub-green); font-weight: 600; }
.acct-welcome { background: var(--pub-green-s); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px !important; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding-top: 32px; padding-bottom: 56px; }
.acct-card { border: 1px solid var(--pub-line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.acct-card h2 { font-size: 20px; }
.acct-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.acct-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--pub-ink); }
.acct-form input { font: 400 16px var(--pub-text); padding: 10px 12px; border: 1.5px solid #C9CFDA; border-radius: 9px; width: 100%; }
.acct-msg { font-size: 14px; }
.acct-msg.is-err { color: #B42318; }
.acct-msg.is-ok { color: var(--pub-green); }
@media (max-width: 600px) { .acc-box { padding: 24px 18px 18px; } .acct-ctas .pub-btn { flex: 1 1 100%; } }

/* /account: subscriptions (src/paddleRoute.js) */
.acct-sub { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 14px; border: 1px solid var(--pub-line); border-radius: 10px; }
.acct-sub.is-ended { opacity: .65; }
.acct-sub b { color: var(--pub-ink); }
.acct-sub span { font-size: 14px; }
.acct-warn { color: #B42318; font-weight: 600; }
.acct-sub-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.acct-sub-btns .pub-btn { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.acct-msg:empty { display: none; }
.acc-busy { margin: 18px auto 4px !important; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--pub-accent-s); border-top-color: var(--pub-accent); animation: acc-spin .8s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* /pricing, /terms, /privacy, /refunds (src/legalPages.js) */
.legal-head h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal-date { font-size: 14px; color: var(--pub-muted); margin-bottom: 14px !important; }
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 64px; }
.legal h2 { font-size: 22px; margin: 30px 0 10px; }
.legal p { margin-bottom: 12px; font-size: 16.5px; }
.legal-links { margin-top: 36px !important; padding-top: 18px; border-top: 1px solid var(--pub-line); font-size: 15px; }
.price-list { margin: 0; padding-left: 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; }
.home-price.is-dark .price-list { color: #D5DCE8; }
.price-faq-h { margin: 48px 0 16px; font-size: 26px; }
.price-faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.price-faq details { border: 1px solid var(--pub-line); border-radius: 12px; padding: 0 18px; }
.price-faq summary { cursor: pointer; font: 700 17px var(--pub-display); color: var(--pub-ink); padding: 16px 0; min-height: 44px; }
.price-faq details p { padding-bottom: 16px; font-size: 16px; }
.pub-footer-op { font-size: 13px; color: #8F9BB3; margin-top: 6px !important; }

/* paying by bank transfer (public-lesson.js, the "bank" view) */
.acc-qr { display: flex; justify-content: center; margin-top: 14px; }
.acc-qr img { width: 220px; height: 220px; max-width: 100%; object-fit: contain; border: 1px solid var(--pub-line); border-radius: 12px; background: #fff; padding: 8px; }
.acc-steps { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.acc-ref { font: 600 15px ui-monospace, Consolas, monospace; color: var(--pub-ink); letter-spacing: .03em; }
.acc-copy { font: 500 12.5px var(--pub-text); border: 1px solid var(--pub-line); background: #fff; border-radius: 6px; padding: 2px 8px; margin-left: 4px; cursor: pointer; color: var(--pub-ink); }
/* on a phone the QR can't be scanned (it is on the same screen): the MIA link first, as a button that opens
   the National Bank's page — it lists the banks, each opening its own app; the QR smaller under it, for a
   second phone. A computer: the QR as before, no button. (owner, 2026-10-16) */
.acc-paylink, .acc-paylink-note, .acc-on-phone { display: none; }
@media (max-width: 900px), (pointer: coarse) {
  .acc-paylink { display: flex; justify-content: center; width: 100%; margin-top: 16px; }
  .acc-paylink-note { display: block; text-align: center; margin: 8px 0 0; }
  .acc-on-phone { display: inline; }
  .acc-on-desk { display: none; }
  .acc-paylink ~ .acc-qr img { width: 150px; height: 150px; }
}
.acct-link { font: inherit; color: var(--pub-accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* ── the header's language switch (every page) ── */
.pub-langs { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.pub-langs a { color: var(--pub-muted) !important; padding: 4px 6px; border-radius: 6px; }
.pub-langs a:hover { color: var(--pub-ink) !important; background: var(--pub-soft); }
.pub-langs a[aria-current] { color: var(--pub-ink) !important; background: var(--pub-soft); }
.pub-footer-wide { grid-column: span 2; }
.pub-footer-wide a { display: block; }
@media (max-width: 900px) { .pub-langs { font-size: 12px; } .pub-langs a { padding: 4px 4px; } .pub-footer-wide { grid-column: auto; } }

/* ── Russian / Romanian landing pages (src/landingPages.js) ── */
.lp-stats { flex: 1 1 360px; max-width: 480px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-stat { background: #fff; border: 1px solid var(--pub-line); border-radius: 16px; padding: 22px 20px; box-shadow: 0 12px 30px rgba(11,31,58,.06); }
.lp-stat-n { font: 800 34px var(--pub-display); color: var(--pub-ink); line-height: 1.1; }
.lp-stat:first-child .lp-stat-n { color: #B88500; }
.lp-stat-l { margin-top: 6px; font-size: 15px; color: var(--pub-muted); }
.lp-intro p { font-size: 18px; }
.lp-topics-h { font-size: 22px; }
.lp-topics .pp-feat { align-items: center; }
.lp-topics .pp-feat h3 { font-size: 17px; font-weight: 600; }
.lp-free-band { background: var(--pub-soft); border-top: 1px solid var(--pub-line); border-bottom: 1px solid var(--pub-line); }
.lp-free .home-track { background: #fff; }
.lp-samples { display: flex; flex-direction: column; gap: 12px; }
.lp-samples h3 { font-size: 20px; }
.lp-price-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lp-price-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--pub-line); }
.lp-price-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--pub-line); }
.lp-pl-name { font-weight: 600; color: var(--pub-ink); }
.lp-pl-sum { font-weight: 700; color: var(--pub-ink); text-align: right; }
.lp-pl-note { grid-column: 1 / -1; font-size: 14px; color: var(--pub-muted); }
.lp-links { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.lp-links h3 { font-size: 20px; }
@media (max-width: 600px) {
  .lp-stats { gap: 10px; }
  .lp-stat { padding: 16px 14px; }
  .lp-stat-n { font-size: 26px; }
}
.lp-price-list { align-self: stretch; }
/* the box under a public lesson: a teacher for this course + the landing pages */
.pl-links { background: #fff; border: 1px solid var(--pub-line); border-left: 4px solid var(--pub-amber); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pl-links h2 { font-size: 21px; }
.pl-links p { margin: 0; }
.pl-links-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-links-more { font-size: 14px; color: var(--pub-muted); }
.pl-links-more a { font-weight: 600; }
/* a lesson's texts in Romanian and Russian: the visitor's language shown (body data-loc) */
body[data-loc="ro"] .loc-ru, body[data-loc="ru"] .loc-ro { display: none !important; }
.pl-note { margin: -4px 0 16px; }
.pl-note:empty { display: none; }
.pl-note-text { margin: 0; font-size: 15px; color: var(--pub-muted); max-width: 760px; display: inline; }
.pl-note-text strong { color: var(--pub-ink); font-weight: 600; }
.pl-loc { display: inline-flex; gap: 2px; margin-left: 10px; vertical-align: middle; }
.pl-loc button { font: 600 12px var(--pub-text); color: var(--pub-muted); background: none; border: 1px solid var(--pub-line); border-radius: 6px; padding: 2px 6px; cursor: pointer; }
body[data-loc="ro"] .pl-loc [data-set-loc="ro"], body[data-loc="ru"] .pl-loc [data-set-loc="ru"] { background: var(--pub-ink); border-color: var(--pub-ink); color: #fff; }
.pl-about-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.pl-about-h .pl-loc { margin-left: auto; }
.pl-links.loc-ro + .pl-links.loc-ru { margin-top: 0; }
.pl-about-grid > div > div[lang] { display: flex; flex-direction: column; gap: 12px; }
.cs-lazy { min-height: 240px; } .cs-lazy-err { color: var(--pub-muted); }
.pl-ssr-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 8px 0; } .pl-ssr-imgs img { width: 100%; height: auto; border-radius: 8px; }

/* ── the grammar guide (src/grammarGuide.js) ── */
.gr-meta { color: var(--pub-muted); font-size: 15px; margin: 0; }
.gr-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.gr-main { display: flex; flex-direction: column; gap: 28px; max-width: 780px; }
.gr-sec { display: flex; flex-direction: column; gap: 10px; }
.gr-sec h2 { font-size: 26px; }
.gr-sec p { font-size: 17px; margin: 0; }
.gr-ex { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gr-ex li { background: var(--pub-soft); border-left: 3px solid var(--pub-accent); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.gr-en { font-weight: 600; color: var(--pub-ink); }
.gr-tr { color: var(--pub-muted); font-size: 15px; }
.gr-lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gr-lessons a { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--pub-line); border-radius: 12px; padding: 12px 14px; color: var(--pub-body) !important; height: 100%; }
.gr-lessons a:hover { border-color: var(--pub-accent); }
.gr-lessons b { color: var(--pub-ink); }
.gr-lessons small { color: var(--pub-muted); font-size: 13px; }
.gr-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gr-side { position: sticky; top: calc(var(--pub-head) + 16px); display: flex; flex-direction: column; gap: 16px; }
.gr-list { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.gr-list a { display: flex; flex-direction: column; gap: 2px; color: var(--pub-body) !important; }
.gr-list b { color: var(--pub-ink); font-size: 17px; }
.gr-list span { font-size: 15px; color: var(--pub-muted); }
.gr-byline { color: var(--pub-muted); font-size: 14px; margin: 0; }
.gr-cta-m { display: none; }
@media (max-width: 900px) { .gr-page { grid-template-columns: 1fr; gap: 32px; } .gr-side { position: static; } .gr-sec h2 { font-size: 22px; }
  .gr-cta-m { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--pub-soft); border: 1px solid var(--pub-line); border-radius: 12px; padding: 16px; }
  .gr-cta-m b { color: var(--pub-ink); font-size: 18px; } .gr-cta-m p { margin: 0; font-size: 15px; } }

/* a course page's Romanian / Russian texts, a lesson grammar point's rule in the guide */
.cp-local { display: flex; align-items: flex-start; gap: 8px; max-width: 860px; }
.cp-local-intro { margin: 0; font-size: 17px; }
.cp-grlink { margin-left: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cp-about { background: var(--pub-soft); border-top: 1px solid var(--pub-line); }
.cp-about .pub-wrap > div { display: flex; flex-direction: column; gap: 12px; max-width: 860px; padding-top: 48px; padding-bottom: 56px; }
.cp-about p { margin: 0; font-size: 17px; }
.pl-grlink:empty { display: none; }
.pl-grlink { margin: -6px 0 16px; font-weight: 600; font-size: 15px; }
/* the courses block on the Russian / Romanian pages: free lessons under a course's name; one course alone */
.cs-freen { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: #B88500; margin-top: 2px; }
.cs-one .cs-main { flex-basis: 100%; }
/* header menu: one line per item (Russian words are long) */
.pub-nav a { white-space: nowrap; }
.pub-header-actions > * { white-space: nowrap; }
@media (max-width: 1360px) { .pub-header-row { gap: 18px; } .pub-nav { gap: 16px; font-size: 14px; } .pub-header-actions { gap: 12px; font-size: 14px; } }
@media (max-width: 1180px) { .pub-header-cta { padding-left: 12px; padding-right: 12px; font-size: 13px; } .pub-nav { gap: 12px; } }
@media (max-width: 1280px) { .pub-header-actions.is-in .pub-header-cta { display: none; } }
/* a level's curriculum: the first units, fading out, until "See the full curriculum" */
.cs-units-wrap.is-collapsed { max-height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.cs-more { display: flex; justify-content: center; margin-top: -8px; }
@media (max-width: 900px) { .cs-units-wrap.is-collapsed { max-height: 280px; } }
.cs-ctas-center { justify-content: center; }
/* the landing pages' prices: lessons with a teacher and learning on your own as two panels; the form beside them */
.lp-price-split { align-items: start; }
.lp-price-split .pp-price { gap: 16px; align-items: stretch; }
.lp-price-part { border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.lp-price-part:first-of-type { background: var(--pub-accent-s); }
.lp-price-part-solo { background: var(--pub-soft); border: 1px solid var(--pub-line); }
.lp-price-part p { margin: 0; font-size: 16px; }
.lp-price-part .lp-price-h { margin: 0; }
.lp-teacher-h { font: 700 18px var(--pub-display); color: var(--pub-ink); margin: 8px 0 0; padding-top: 14px; border-top: 1px solid rgba(31, 79, 216, .18); }
.lp-price-form { position: sticky; top: calc(var(--pub-head) + 16px); }
.lp-price-form .pub-lead { width: 100%; max-width: none; }
@media (max-width: 900px) { .lp-price-form { position: static; } .lp-price-part { padding: 16px; } }
/* a landing page's hero with the exercise carousel and the numbers under it */
.lp-hero-side { flex: 1 1 460px; max-width: 580px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.lp-hero-side .home-tick { flex: none; max-width: none; margin: -40px 0 0; min-height: 0; height: 430px; }
.lp-hero-side .home-tick-cta { bottom: 24px; }
.lp-hero-side .lp-stats { flex: none; max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-hero-side .lp-stat { padding: 14px 14px; box-shadow: 0 8px 20px rgba(11,31,58,.05); }
.lp-hero-side .lp-stat-n { font-size: 24px; }
.lp-hero-side .lp-stat-l { font-size: 13px; }
@media (max-width: 900px) {
  .lp-hero-side { flex-basis: 100%; max-width: none; }
  .lp-hero-side .home-tick { margin: 0; height: 380px; }
  .lp-hero-side .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lp-hero-side .lp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 900px) { .lp-hero-side .lp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-free-band.is-plain .home-section { padding-top: 48px; }
/* the free lessons page's first section: the page's text, the numbers on the right */
.lp-free-top-row { align-items: center; padding-top: 64px; padding-bottom: 72px; }
.lp-intro-lead { font: 700 24px/1.3 var(--pub-display); color: var(--pub-ink); margin: 0; }
.lp-free-top .lp-intro p { font-size: 18px; margin: 0; max-width: 680px; }
.lp-stats-free { align-self: center; }

/* the phone menu: the ☰ button opens the header's menu as a panel under it */
.pub-burger { display: none; }
.pub-nav-cta { display: none; }
/* (from 1100 px down, not 900: with the Wordgame in the menu, the RU header did not fit at ~1000 px) */
@media (max-width: 1100px) {
  .pub-nav { display: none; }
  .pub-header-actions { margin-left: auto; }
  .pub-header-cta { display: none; }
  .pub-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0 9px; border: 1px solid var(--pub-line); border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
  .pub-burger span { display: block; height: 2px; border-radius: 2px; background: var(--pub-ink); transition: transform .2s, opacity .2s; }
  .pub-header.is-menu .pub-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .pub-header.is-menu .pub-burger span:nth-child(2) { opacity: 0; }
  .pub-header.is-menu .pub-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .pub-header.is-menu .pub-nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--pub-line); box-shadow: 0 16px 30px rgba(11,31,58,.12); padding: 8px 16px 16px; font-size: 17px; }
  .pub-header.is-menu .pub-nav a { padding: 14px 4px; border-bottom: 1px solid var(--pub-line); white-space: normal; }
  .pub-header.is-menu .pub-nav a.pub-nav-cta { display: block; margin-top: 14px; border: 0; border-radius: 12px; background: var(--pub-accent); color: #fff !important; text-align: center; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { .pub-burger span { transition: none; } }
/* logged in, on a phone: the Classroom link moves into the ☰ menu, the name shows as its icon only */
.pub-nav-phone { display: none; }
@media (max-width: 600px) {
  .pub-header-actions .pub-classroom { display: none; }
  .pub-header-actions .pub-me span { display: none; }
  .pub-header.is-menu .pub-nav a.pub-nav-phone { display: block; }
}
@media (max-width: 380px) { .pub-logo > span:last-child { display: none; } }
@media (max-width: 600px) {
  .pub-header-actions > .pub-login[data-auth] { display: none; }   /* "Log in" moves into the ☰ menu */
  .pub-logo { font-size: 16px; gap: 8px; }
}
.pub-burger span { width: 20px; align-self: center; }   /* (a button does not stretch them) */
/* a level's grammar topics: a row each, with its "study" button (owner, 2026-10-15) */
.gr-list { list-style: none; padding-left: 0; counter-reset: gr; }
.gr-list li { counter-increment: gr; }
.gr-list li > a { flex-direction: row; align-items: center; gap: 16px; border: 1px solid var(--pub-line); border-radius: 14px; padding: 14px 18px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.gr-list li > a::before { content: counter(gr); flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--pub-soft); color: var(--pub-ink); font: 700 14px var(--pub-text); display: flex; align-items: center; justify-content: center; }
.gr-list li > a:hover { border-color: var(--pub-accent); box-shadow: 0 8px 20px rgba(31,79,216,.10); }
.gr-li-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gr-study { flex: none; padding: 9px 16px; border-radius: 10px; background: var(--pub-accent); color: #fff; font: 600 15px var(--pub-text); white-space: nowrap; }
.gr-list li > a:hover .gr-study { background: var(--pub-accent-h); }
@media (max-width: 600px) {
  .gr-list li > a { flex-wrap: wrap; padding: 12px 14px; }
  .gr-li-text { flex-basis: calc(100% - 46px); }
  .gr-study { margin-left: 46px; padding: 7px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .gr-list li > a { transition: none; } }
.gr-list span.gr-study { color: #fff; font-size: 15px; }   /* (over .gr-list span) */ @media (max-width: 600px) { .gr-list span.gr-study { font-size: 14px; } }
/* the home page's intro with its four numbers beside it */
.lp-intro-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.lp-intro-row .lp-intro { flex: 1 1 520px; }
.lp-intro-row .lp-stats { flex: 1 1 380px; max-width: 480px; }

/* ── the Wordgame (src/wordgame.js, public/js/wordgame.js) ── */
.pub-new { font-size: 11px; background: var(--pub-amber-s); color: #6B4E00; border-radius: 999px; padding: 1px 7px; margin-left: 2px; font-weight: 600; vertical-align: 1px; }
/* the section page (owner, 2026-10-20): a tile per game, the chosen one's options in the panel */
.wg-top { padding-top: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.wg-top h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-top: 8px; }
.wg-lead { margin: 6px 0 0; font-size: 18px; }
.wg-pick { padding-top: 26px; padding-bottom: 32px; }
/* (ten games — owner, 2026-10-21: two rows of five on a desktop, every tile the same width) */
.wg-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.wg-tile, .wg-tile[data-direct] { grid-column: auto; }
.tp-box { width: 112px; height: 112px; align-self: center; }
.wg-tile { border: 1px solid var(--pub-line); background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; color: var(--pub-body); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.wg-tile:hover { border-color: var(--pub-accent); }
.wg-tile.is-on { border-color: var(--pub-accent); box-shadow: 0 0 0 2px var(--pub-accent); background: #F7F9FF; }
.wg-tile-pic { height: 132px; border-radius: 10px; background: var(--pub-soft); padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; }
.wg-tile-mark, .wg-tile-chev { display: none; }
.wg-tile-text { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 4px; }
.wg-tile-text b { font: 700 17px var(--pub-display); color: var(--pub-ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wg-tile-text small { font-size: 14px; line-height: 1.45; color: var(--pub-muted); }
/* the tiles' little pictures */
.tp-row { display: flex; gap: 4px; flex-wrap: wrap; }
.tp-built { border-bottom: 2px solid var(--pub-line); padding-bottom: 8px; }
.tp-chip { font-size: 11px; border: 1px solid var(--pub-line); background: #fff; border-radius: 6px; padding: 0 6px; color: var(--pub-ink); }
.tp-line { font-size: 12px; line-height: 1.6; color: var(--pub-ink); }
.tp-gap { display: inline-block; min-width: 56px; border-bottom: 2px dashed #9AA8C0; background: var(--pub-accent-s); vertical-align: bottom; height: 1.3em; }
.tp-gap.is-ok { min-width: 0; height: auto; background: #E7F6EC; color: #1F7A45; border-bottom: 2px solid #1F7A45; padding: 0 4px; font-weight: 600; }
.tp-tile { font-size: 11px; background: #fff; border: 1px solid #C9D2E2; border-radius: 6px; padding: 1px 6px; color: var(--pub-ink); }
.tp-tile.is-on { background: var(--pub-accent-s); border-color: #AFC0EE; }
.tp-pairs, .tp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.tp-opts { gap: 4px; }
.tp-card { font-size: 11px; background: #fff; border: 1px solid #C9D2E2; color: var(--pub-ink); border-radius: 6px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-opts .tp-card { font-size: 10px; padding: 1px 5px; }
.tp-card.is-ok { background: #E7F6EC; border-color: #1F7A45; color: #1F7A45; }
.tp-card.is-sel { background: var(--pub-accent); border-color: var(--pub-accent-h); color: #fff; }
.tp-bar { height: 4px; border-radius: 4px; background: #DDE2EA; }
.tp-bar i { display: block; width: 62%; height: 4px; border-radius: 4px; background: var(--pub-accent); }
.tp-word { text-align: center; font: 800 20px var(--pub-display); color: var(--pub-ink); }
.tp-grid { display: grid; gap: 4px; justify-content: center; }
.tp-grid > span { display: grid; grid-template-columns: repeat(5, 23px); gap: 4px; }
.tp-grid i { height: 23px; border-radius: 3px; display: grid; place-items: center; font: 800 12px var(--pub-display); font-style: normal; color: #fff; }
.tp-grid .tp-g { background: var(--gw-g); } .tp-grid .tp-y { background: var(--gw-y); } .tp-grid .tp-x { background: var(--gw-x); }
.tp-grid .tp-e { border: 2px solid #D5DBE5; box-sizing: border-box; }
.tp-hunt { width: 100%; max-width: 220px; height: auto; align-self: center; font-family: var(--pub-text); }
/* the panel */
.wg-panel { margin-top: 18px; border: 2px solid var(--pub-accent); border-radius: 16px; background: #fff; padding: 22px 26px; display: grid; gap: 18px; }
.wg-panel [hidden], .wg-panel[hidden] { display: none !important; }
.wg-panel-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.wg-panel-head h2 { font-size: 24px; }
.wg-panel-head span { font-size: 15px; color: var(--pub-muted); }
.wg-panel-opts { display: grid; gap: 18px; }
.wg-panel-row { display: grid; gap: 8px; }
.wg-panel-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pub-muted); }
.wg-panel-note { margin: 0; font-size: 15px; }
.wg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wg-chip { border: 1px solid var(--pub-line); background: #fff; color: var(--pub-ink); border-radius: 999px; padding: 7px 14px; font: 500 14px var(--pub-text); cursor: pointer; }
.wg-chip:hover:not(:disabled) { border-color: var(--pub-accent); }
.wg-chip[aria-pressed="true"] { background: var(--pub-accent-s); color: var(--pub-accent); border-color: var(--pub-accent); font-weight: 600; }
.wg-chip:disabled { opacity: .5; cursor: default; }
.wg-chip small { font-size: 12px; color: var(--pub-muted); font-weight: 400; }
.wg-chip.is-mine { color: #8A6500; }
.wg-panel .wg-levels { margin-top: 0; }
.wg-bottom { padding-bottom: 48px; }
@media (max-width: 1000px) { .wg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wg-tile, .wg-tile[data-direct] { grid-column: auto; } }
@media (max-width: 720px) {
  /* a phone: the games as a list; the chosen one's options open right under it */
  .wg-top { padding-top: 22px; }
  .wg-lead { font-size: 15px; }
  .wg-pick { padding-top: 14px; }
  .wg-tiles { grid-template-columns: 1fr; gap: 10px; }
  .wg-tile { flex-direction: row; align-items: center; gap: 12px; border-radius: 14px; }
  .wg-tile.is-on { box-shadow: 0 0 0 1px var(--pub-accent); }
  .wg-tile-pic { display: none; }
  .wg-tile-mark { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 10px; font: 800 19px var(--pub-display); background: var(--pub-accent-s); color: var(--pub-accent); }
  .wg-tile-mark-guess { background: var(--gw-g); color: #fff; }
  .wg-tile-mark-hunt { background: #F7C948; color: #4A3500; }
  .wg-tile-mark-box { background: #FFB59A; color: #5A2A12; }
  .wg-tile-mark-hot { background: #D95B4B; color: #fff; }
  .wg-tile-mark-links { background: var(--gw-g); color: #fff; }
  .wg-tile-mark-phrase { background: #7A4FD0; color: #fff; }
  .wg-tile-mark-pairs, .wg-tile-mark-choice { background: var(--pub-amber-s); color: #6B4E00; }
  /* the puzzles' pictures (owner, 2026-10-21): on a light ground, the colours are in the picture */
  .wg-tile-mark.has-icon { background: #EEF2F8; padding: 0; overflow: hidden; }
  .wg-tile-mark.has-icon svg { display: block; }
  .wg-tile-text { flex: 1; padding: 0; gap: 1px; }
  .wg-tile-text b { font-size: 16px; }
  .wg-tile-text small { font-size: 13px; line-height: 1.35; }
  .wg-tile-chev { display: block; font-size: 18px; color: #9AA8C0; transition: transform .15s; }
  .wg-tile.is-open .wg-tile-chev { transform: rotate(180deg); }
  .wg-panel { margin-top: 0; padding: 16px; gap: 14px; border-width: 1px; }
  .wg-panel-head h2 { font-size: 19px; }
  .wg-panel .wg-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-panel .wg-go { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; }
  .wg-panel .wg-go-btn { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .wg-tile, .wg-tile-chev { transition: none; } }
.wg-levels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.wg-level { border: 1px solid var(--pub-line); background: #fff; border-radius: 12px; padding: 10px 16px; display: grid; color: var(--pub-ink) !important; font-weight: 600; text-decoration: none; }
.wg-level small { color: var(--pub-muted); font-weight: 400; font-size: 12px; }
.wg-level[aria-pressed="true"] { background: var(--pub-ink); color: #fff !important; border-color: var(--pub-ink); }
.wg-level[aria-pressed="true"] small { color: #B7C2D6; }
.wg-level.is-soon { opacity: .5; }
.wg-go { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--pub-line); padding-top: 24px; }
.wg-go-btn { background: var(--pub-amber); color: var(--pub-ink) !important; border-radius: 12px; padding: 15px 28px; font: 800 17px var(--pub-display); letter-spacing: .02em; text-decoration: none; }
.wg-go-btn:hover { filter: brightness(.96); }
.wg-go p { margin: 0; color: var(--pub-muted); font-size: 15px; }
.wg-go p b { color: var(--pub-ink); }

.wg-bar { background: var(--pub-soft); border-bottom: 1px solid var(--pub-line); }
.wg-bar-row { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wg-bar h1 { font-size: 24px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wg-hint { font: 400 15px var(--pub-text); color: var(--pub-muted); }
.wg-hint b { color: var(--pub-ink); font-weight: 600; }
.wg-crumb { font-size: 14px; color: var(--pub-muted); }
.wg-meter { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--pub-ink); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.wg-score { display: flex; gap: 12px; }
.wg-score .r { color: #1F7A45; font-weight: 600; }
.wg-score .w { color: #C2372B; font-weight: 600; }
.wg-meter-bar { width: 150px; height: 8px; border-radius: 99px; background: #DDE2EA; overflow: hidden; }
.wg-meter-bar i { display: block; height: 100%; width: 0; background: var(--pub-accent); transition: width .2s; }
.wg-game { display: grid; grid-template-columns: 320px minmax(0, 1fr); padding-bottom: 48px; }
.wg-wl { border-right: 2px solid #1F7A45; padding: 22px 22px 22px 0; position: sticky; top: var(--pub-head); align-self: start; max-height: calc(100vh - var(--pub-head)); overflow: auto; }
.wg-wl h2 { font-size: 19px; display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.wg-wl h2 small { font: 500 13px var(--pub-text); color: var(--pub-muted); }
.wg-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.wg-words li.gone { display: none; }
.wg-word { width: 100%; text-align: left; border: 1px solid transparent; background: none; border-radius: 8px; padding: 4px 8px; font: 15px/1.35 var(--pub-text); color: var(--pub-ink); cursor: pointer; -webkit-user-select: none; user-select: none; }
.wg-word:hover { background: var(--pub-soft); border-color: var(--pub-line); }
.wg-word.sel { background: var(--pub-accent); color: #fff; }
.wg-st { padding: 22px 0 22px 30px; min-width: 0; }
.wg-sentences { margin: 0; padding: 0; list-style: none; counter-reset: wg; display: grid; gap: 2px; }
.wg-sentences li { counter-increment: wg; display: flex; gap: 12px; padding: 7px 8px; border-radius: 10px; font-size: 16px; color: var(--pub-ink); line-height: 1.95; }
.wg-sentences li::before { content: counter(wg); color: var(--pub-muted); font-size: 14px; min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.wg-sentences li:nth-child(odd) { background: #FAFBFC; }
.wg-slot { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 30px; vertical-align: baseline; border: 0; border-bottom: 2px dashed #9AA8C0; background: var(--pub-accent-s); border-radius: 6px 6px 0 0; padding: 0 10px; margin: 0 3px; color: var(--pub-accent); font: 600 15px var(--pub-text); cursor: pointer; -webkit-user-select: none; user-select: none; }
.wg-slot:empty::after { content: "· · ·"; color: #9AA8C0; font-weight: 400; }
.wg-slot.filled { border-bottom-style: solid; border-color: var(--pub-accent); }
.wg-slot.right { background: #E7F6EC; color: #1F7A45; border-color: #1F7A45; }
.wg-slot.wrong { background: #FDECEA; color: #C2372B; border-color: #C2372B; }
.wg-slot.shown { background: #EEF1F6; color: #5B6B82; border-color: #A9B4C6; }   /* filled by "Show the answers" */
[data-wg-game] [data-count] { font-weight: 600; color: var(--pub-ink); }
.wg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-left: 44px; }
.wg-result { margin: 18px 0 0 44px; padding: 14px 18px; border-radius: 12px; background: #E7F6EC; color: #1F7A45; font-weight: 600; }
.wg-dict { position: fixed; z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; background: #fff; border: 1px solid var(--pub-line); border-radius: 14px; box-shadow: 0 20px 44px rgba(11,31,58,.18); padding: 14px 18px; display: grid; gap: 8px; }
.wg-dict-top { display: flex; align-items: baseline; gap: 10px; }
.wg-dict-w { font: 800 20px var(--pub-display); color: var(--pub-ink); }
.wg-dict-x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--pub-muted); cursor: pointer; padding: 0 4px; }
.wg-dict-msg { margin: 0; color: var(--pub-muted); font-size: 14px; }
.wg-dict-pos { font-size: 13px; font-style: italic; color: var(--pub-muted); }
.wg-dict-defs { margin: 0; padding-left: 20px; font-size: 15px; color: var(--pub-ink); display: grid; gap: 4px; }
.wg-dict-ex { color: var(--pub-muted); font-size: 14px; font-style: italic; }
.wg-dict-tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 14px; border-top: 1px solid var(--pub-line); padding-top: 8px; color: var(--pub-ink); }
.wg-dict-tr span { font: 700 11px var(--pub-text); letter-spacing: .06em; color: var(--pub-accent); background: var(--pub-accent-s); border-radius: 6px; padding: 2px 6px; align-self: start; }
.wg-dict[hidden], .wg-levels[hidden], .wg-result[hidden], .wg-save-wrong[hidden], .mw-list tr[hidden], .mw-pill[hidden] { display: none; }
/* ── the Wordgame's "My words" (owner, 2026-10-20): the invitation, ☆ / ★, progress, the member's dictionary ── */
.wg-join { margin-top: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--pub-amber-s); border: 1px solid #F3D982; border-radius: 12px; padding: 14px 18px; }
.wg-join b { display: block; font: 700 17px var(--pub-display); color: var(--pub-ink); }
.wg-join p { margin: 2px 0 0; font-size: 15px; color: var(--pub-body); max-width: 64ch; }
.wg-join .pub-btn { margin-left: auto; white-space: nowrap; }
.wg-my-link { font-weight: 600; color: var(--pub-accent); }
.wg-words li { display: flex; align-items: center; gap: 2px; }
.wg-star { flex: none; width: 28px; height: 28px; border: 0; background: none; border-radius: 7px; color: #A9B4C6; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.wg-star:hover { background: var(--pub-soft); color: var(--pub-amber); }
.wg-star.on { color: var(--pub-amber); }
.wg-prog { flex: none; margin-left: 4px; font-size: 12px; color: var(--pub-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wg-prog.is-learned { color: #1F7A45; font-weight: 600; }
.wg-plus { display: inline-block; margin-left: 8px; font: 600 12px var(--pub-text); color: #1F7A45; background: #E7F6EC; border-radius: 99px; padding: 0 8px; line-height: 20px; vertical-align: middle; white-space: nowrap; }
.wg-save-wrong { margin-top: 12px; padding-left: 44px; }
.wg-saved-note { margin: 0; color: #1F7A45; font-weight: 500; }
.wg-dict-save { justify-self: start; padding: 6px 12px; font-size: 14px; }
.wg-dict-save.is-on { color: #8A6500; }
/* the member's dictionary */
.mw { padding-top: 26px; padding-bottom: 56px; display: grid; gap: 18px; }
.mw > * { min-width: 0; }   /* (a grid item would stretch to the table; the table scrolls in its own box) */
.mw-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mw-top h1 { margin: 0; font-size: 30px; }
.mw-top .pub-btn { margin-left: auto; }
.mw-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; color: var(--pub-muted); }
.mw-stats b { color: var(--pub-ink); font-variant-numeric: tabular-nums; }
.mw-lg b { color: #1F7A45; }
.mw-few, .mw-note { margin-left: auto; font-size: 14px; color: var(--pub-muted); }
.mw-note { margin: 0; background: var(--pub-amber-s); border-radius: 10px; padding: 10px 14px; color: var(--pub-body); }
.mw-tools { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mw-tabs { display: flex; gap: 4px; background: var(--pub-soft); border-radius: 10px; padding: 3px; }
.mw-tabs button { border: 0; background: none; font: 500 14px var(--pub-text); color: var(--pub-body); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.mw-tabs button[aria-pressed="true"] { background: #fff; color: var(--pub-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(11,31,58,.12); }
.mw-goal { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--pub-body); flex-wrap: wrap; }
.mw-goal input { width: 64px; font: 600 16px var(--pub-text); color: var(--pub-ink); padding: 6px 8px; border: 1px solid var(--pub-line); border-radius: 8px; text-align: center; }
.mw-list { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--pub-line); border-radius: 14px; }
.mw-list table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.mw-list th { text-align: left; font: 600 12px var(--pub-text); letter-spacing: .06em; text-transform: uppercase; color: var(--pub-muted); padding: 11px 18px; border-bottom: 1px solid var(--pub-line); }
.mw-list td { padding: 11px 18px; border-bottom: 1px solid var(--pub-line); vertical-align: middle; }
.mw-list tr:last-child td { border-bottom: 0; }
.mw-term { font-weight: 600; color: var(--pub-ink); }
.mw-term small { display: block; font-weight: 400; font-size: 13px; color: var(--pub-muted); }
.mw-prog { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--pub-ink); }
.mw-bar { width: 110px; height: 7px; border-radius: 99px; background: #DDE2EA; overflow: hidden; }
.mw-bar i { display: block; height: 100%; background: var(--pub-accent); }
.mw-pill { font: 600 12px var(--pub-text); color: #1F7A45; background: #CDEBD8; border-radius: 99px; padding: 2px 9px; }
.mw-list tr.is-learned td { background: #E7F6EC; }
.mw-list tr.is-learned .mw-term { color: #1F7A45; }
.mw-list tr.is-learned .mw-bar i { background: #1F7A45; }
.mw-from { font-size: 13px; color: var(--pub-muted); }
.mw-acts { display: flex; gap: 6px; justify-content: flex-end; }
.mw-acts .pub-btn { padding: 6px 12px; font-size: 13px; }
.mw-acts [data-sure] { color: #C2372B; border-color: #C2372B; }
.mw-acts .mw-learn { color: #1F7A45; border-color: #9FD3B2; }
.mw-acts .mw-learn:hover { background: #E7F6EC; }
.mw-acts [hidden] { display: none; }
.mw-empty { background: #fff; border: 1px dashed var(--pub-line); border-radius: 14px; padding: 22px; display: grid; gap: 12px; justify-items: start; }
.mw-empty p { margin: 0; max-width: 62ch; }
.mw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 720px) {
  .wg-join .pub-btn, .mw-top .pub-btn { margin-left: 0; }
  .wg-save-wrong { padding-left: 0; }
  /* the dictionary as cards: the word and its buttons, the progress under them ("Saved from" left out) */
  .mw-list table { min-width: 0; }
  .mw-list thead, .mw-list td.mw-from { display: none; }
  .mw-list tr { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "term" "prog" "acts"; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--pub-line); }
  .mw-list .mw-acts { justify-content: flex-start; }
  .mw-list tr:last-child { border-bottom: 0; }
  .mw-list td { padding: 0; border: 0; }
  .mw-list td.mw-term { grid-area: term; }
  .mw-list td:nth-child(2) { grid-area: prog; }
  .mw-list td:nth-child(4) { grid-area: acts; }
  .mw-list tr.is-learned, .mw-list tr.is-learned td { background: #E7F6EC; }
  .mw-bar { flex: 1; max-width: 160px; }
}
@media (max-width: 860px) {
  .wg-game { grid-template-columns: 1fr; }
  .wg-wl { position: sticky; top: var(--pub-head); background: #fff; z-index: 2; border-right: 0; border-bottom: 2px solid #1F7A45; padding: 10px 0; max-height: none; }
  .wg-wl h2 { margin-bottom: 6px; font-size: 16px; }
  .wg-words { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .wg-words li { flex: none; }
  .wg-word { border-color: var(--pub-line); white-space: nowrap; }
  .wg-st { padding: 12px 0; }
  .wg-sentences li { padding: 6px 2px; font-size: 15px; }
  .wg-actions, .wg-result { margin-left: 0; padding-left: 0; }
  .wg-meter { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .wg-meter-bar i { transition: none; } }
/* ── the Wordgame's games (owner, 2026-10-20): the game choice, the switcher, Sentence builder,
   Match pairs, Quick choice (public/js/wordgame-play.js) ── */
.wg-games { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; margin-top: -4px; }
.wg-games a, .wg-games span { font-size: 14px; border-radius: 999px; padding: 4px 12px; border: 1px solid var(--pub-line); background: #fff; color: var(--pub-ink); text-decoration: none; white-space: nowrap; }
.wg-games a:hover { border-color: var(--pub-accent); color: var(--pub-accent); }
.wg-games span[aria-current] { background: var(--pub-ink); border-color: var(--pub-ink); color: #fff; font-weight: 600; }
.wg-mine-more { font-size: 14px; color: var(--pub-muted); }
.wg-mine-more a, .mw-more a { color: var(--pub-accent); font-weight: 500; }
.mw-more { margin-top: -8px; }
.wg2 { padding-top: 22px; padding-bottom: 56px; }
.wg2 [hidden] { display: none !important; }
.wg2-extra { font-weight: 600; color: var(--pub-ink); }
.wg2-card { display: grid; gap: 14px; max-width: 900px; }
.wg2-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wg2-msg { margin: 0; min-height: 24px; font-size: 15px; color: var(--pub-muted); }
.wg2-msg.is-ok { color: #1F7A45; font-weight: 600; }
.wg2-msg.is-bad { color: #C2372B; }
.wg2-msg.is-shown { color: #5B6B82; }
.wg2-msg.is-up { color: #8A6500; font-weight: 600; }
.wg2-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.wg2-seg { display: inline-flex; border: 1px solid var(--pub-line); border-radius: 10px; overflow: hidden; background: #fff; }
.wg2-seg button { border: 0; background: none; padding: 7px 14px; font: 500 14px var(--pub-text); color: var(--pub-body); cursor: pointer; }
.wg2-seg button + button { border-left: 1px solid var(--pub-line); }
.wg2-seg button[aria-pressed="true"] { background: var(--pub-ink); color: #fff; }
.wg2-best { font-size: 14px; color: var(--pub-muted); }
/* Sentence builder */
.sb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wg2-dots { display: flex; gap: 6px; }
.wg2-dots i { width: 10px; height: 10px; border-radius: 50%; background: #DDE2EA; }
.wg2-dots i.is-now { background: var(--pub-accent); }
.wg2-dots i.is-ok { background: #1F7A45; }
.wg2-dots i.is-shown { background: #A9B4C6; }
.sb-key { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--pub-muted); }
.sb-key b { color: var(--pub-ink); }
.sb-line { min-height: 72px; border-bottom: 2px solid var(--pub-line); padding: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.sb-line:empty::before { content: "Tap the words below in the right order"; color: #9AA8C0; font-size: 15px; align-self: center; }
.sb-bank { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; }
.wg2-tile { border: 1px solid #C9D2E2; border-bottom-width: 3px; background: #fff; color: var(--pub-ink); border-radius: 10px; padding: 6px 13px; font: 17px/1.35 var(--pub-text); cursor: pointer; -webkit-user-select: none; user-select: none; }
.wg2-tile:hover { border-color: var(--pub-accent); }
.wg2-tile.is-used { visibility: hidden; }
.sb-line .wg2-tile { background: var(--pub-accent-s); border-color: #AFC0EE; }
.sb-line .wg2-tile.is-bad { background: #FDECEA; border-color: #C2372B; color: #C2372B; }
.sb-line .wg2-tile.is-good { background: #E7F6EC; border-color: #1F7A45; color: #1F7A45; }
.sb-line .wg2-tile.is-shown { background: #EEF1F6; border-color: #A9B4C6; color: #5B6B82; }
/* Match pairs */
.mp-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.mp-board.is-def { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); }
.mp-col { display: grid; gap: 8px; align-content: start; }
.mp-card { text-align: left; border: 1px solid #C9D2E2; border-bottom-width: 3px; background: #fff; color: var(--pub-ink); border-radius: 10px; padding: 9px 12px; font: 15px/1.35 var(--pub-text); min-height: 48px; cursor: pointer; transition: opacity .35s; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.mp-board.is-def [data-right] .mp-card { font-size: 14px; color: var(--pub-body); }
.mp-card:hover { border-color: var(--pub-accent); }
.mp-card.is-sel { background: var(--pub-accent); border-color: var(--pub-accent-h); color: #fff !important; }
.mp-card.is-bad { background: #FDECEA; border-color: #C2372B; color: #C2372B !important; animation: wg2-shake .3s; }
.mp-card.is-done { background: #E7F6EC; border-color: #1F7A45; color: #1F7A45 !important; opacity: .55; cursor: default; }
/* Quick choice */
.qc-bar { height: 6px; background: #DDE2EA; border-radius: 99px; overflow: hidden; }
.qc-bar i { display: block; height: 100%; background: var(--pub-accent); transform-origin: left; transition: transform .25s linear; }
.qc-bar.is-low i { background: #C2372B; }
.qc-intro { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 14px 0; }
.qc-intro p { margin: 0; max-width: 48ch; }
.qc-intro .wg2-opts { justify-content: center; }
.qc-big { font: 800 44px var(--pub-display); color: var(--pub-ink); }
.qc-intro .wg-go-btn { border: 0; cursor: pointer; }
.qc-play { display: grid; gap: 4px; }
.qc-top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.qc-chip { font: 600 13px var(--pub-text); color: var(--pub-accent); background: var(--pub-accent-s); border-radius: 99px; padding: 2px 10px; }
.qc-chip.is-up { background: var(--pub-amber-s); color: #6B4E00; }
.qc-streak { display: flex; gap: 4px; margin-left: auto; }
.qc-streak i { width: 18px; height: 6px; border-radius: 3px; background: #DDE2EA; }
.qc-streak i.is-on { background: var(--pub-amber); }
.qc-word { font: 800 clamp(30px, 5vw, 44px) var(--pub-display); color: var(--pub-ink); text-align: center; margin: 12px 0 18px; overflow-wrap: anywhere; }
.qc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qc-opts.is-def { grid-template-columns: 1fr; }
.qc-opt { display: flex; gap: 10px; align-items: baseline; text-align: left; border: 1px solid #C9D2E2; border-bottom-width: 3px; background: #fff; color: var(--pub-ink); border-radius: 10px; padding: 12px 14px; font: 16px/1.4 var(--pub-text); cursor: pointer; }
.qc-opt kbd { font: 600 12px var(--pub-text); color: var(--pub-muted); border: 1px solid var(--pub-line); border-radius: 4px; padding: 0 5px; }
.qc-opt:hover { border-color: var(--pub-accent); }
.qc-opt.is-ok { background: #E7F6EC; border-color: #1F7A45; color: #1F7A45; }
.qc-opt.is-bad { background: #FDECEA; border-color: #C2372B; color: #C2372B; animation: wg2-shake .3s; }
.qc-opts.is-locked .qc-opt { cursor: default; }
.qc-msg { text-align: center; margin-top: 10px; }
/* the end of a game */
.wg2-fin { max-width: 900px; background: var(--pub-soft); border: 1px solid var(--pub-line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 14px; }
.wg2-fin h2 { font-size: 24px; }
.wg2-nums { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--pub-muted); font-variant-numeric: tabular-nums; }
.wg2-nums b { display: block; font: 800 26px var(--pub-display); color: var(--pub-ink); }
.wg2-sub { margin: 0; font-size: 14px; color: var(--pub-muted); }
.wg2-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wg2-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--pub-ink); }
.wg2-list li > .ok { color: #1F7A45; font-weight: 700; }
.wg2-list li > .x { color: #C2372B; font-weight: 700; }
.wg2-list em { font-style: normal; color: var(--pub-muted); font-size: 14px; }
.wg2-saved { color: #1F7A45; font-weight: 500; }
.wg2-link { color: var(--pub-accent); font-weight: 600; }
@keyframes wg2-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (max-width: 720px) {
  .wg2 { padding-top: 14px; }
  .wg2-tile { font-size: 16px; padding: 6px 11px; }
  .mp-board, .mp-board.is-def { gap: 8px; }
  .mp-board.is-def { grid-template-columns: minmax(0, 2fr) minmax(0, 4fr); }
  .mp-card { font-size: 14px; padding: 8px 10px; }
  .qc-opts { grid-template-columns: 1fr; }
  .qc-opt kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mp-card.is-bad, .qc-opt.is-bad { animation: none; } .qc-bar i { transition: none; } }
/* ── "Guess the word" (owner, 2026-10-20: src/guessGame.js, public/js/guess.js) ── */
:root { --gw-g: #3A8F5C; --gw-y: #C99A06; --gw-x: #8A94A6; }
.gw-mini { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: var(--gw-x); color: #fff; font: 800 15px var(--pub-display); font-style: normal; text-transform: uppercase; }
.gw-mini.is-g { background: var(--gw-g); }
.gw-mini.is-y { background: var(--gw-y); }
.gw-head { background: var(--pub-soft); border-bottom: 1px solid var(--pub-line); }
.gw-head-row { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
.gw-head h1 { font-size: 28px; margin-top: 2px; }
.gw-sub { margin: 4px 0 0; font-size: 15px; max-width: 62ch; }
.gw-sub b:nth-of-type(1) { color: var(--gw-g); } .gw-sub b:nth-of-type(2) { color: #9A7600; } .gw-sub b:nth-of-type(3) { color: #6B7385; }
.gw { padding-top: 18px; padding-bottom: 40px; }
.gw [hidden] { display: none !important; }
.gw-game { max-width: 500px; margin: 0 auto; display: grid; gap: 12px; }
.gw-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.gw-num { font-size: 13px; color: var(--pub-muted); font-variant-numeric: tabular-nums; }
.gw-hint-btn { border: 1px solid #F3D982; background: var(--pub-amber-s); color: #6B4E00; border-radius: 999px; padding: 6px 14px; font: 600 14px var(--pub-text); cursor: pointer; }
.gw-hint-btn:hover { border-color: var(--pub-amber); }
.gw-board { display: grid; gap: 6px; justify-content: center; }
.gw-row { display: grid; grid-template-columns: repeat(5, var(--gw-t, 58px)); gap: 6px; }
.gw-tile { height: var(--gw-t, 58px); display: grid; place-items: center; border: 2px solid #D5DBE5; border-radius: 6px; background: #fff; font: 800 28px var(--pub-display); color: var(--pub-ink); text-transform: uppercase; transition: background-color .25s, border-color .25s, color .25s, transform .25s; }
.gw-tile.is-filled { border-color: #8E99AD; animation: gw-pop .12s; }
.gw-tile.is-done { color: #fff; transform: rotateX(360deg); }
.gw-tile.is-g { background: var(--gw-g); border-color: var(--gw-g); }
.gw-tile.is-y { background: var(--gw-y); border-color: var(--gw-y); }
.gw-tile.is-x { background: var(--gw-x); border-color: var(--gw-x); }
.gw-row.is-shake { animation: wg2-shake .3s; }
@keyframes gw-pop { 50% { transform: scale(1.08); } }
.gw-msg { margin: 0; min-height: 22px; text-align: center; font-size: 15px; font-weight: 600; color: var(--pub-ink); }
.gw-msg.is-bad { color: #C2372B; }
.gw-msg.is-ok { color: #1F7A45; }
.gw-hints { display: grid; gap: 6px; }
.gw-hints:empty { display: none; }
.gw-hint-line { margin: 0; background: var(--pub-amber-s); border-radius: 10px; padding: 8px 12px; font-size: 15px; color: var(--pub-ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gw-hint-line .gw-mini { width: 26px; height: 26px; font-size: 14px; }
.gw-kb { display: grid; gap: 6px; -webkit-user-select: none; user-select: none; }
.gw-kb-row { display: flex; gap: 5px; justify-content: center; }
.gw-key { flex: 1 1 0; max-width: 44px; height: 54px; border: 0; border-radius: 6px; background: #E3E7EE; color: var(--pub-ink); font: 700 16px var(--pub-text); text-transform: uppercase; cursor: pointer; touch-action: manipulation; padding: 0; transition: background-color .2s; }
.gw-key.is-wide { max-width: 68px; flex-grow: 1.5; font-size: 13px; text-transform: none; }
.gw-key:hover { filter: brightness(.96); }
.gw-key.is-g { background: var(--gw-g); color: #fff; }
.gw-key.is-y { background: var(--gw-y); color: #fff; }
.gw-key.is-x { background: var(--gw-x); color: #fff; }
.gw-fin { display: grid; gap: 14px; justify-items: center; text-align: center; background: var(--pub-soft); border: 1px solid var(--pub-line); border-radius: 14px; padding: 18px 18px 20px; }
.gw-fin h2 { font-size: 24px; }
.gw-answer { display: flex; gap: 5px; }
.gw-answer .gw-mini { width: 40px; height: 40px; font-size: 20px; }
.gw-card { background: #fff; border: 1px solid var(--pub-line); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; text-align: left; width: 100%; box-sizing: border-box; }
.gw-tr { display: grid; gap: 4px; }
.gw-tr p { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: 16px; color: var(--pub-ink); }
.gw-lang { font: 700 11px var(--pub-text); letter-spacing: .06em; color: var(--pub-accent); background: var(--pub-accent-s); border-radius: 6px; padding: 2px 6px; }
.gw-def { margin: 0; font-size: 15px; color: var(--pub-body); }
.gw-ex { margin: 0; font-size: 14px; font-style: italic; color: var(--pub-muted); }
.gw-save { justify-self: start; padding: 6px 12px; font-size: 14px; }
.gw-join { font-size: 14px; font-weight: 600; color: var(--pub-accent); }
.gw-stats { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.gw-stats div { display: grid; }
.gw-stats b { font: 800 26px var(--pub-display); color: var(--pub-ink); font-variant-numeric: tabular-nums; }
.gw-stats span { font-size: 12px; color: var(--pub-muted); }
.gw-dist-h { display: grid; gap: 2px; max-width: 340px; margin-bottom: -6px; }
.gw-dist-h b { font: 700 15px var(--pub-display); color: var(--pub-ink); }
.gw-dist-h span { font-size: 13px; color: var(--pub-muted); }
.gw-dist { width: 100%; max-width: 340px; display: grid; gap: 4px; }
.gw-dist-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pub-ink); font-variant-numeric: tabular-nums; }
.gw-dist-row i { display: block; min-width: 22px; background: var(--gw-x); color: #fff; font-style: normal; font-weight: 700; text-align: right; padding: 1px 6px; border-radius: 3px; box-sizing: border-box; }
.gw-dist-row i.is-now { background: var(--gw-g); }
.gw-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gw-copied { margin: 0; min-height: 20px; font-size: 14px; color: #1F7A45; font-weight: 600; }
.gw-share-text { width: 100%; font: 14px var(--pub-text); border: 1px solid var(--pub-line); border-radius: 8px; padding: 8px; box-sizing: border-box; }
.gw-how { background: var(--pub-soft); border-top: 1px solid var(--pub-line); }
.gw-how-row { padding-top: 36px; padding-bottom: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gw-how h2 { font-size: 18px; margin-bottom: 6px; }
.gw-how p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .gw-how-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  /* (the board and the keyboard on one screen: the colours are explained under the game, in "How to play") */
  .gw-row { --gw-t: min(52px, calc((100vw - 56px) / 5)); }
  .gw-head-row { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
  .gw-head h1 { font-size: 22px; }
  .gw-sub { display: none; }
  .gw-invite { padding: 7px 12px; font-size: 14px; white-space: nowrap; }
  .gw { padding-top: 10px; }
  .gw-game { gap: 8px; }
  .gw-key { height: 50px; font-size: 15px; }
  .gw-kb-row { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .gw-tile { transition: none; } .gw-tile.is-done { transform: none; } .gw-tile.is-filled, .gw-row.is-shake { animation: none; } }
/* ── Word Hunt (owner, 2026-10-20: src/wordHunt.js, public/js/word-hunt.js) ── */
.wh { padding-top: 18px; padding-bottom: 40px; }
.wh [hidden] { display: none !important; }
.wh-game { max-width: 440px; margin: 0 auto; display: grid; gap: 10px; }
.wh-top { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.wh-stat { font-size: 13px; color: var(--pub-muted); }
.wh-clue { border: 1px solid var(--pub-line); border-radius: 12px; overflow: hidden; text-align: center; }
.wh-clue small { display: block; background: #CFE0FF; color: #183B8F; font: 600 12px var(--pub-text); letter-spacing: .1em; text-transform: uppercase; padding: 5px; }
.wh-clue b { display: block; font: 700 19px var(--pub-display); color: var(--pub-ink); padding: 10px 12px; }
.wh-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--pub-muted); }
.wh-status b { color: var(--pub-ink); font-variant-numeric: tabular-nums; }
.wh-current { min-height: 38px; text-align: center; font: 800 25px var(--pub-display); letter-spacing: .08em; color: var(--pub-ink); text-transform: uppercase; }
.wh-current.is-msg { font: 600 15px var(--pub-text); letter-spacing: 0; text-transform: none; color: var(--pub-muted); padding-top: 8px; }
.wh-current.is-theme { color: var(--pub-accent); } .wh-current.is-span { color: #9A6E00; } .wh-current.is-ok { color: #1F7A45; }
.wh-board { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 4px; touch-action: none; user-select: none; -webkit-user-select: none; padding: 4px; }
.wh-board svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wh-cell { position: relative; z-index: 1; width: 100%; max-width: 56px; aspect-ratio: 1; justify-self: center; border: 0; border-radius: 50%; background: transparent; font: 600 23px var(--pub-text); color: var(--pub-ink); text-transform: uppercase; display: grid; place-items: center; padding: 0; cursor: pointer; touch-action: none; }
.wh-cell:not(.is-found):hover { background: var(--pub-soft); }
.wh-cell.is-sel, .wh-cell.is-sel:hover { background: #D5DCE8; }
.wh-cell.is-found { cursor: default; }
.wh-cell.is-hint { box-shadow: inset 0 0 0 2px var(--pub-accent); }
.wh-tools { display: flex; justify-content: center; }
.wh-hint { position: relative; overflow: hidden; border: 1px solid var(--pub-line); background: #fff; border-radius: 999px; padding: 9px 30px; font: 600 15px var(--pub-text); color: var(--pub-muted); cursor: pointer; }
.wh-hint i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--pub-amber-s); transition: width .3s; }
.wh-hint span { position: relative; }
.wh-hint.is-ready { color: var(--pub-ink); border-color: var(--pub-amber); }
.wh-hint.is-ready i { background: var(--pub-amber); }
.wh-hint:disabled { cursor: default; }
.wh-how { margin: 0; font-size: 13px; color: var(--pub-muted); text-align: center; }
.wh-fin { display: grid; gap: 12px; justify-items: center; text-align: center; background: var(--pub-soft); border: 1px solid var(--pub-line); border-radius: 14px; padding: 18px; }
.wh-fin h2 { font-size: 24px; }
.wh-dots { font-size: 22px; letter-spacing: 2px; line-height: 1.4; }
.wh-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; text-align: left; }
.wh-words li { background: #fff; border: 1px solid var(--pub-line); border-radius: 10px; padding: 7px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wh-words b { color: var(--pub-ink); }
.wh-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.wh-tag { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; background: #F7C948; color: #4A3500; }
.wh-tr { font-style: normal; font-size: 14px; color: var(--pub-muted); }
.wh-credit { font-size: 12px; color: var(--pub-muted); padding-top: 12px; padding-bottom: 20px; margin: 0; }
@media (max-width: 480px) { .wh-cell { font-size: 20px; } .wh-game { gap: 8px; } }
/* ── Letter Links (owner, 2026-10-21: src/letterLinks.js, public/js/letter-links.js) ── */
.ll { padding-top: 18px; padding-bottom: 40px; }
.ll [hidden] { display: none !important; }
.ll-game { max-width: 520px; margin: 0 auto; display: grid; gap: 10px; }
.ll-slots { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 38px; }
.ll-slots i { width: 34px; height: 34px; border: 2px dashed #C9D2E2; border-radius: 6px; display: grid; place-items: center; font: 800 16px var(--pub-display); font-style: normal; color: #9AA8C0; text-transform: uppercase; }
.ll-slots i.is-shown { border-style: solid; border-color: var(--gw-g); color: var(--gw-g); }
.ll-slots-note { font-size: 14px; color: var(--pub-muted); margin-right: 4px; }
.ll-slots-more { font: 800 18px var(--pub-display); color: #9AA8C0; letter-spacing: .1em; }
.ll-rows { display: grid; gap: 8px; }
.ll-row { display: flex; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.ll-t { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 7px; font: 800 21px var(--pub-display); color: #fff; text-transform: uppercase; }
.ll-t.is-g { background: var(--gw-g); } .ll-t.is-y { background: var(--gw-y); } .ll-t.is-x { background: var(--gw-x); }
.ll-t.is-typing { background: #fff; color: var(--pub-ink); border: 2px solid #8E99AD; }
.ll-t.is-start { border-top-left-radius: 50%; border-bottom-left-radius: 50%; }
.ll-t.is-end { border-top-right-radius: 50%; border-bottom-right-radius: 50%; }
.ll-t.is-link::after { content: ""; position: absolute; right: -8px; top: 50%; width: 10px; height: 8px; margin-top: -4px; background: var(--gw-g); z-index: 1; }
.ll-cur { min-height: 48px; display: flex; justify-content: center; gap: 6px; }
.ll-msg { margin: 0; min-height: 22px; text-align: center; font-size: 14px; font-weight: 600; color: var(--pub-muted); }
.ll-msg.is-bad { color: #C2372B; } .ll-msg.is-hint { color: #8A6500; } .ll-msg.is-ok { color: #1F7A45; }
.ll-tools { display: flex; gap: 18px; justify-content: center; }
.ll-answer { margin: 4px 0; }
/* Guess the phrase (owner, 2026-10-21): the words side by side (wrapping), purple = in another word */
:root { --gp-p: #7A4FD0; }
.gp { padding-top: 18px; padding-bottom: 40px; }
.gp [hidden] { display: none !important; }
.gp-game { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; --gp-size: min(44px, calc((100vw - 32px - (var(--gp-n, 8) - 1) * 4px) / var(--gp-n, 8))); }
.gp-shape { display: flex; gap: 6px; justify-content: center; align-items: baseline; font-size: 14px; color: var(--pub-muted); }
.gp-shape b { font: 800 16px var(--pub-display); color: var(--pub-ink); }
.gp-rows { display: grid; gap: 10px; }
.gp-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; }
.gp-w { display: flex; gap: 4px; }
.gp-t { width: var(--gp-size, 44px); height: var(--gp-size, 44px); flex: none; display: grid; place-items: center; border-radius: 7px; font: 800 calc(var(--gp-size, 44px) * .47) var(--pub-display); color: #fff; text-transform: uppercase; box-sizing: border-box; }
.gp-t.is-g { background: var(--gw-g); } .gp-t.is-y { background: var(--gw-y); } .gp-t.is-p { background: var(--gp-p); } .gp-t.is-x { background: var(--gw-x); }
.gp-t.is-typing { background: #fff; color: var(--pub-ink); border: 2px solid #8E99AD; }
.gp-t.is-empty { border: 2px dashed #C9D2E2; }
.gp-t.is-hint { border: 2px solid var(--gw-g); color: var(--gw-g); background: #fff; }
.gp-t.is-here { border-style: solid; border-color: var(--pub-accent); }
.gp-meaning { max-width: 520px; justify-self: center; background: #FFF7DB; border: 1px solid #F1DF9C; border-radius: 10px; padding: 10px 14px; font-size: 15px; color: var(--pub-ink); }
.gp-answer { margin: 4px 0; }
.gp-fin-m { margin: 0; font-size: 16px; color: var(--pub-ink); max-width: 520px; }
.gp-fin-ex { margin: 0; font-size: 15px; font-style: italic; color: var(--pub-muted); max-width: 520px; }
.gw-key.is-p { background: var(--gp-p); color: #fff; }
.gw-how b.gp-yel { color: #9A7600; } .gw-how b.gp-pur { color: var(--gp-p); }
.gp-ex .gp-row { justify-content: flex-start; gap: 6px 14px; } .gp-ex .gp-t { --gp-size: 34px; }
.tp-gp { display: grid; gap: 6px; justify-items: center; } .tp-gp .gp-row { gap: 4px 12px; } .tp-gp .gp-w { gap: 3px; } .tp-gp .gp-t { --gp-size: 24px; border-radius: 5px; }
@media (max-width: 760px) { .gp-ex .gp-row { justify-content: flex-start; } }
.gw-how-row.ll-how-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 28px; }
.ll-ex { padding-bottom: 44px; }
.ll-ex h2 { font-size: 18px; margin: 0 0 14px; padding-top: 24px; border-top: 1px solid var(--pub-line); }
.ll-ex-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 14px; }
.ll-ex-row .ll-row { justify-content: flex-start; gap: 5px; }
.ll-ex-row .ll-t { width: 34px; height: 34px; font-size: 16px; border-radius: 6px; }
.ll-ex-row .ll-t.is-start { border-top-left-radius: 50%; border-bottom-left-radius: 50%; } .ll-ex-row .ll-t.is-end { border-top-right-radius: 50%; border-bottom-right-radius: 50%; }
.ll-ex-row .ll-t.is-link::after { right: -7px; width: 9px; height: 6px; margin-top: -3px; }
.ll-ex-row p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .gw-how-row.ll-how-row { grid-template-columns: 1fr; } .ll-ex-row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; } }
@media (max-width: 480px) { .ll-t { width: calc((100vw - 32px - 9 * 5px) / 10); height: auto; aspect-ratio: 1; max-width: 40px; font-size: 17px; } .ll-row, .ll-cur { gap: 5px; } .ll-t.is-link::after { right: -7px; width: 9px; } }
.tp-ll { display: grid; gap: 6px; justify-content: center; }
.tp-ll > span { display: flex; gap: 4px; }
.tp-ll i { position: relative; width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; font: 800 11px var(--pub-display); font-style: normal; color: #fff; }
.tp-ll .g { background: var(--gw-g); } .tp-ll .y { background: var(--gw-y); } .tp-ll .x { background: var(--gw-x); }
.tp-ll .s { border-top-left-radius: 50%; border-bottom-left-radius: 50%; } .tp-ll .e { border-top-right-radius: 50%; border-bottom-right-radius: 50%; }
.tp-ll .l::after { content: ""; position: absolute; right: -5px; top: 50%; width: 6px; height: 5px; margin-top: -2.5px; background: var(--gw-g); }
/* ── Hot or cold (owner, 2026-10-20: src/hotCold.js, public/js/hot-cold.js) ── */
:root { --hc-hot: #3A8F5C; --hc-warm: #E8A33C; --hc-cold: #D95B4B; }
.hc { padding-top: 18px; padding-bottom: 40px; }
.hc [hidden] { display: none !important; }
.hc-game { max-width: 520px; margin: 0 auto; display: grid; gap: 10px; }
.hc-form { display: flex; gap: 8px; }
.hc-in { flex: 1; min-width: 0; font: 500 18px var(--pub-text); padding: 11px 14px; border: 2px solid #C9D2E2; border-radius: 12px; color: var(--pub-ink); }
.hc-in:focus { outline: none; border-color: var(--pub-accent); }
.hc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hc-msg { margin: 0; min-height: 22px; font-size: 14px; color: var(--pub-muted); }
.hc-msg.is-bad { color: #C2372B; font-weight: 600; } .hc-msg.is-hint { color: #8A6500; font-weight: 600; } .hc-msg.is-ok { color: #1F7A45; font-weight: 600; }
.hc-counts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--pub-muted); font-variant-numeric: tabular-nums; }
.hc-tools { display: flex; gap: 14px; }
.hc-link { border: 0; background: none; padding: 4px 0; font: 600 14px var(--pub-text); color: var(--pub-accent); cursor: pointer; }
.hc-link[data-sure] { color: #C2372B; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.hc-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--pub-soft); overflow: hidden; font-size: 16px; color: var(--pub-ink); }
.hc-bar { position: absolute; inset: 0 auto 0 0; opacity: .3; }
.hc-row.is-hot .hc-bar { background: var(--hc-hot); } .hc-row.is-warm .hc-bar { background: var(--hc-warm); } .hc-row.is-cold .hc-bar { background: var(--hc-cold); }
.hc-word, .hc-rank { position: relative; }
.hc-word { font-weight: 600; }
.hc-rank { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--pub-muted); }
.hc-last { padding-bottom: 6px; border-bottom: 1px dashed var(--pub-line); }
.hc-last .hc-row { box-shadow: 0 0 0 2px var(--pub-ink); }
.hc-secret { font: 800 34px var(--pub-display); color: var(--pub-ink); letter-spacing: .02em; }
.hc-sectr { margin: 0; }
.hc-closest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; width: 100%; text-align: left; }
.hc-closest li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--pub-ink); }
.hc-closest .hc-rank { min-width: 30px; font-size: 12px; }
@media (max-width: 480px) { .hc-closest { grid-template-columns: 1fr; } }
.tp-hot { display: grid; gap: 4px; width: 100%; }
.tp-hot span { position: relative; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--pub-ink); padding: 2px 6px; border-radius: 5px; background: #fff; overflow: hidden; }
.tp-hot span i { position: absolute; inset: 0 auto 0 0; opacity: .35; }
.tp-hot span b, .tp-hot span em { position: relative; font-style: normal; }
/* ── Word box (owner, 2026-10-20: src/wordBox.js, public/js/word-box.js) ── */
.wx { padding-top: 18px; padding-bottom: 40px; }
.wx [hidden] { display: none !important; }
.wx-game { max-width: 420px; margin: 0 auto; display: grid; gap: 10px; }
.wx-goal { font-size: 15px; color: var(--pub-muted); } .wx-goal b { color: var(--pub-ink); }
.wx-cur { min-height: 48px; border-bottom: 2px solid var(--pub-ink); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; font: 800 30px var(--pub-display); letter-spacing: .08em; color: var(--pub-ink); text-transform: uppercase; overflow-wrap: anywhere; }
.wx-cur.is-empty { font: 500 15px var(--pub-text); letter-spacing: 0; text-transform: none; color: var(--pub-muted); }
.wx-chain { min-height: 24px; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; font: 600 15px var(--pub-text); color: var(--pub-muted); text-transform: uppercase; letter-spacing: .04em; }
.wx-chain span + span::before { content: "– "; color: #A9B4C6; }
.wx-msg { min-height: 22px; margin: 0; text-align: center; font-size: 14px; font-weight: 600; color: #C2372B; }
.wx-msg.is-ok { color: #1F7A45; }
.wx-boxwrap { display: grid; place-items: center; }
.wx-box { width: min(100%, 340px); height: auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.wx-ltr .wx-dot { fill: #fff; stroke: var(--pub-ink); stroke-width: 2; }
.wx-ltr.is-used .wx-dot { fill: var(--pub-ink); }
.wx-ltr.is-cur .wx-dot { fill: #FFB59A; }
.wx-ltr.is-last .wx-dot { fill: var(--pub-amber); }
.wx-ltr text { font: 700 22px var(--pub-text); fill: var(--pub-ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; text-transform: uppercase; }
.wx-ltr .wx-hit { fill: transparent; cursor: pointer; }
.wx-ltr .wx-hit:focus-visible { outline: none; stroke: var(--pub-accent); stroke-width: 3; }
.wx-ltr.is-off { opacity: .4; }
.wx-ltr.is-off .wx-hit { cursor: not-allowed; }
.wx-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wx-btn { border: 1px solid var(--pub-ink); background: #fff; color: var(--pub-ink); border-radius: 999px; padding: 9px 22px; font: 600 15px var(--pub-text); cursor: pointer; }
.wx-btn.is-main { background: var(--pub-ink); color: #fff; }
.wx-btn:disabled { opacity: .4; cursor: default; }
.wx-tools { display: grid; justify-items: center; gap: 6px; }
.wx-hintline { min-height: 22px; font-size: 15px; font-weight: 600; color: #8A6500; text-align: center; }
.wx-sub { margin: 0; font-size: 14px; color: var(--pub-muted); }
.wx-w { text-transform: uppercase; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .wh-hint i { transition: none; } }
/* a table in an AI-written text (Markdown "| a | b |" — textParasHtml in publicRoute.js) */
.md-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.md-table table { border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--pub-line); border-radius: 8px; }
.md-table th, .md-table td { padding: 7px 12px; border-bottom: 1px solid var(--pub-line); text-align: left; vertical-align: top; }
.md-table th { font-weight: 600; color: var(--pub-ink); background: var(--pub-accent-s); }
.md-table tr:last-child td { border-bottom: 0; }
.md-list { margin: 0; padding-left: 22px; } .md-list li { margin: 2px 0; }
.gr-main code, .pl-about code, .cp-about code { font: 500 0.92em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--pub-soft); border: 1px solid var(--pub-line); border-radius: 4px; padding: 0 4px; }
/* the teacher page (src/teacherPage.js) */
.tp-hero-row { align-items: center; }
.tp-photo { flex: 0 1 420px; min-width: 0; max-width: 420px; margin: 0 auto; }
.tp-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 18px 40px rgba(11,31,58,.16); }
.tp-philo h2 { font-size: 36px; }
.tp-philo-lead { font-size: 19px; max-width: 760px; margin-top: 10px; opacity: .92; }
.tp-philo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.tp-philo-item { border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 22px 24px; background: rgba(255,255,255,.04); }
.tp-philo-item h3 { font-size: 20px; color: var(--pub-amber); margin-bottom: 8px; }
.tp-philo-item p { font-size: 16px; opacity: .9; }
.tp-philo-close { font: 700 24px var(--pub-display); color: #fff; margin-top: 30px; }
@media (max-width: 900px) {
  .tp-photo { max-width: 300px; order: -1; }
  .tp-philo h2 { font-size: 28px; }
  .tp-philo-close { font-size: 20px; }
}
/* (teacher page, desktop: 6 career cards as 3 + 3, the 5 philosophy cards as 3 + 2, the two headings alike) */
@media (min-width: 901px) {
  .pub-teacher .pp-cards { grid-template-columns: repeat(3, 1fr); }
  .tp-philo-grid { grid-template-columns: repeat(6, 1fr); }
  .tp-philo-item { grid-column: span 2; }
  .tp-philo-item:nth-child(n+4) { grid-column: span 3; }
}
.pub-teacher .pp-split h2 { font-size: 28px; }
/* the tutor pages (landingPages.js tutorBody) */
.lp-tutor-card { flex: 0 1 320px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--pub-ink); margin: 0 auto; }
.lp-tutor-photo img { display: block; width: 260px; max-width: 60vw; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 18px 40px rgba(11,31,58,.16); margin-bottom: 8px; }
.lp-tutor-name { font: 800 22px var(--pub-display); }
.lp-tutor-role { color: var(--pub-muted); font-size: 15px; }
.lp-tutor-more { color: var(--pub-accent); font-weight: 600; font-size: 15px; }
.lp-tutor-card:hover .lp-tutor-more { text-decoration: underline; }
.lp-who { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; margin-bottom: 48px; }
.lp-who p { font-size: 17px; margin-top: 12px; }
.lp-who-facts { list-style: none; margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--pub-soft); border-radius: 16px; font-size: 16px; color: var(--pub-ink); }
.lp-who-facts li, .lp-packs li { display: flex; gap: 10px; align-items: flex-start; }
.lp-who-facts svg, .lp-packs svg { color: #2E7D4F; flex-shrink: 0; margin-top: 3px; }
.lp-packs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--pub-ink); }
.lp-tutor-steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 900px) {
  .lp-who { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .lp-tutor-card { order: -1; }
}

/* the Google review request (owner, 2026-10-21; public-lesson.js askReview): a quiet card, asked as a favour */
.pub-review { padding: 8px 0 28px; }
.pub-review-card { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; background: #FFFBEF; border: 1px solid #F1DF9C; border-radius: 14px; padding: 16px 20px; max-width: 900px; margin: 0 auto; }
.pub-review-stars { font-size: 20px; letter-spacing: 2px; color: #E7A400; flex: none; }
.pub-review-text { flex: 1 1 320px; min-width: 0; }
.pub-review-text b { display: block; font: 700 17px var(--pub-display); color: var(--pub-ink); margin-bottom: 2px; }
.pub-review-text p { margin: 0; font-size: 15px; color: var(--pub-body); }
.pub-review-acts { display: flex; align-items: center; gap: 14px; flex: none; }
.pub-review-later { background: none; border: 0; padding: 4px 2px; font: 600 14px var(--pub-text); color: var(--pub-muted); cursor: pointer; }
.pub-review-later:hover { color: var(--pub-ink); }
@media (max-width: 600px) { .pub-review-card { padding: 14px 16px; } .pub-review-acts { width: 100%; justify-content: space-between; } }

/* "How to play" in short at the top of every game (owner, 2026-10-21; src/quickRules.js): open at first, "Got it"
   folds it to one line (remembered on the device) */
.qr { max-width: 760px; margin: 14px auto 4px; background: #F4F7FD; border: 1px solid #D9E2F3; border-radius: 12px; padding: 0 16px; }
.qr summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 0; font: 700 15px var(--pub-display); color: var(--pub-ink); }
.qr summary::-webkit-details-marker { display: none; }
.qr summary::after { content: '▸'; margin-left: auto; color: var(--pub-muted); transition: transform .15s; }
.qr[open] summary::after { transform: rotate(90deg); }
.qr:not([open]) { background: transparent; border-color: transparent; padding: 0 4px; margin-bottom: 0; }
.qr:not([open]) summary { padding: 4px 0; font-size: 14px; color: var(--pub-accent); }
.qr:not([open]) summary::after { margin-left: 0; }
.qr-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pub-accent); color: #fff; font: 800 12px var(--pub-display); flex: none; }
.qr ul { margin: 0; padding: 0 0 4px 0; list-style: none; display: grid; gap: 5px; }
.qr li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.5; color: var(--pub-body); }
.qr li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #9AA8C0; }
.qr-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.qr-g { background: #3A8F5C; } .qr-y { background: #C99A06; } .qr-x { background: #8A94A6; } .qr-p { background: #7A4FD0; } .qr-r { background: #D9534F; }
.qr-yel { background: #F7C948; } .qr-hot { background: var(--hc-hot); } .qr-warm { background: var(--hc-warm); } .qr-cold { background: var(--hc-cold); }
.qr-acts { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 4px 0 10px; }
.qr-acts a { font-size: 14px; font-weight: 600; }
.qr-ok { border: 1px solid #C9D4EA; background: #fff; color: var(--pub-ink); border-radius: 8px; padding: 5px 14px; font: 600 14px var(--pub-text); cursor: pointer; }
.qr-ok:hover { border-color: var(--pub-accent); }
@media (max-width: 600px) {
  .qr { margin-top: 10px; padding: 0 12px; }
  .qr li { font-size: 14px; }
  .qr:not([open]) { margin: 2px auto 0; padding: 0 2px; }
  .qr:not([open]) summary { padding: 0; font-size: 13.5px; }
  .qr:not([open]) .qr-q { width: 17px; height: 17px; font-size: 11px; }
}

/* the games banner on the home pages (owner, 2026-10-21, look A "Navy"; src/gamesBanner.js) */
.gb-wrap { margin-top: -40px; }
.gb-wrap + .home-section { padding-top: 48px; }   /* the banner evenly between the cards and the next section */
.gb { background: #0B1F3A; color: #fff; border-radius: 16px; display: flex; align-items: center; gap: 16px 24px; padding: 16px 22px; }
.gb-text { flex: 1 1 260px; min-width: 0; }
.gb-h { margin: 0; font: 800 19px/1.3 var(--pub-display); color: #fff; }
.gb-new { display: inline-block; font: 700 11px var(--pub-text); letter-spacing: .1em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; margin-right: 8px; vertical-align: 2px; background: #F2B705; color: #0B1F3A; }
.gb-sub { margin: 2px 0 0; font-size: 14.5px; color: #C3CCDD; }
.gb-icons { display: flex; gap: 8px; flex: none; }
.gb-icons a { display: block; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; transition: transform .15s; }
.gb-icons a:hover, .gb-icons a:focus-visible { transform: translateY(-3px); }
.gb-icons a:focus-visible, .gb-cta:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; }
.gb-icons svg { display: block; width: 100%; height: 100%; }
.gb-cta { flex: none; font: 700 15px var(--pub-display); border-radius: 10px; padding: 11px 18px; text-decoration: none; white-space: nowrap; background: #F2B705; color: #0B1F3A !important; }
.gb-cta:hover { background: #FFC81F; }
@media (max-width: 1100px) { .gb { flex-wrap: wrap; } .gb-text { flex-basis: 100%; }
  /* the icons that don't fit wrap onto a hidden second line (room above for the hover lift) */
  .gb-icons { flex: 1 1 0; min-width: 0; flex-wrap: wrap; height: 44px; padding-top: 4px; overflow: hidden; } .gb-icons a { flex: none; } }
@media (max-width: 900px) { .gb-wrap { margin-top: -24px; } .gb-wrap + .home-section { padding-top: 32px; } }
@media (max-width: 600px) {
  .gb { flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 16px; gap: 12px; }
  .gb-text, .gb-icons { flex: none; min-width: 0; }
  /* one row of icons: the ones that don't fit wrap onto a second line, which is cut off — so a narrow phone
     shows the first games, never a clipped icon (owner, 2026-10-21) */
  .gb-icons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; height: 32px; padding-top: 0; overflow: hidden; }
  .gb-icons a { flex: none; width: 32px; height: 32px; border-radius: 8px; }
  .gb-icons a:hover, .gb-icons a:focus-visible { transform: none; }
  .gb-cta { text-align: center; width: auto; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .gb-icons a { transition: none; } }

/* the booking form's line under the button (owner, 2026-10-22: instead of the consent checkbox) */
.pub-lead-legal { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: inherit; opacity: .72; }   /* the form's own colour: light on the dark form, dark on a light one */
.pub-lead-legal a { color: inherit; text-decoration: underline; }

/* ═══ the Android apps (src/appRoute.js; owner, 2026-10-28): the app's top bar and bottom menu, its pages ═══ */
body.pub-app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.app-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--pub-line); padding-top: env(safe-area-inset-top); }
.app-top-row { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; max-width: 1200px; margin: 0 auto; }
.app-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 10px; color: var(--pub-ink) !important; }
.app-back:hover { background: var(--pub-soft); }
.app-top-title { flex: 1; min-width: 0; font: 700 17px var(--pub-display); color: var(--pub-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: #fff; border-top: 1px solid var(--pub-line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(11,31,58,0.06); }
.app-tab { flex: 1; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; border-radius: 12px; font: 600 12px var(--pub-text); color: var(--pub-muted) !important; cursor: pointer; }
.app-tab[aria-current="page"] { color: var(--pub-accent) !important; }
.app-tab:hover { background: var(--pub-soft); }
.app-wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; }
.app-page h1, .app-hero h1 { font: 800 26px/1.2 var(--pub-display); color: var(--pub-ink); margin: 8px 0 10px; text-wrap: balance; }
.app-hero p { color: var(--pub-body); margin: 0 0 16px; }
.app-small { font-size: 14px; color: var(--pub-muted); }
.app-continue[hidden] { display: none; }
.app-continue { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--pub-accent); color: #fff !important; }
.app-continue-k { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--pub-text); text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
.app-continue-t { font: 700 16px/1.35 var(--pub-display); }
.app-level-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 8px; padding: 2px 16px 8px; scrollbar-width: none; }
.app-level-tabs::-webkit-scrollbar { display: none; }
.app-level-tab { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--pub-line); background: #fff; cursor: pointer; font: 600 14px var(--pub-text); color: var(--pub-ink); }
.app-level-tab small { font-size: 12px; color: var(--pub-muted); font-weight: 500; }
.app-level-tab[aria-selected="true"] { border-color: var(--pub-accent); background: var(--pub-accent-s); }
.app-level-meta { font-size: 14px; color: var(--pub-muted); margin: 4px 0 8px; }
.app-unit { display: flex; flex-direction: column; gap: 1px; font: 700 17px/1.3 var(--pub-display); color: var(--pub-ink); margin: 20px 0 8px; }
.app-unit span { font: 700 12px var(--pub-text); text-transform: uppercase; letter-spacing: .05em; color: var(--pub-muted); }
.app-lesson { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; margin-bottom: 6px; border: 1px solid var(--pub-line); border-radius: 12px; background: #fff; text-align: left; font: 500 15px/1.35 var(--pub-text); color: var(--pub-ink) !important; cursor: pointer; }
.app-lesson:hover { border-color: #C9D2E3; }
.app-n { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: var(--pub-soft); display: inline-flex; align-items: center; justify-content: center; font: 700 14px var(--pub-text); }
.app-lt { flex: 1; min-width: 0; }
.app-st { flex: 0 0 auto; font: 700 13px var(--pub-text); color: var(--pub-muted); }
.app-lesson.is-done .app-n { background: var(--pub-green-s); color: var(--pub-green); }
.app-lesson.is-done .app-st { color: var(--pub-green); }
.app-lesson.is-started .app-st { color: var(--pub-accent); }
.app-lesson.is-locked { color: var(--pub-muted) !important; background: var(--pub-soft); }
.app-lesson.is-soon { opacity: .6; cursor: default; }
.app-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px; margin: 14px 0 10px; border-radius: 14px; background: var(--pub-amber-s); border: 1px solid #F0D58A; color: var(--pub-ink); }
.app-gate p { flex: 1 1 220px; margin: 0; font-size: 15px; }
.app-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(11,31,58,0.45); display: flex; align-items: flex-end; justify-content: center; }
.app-sheet[hidden] { display: none; }
.app-sheet-box { width: 100%; max-width: 560px; background: #fff; border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.app-sheet-box h2 { font: 800 21px var(--pub-display); color: var(--pub-ink); margin: 0; }
.app-sheet-box p { margin: 0; }
.app-card { border: 1px solid var(--pub-line); border-radius: 14px; background: #fff; padding: 16px; margin: 0 0 14px; }
.app-card h2 { font: 700 18px var(--pub-display); color: var(--pub-ink); margin: 0 0 8px; }
.app-card p { margin: 0 0 10px; }
.app-row { display: flex; flex-wrap: wrap; gap: 10px; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.app-select { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--pub-ink); }
.app-select select { min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--pub-line); background: #fff; color: var(--pub-ink); font: 500 15px var(--pub-text); }
.app-facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.app-facts li { display: flex; gap: 10px; align-items: center; color: var(--pub-ink); }
.app-facts svg { color: var(--pub-green); flex: 0 0 auto; }
.app-trial-form { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--pub-line); border-radius: 14px; background: #fff; padding: 16px; }
.app-trial-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--pub-ink); }
.app-trial-form input { min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--pub-line); font: 500 16px var(--pub-text); color: var(--pub-ink); background: #fff; }
.app-msg { margin: 0; font-size: 14px; color: var(--pub-muted); }
.app-msg.is-err { color: #B42318; }
.app-thanks { margin: 0; color: var(--pub-ink); }
.app-trial { border: 1px solid var(--pub-line); border-radius: 14px; background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.app-trial h2 { font: 700 16px var(--pub-display); color: var(--pub-ink); margin: 0; }
.app-trial p { margin: 0; font-size: 14px; color: var(--pub-body); }
.pl-dict-ai { font-size: 11px; font-weight: 600; color: var(--pub-muted); border: 1px solid var(--pub-line); border-radius: 6px; padding: 1px 5px; white-space: nowrap; }
.app-dict-page .pl-dict-result { min-height: 120px; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--pub-soft); }
.app-dict-page .pl-dict-label input { width: 100%; }
/* a wide screen (a tablet): the lesson's side columns fit between the app's top bar (52 px) and its bottom menu
   (only there: on a phone the columns are one under the other — a min-height would push the lesson down) */
.pub-app { --pub-head: 53px; }
@media (min-width: 901px) {
  .pub-app .pl, .pub-app .pl-left, .pub-app .pl-right { min-height: calc(100vh - 53px - 64px); }
  .pub-app .pl-right { height: calc(100vh - 53px - 64px); }
  .pub-app .pl-left { max-height: calc(100vh - 53px - 64px); }
  .pub-app .pl-right > .app-trial { flex-shrink: 0; }
}
@media (max-width: 900px) {
  body.pub-app.pub-lesson { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .pub-app .pl-right > .app-trial { margin-top: 8px; }
}
