/* GALUT v8 additions */
.notice:empty { display: none; }
.seg-tabs { margin: 4px 0 12px; }
.seg-tabs button { flex: 1; font-weight: 700; }
.verb-search { display: block; margin: 12px 0; }
.verb-search input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.verb-search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.vb-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.vb-pages button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.vb-pages button.is-on { background: var(--primary); color: var(--primary-ink, #fff); border-color: var(--primary); }
.art-hero { margin: 6px 0 14px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 9 / 5; background: var(--surface-2); }
.art-hero .art-svg { display: block; width: 100%; height: 100%; }
.tile.tile-art { width: 76px; height: 54px; padding: 0; overflow: hidden; background: var(--surface-2); }
.tile.tile-art .art-svg { display: block; width: 100%; height: 100%; }

/* languages whose translation is still in progress */
.chip-wip { background: #fff4d6; color: #8a5a00; border: 1px solid #f1d58a; white-space: nowrap; }
.row-body .chip-wip { align-self: flex-start; justify-self: start; width: fit-content; max-width: 100%; margin-top: 5px; min-height: 22px; font-size: 11.5px; }
.wip-note { margin: 4px 0 14px; padding: 10px 14px; border-radius: 14px; background: #fff4d6; color: #6b4600; border: 1px solid #f1d58a; font-size: 14px; line-height: 1.45; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-wip, :root:not([data-theme="light"]) .wip-note { background: #3a2f12; color: #f5d98a; border-color: #5c4a1a; }
}
:root[data-theme="dark"] .chip-wip, :root[data-theme="dark"] .wip-note { background: #3a2f12; color: #f5d98a; border-color: #5c4a1a; }

/* (5 Nov 2026, Moshe) the "Beta" label next to the brand was removed: the app is finished */

/* ---------- Tablet: a wider column ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  #app { max-width: 760px; }
}

/* ---------- Desktop: use the whole screen ---------- */
@media (min-width: 900px) {
  :root { --content: 1040px; --gutter: max(32px, calc((100% - var(--content)) / 2)); }
  body { font-size: 16px; }
  #app { max-width: none; border-inline: 0; }
  .topbar { min-height: calc(64px + var(--sat, 0px)); padding-inline: var(--gutter); }
  .screen { padding-inline: var(--gutter); padding-block: 32px 72px; gap: 24px; }
  .title { font-size: 30px; }
  .he-sub { font-size: 24px; }
  .lede { font-size: 15px; max-width: 75ch; }

  /* lists become a two-column grid, separated by hairlines */
  .list:not(.letters):not(.timeline):not(.conj-list) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; background: var(--line);
  }
  .list:not(.letters):not(.timeline):not(.conj-list) > * { background: var(--surface); border-bottom: 0 !important; min-width: 0; }
  .list:not(.letters):not(.timeline):not(.conj-list) > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .list:not(.letters):not(.timeline):not(.conj-list) > .row:hover { background: var(--surface-2); }

  /* quizzes and long reading stay at a comfortable width */
  .screen-quiz { --content: 760px; }
  .bottombar { padding-inline: max(32px, calc((100% - 760px) / 2)); }
  .art-hero { max-width: 640px; width: 100%; margin-inline: auto; }

  /* settings sheet opens as a panel at the end of the top bar */
  .sheet { inset-inline: auto var(--gutter); width: 440px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
  .sheet-backdrop { inset: 64px 0 0; }
  .sheet { top: 64px; }
}
@media (min-width: 1400px) {
  :root { --content: 1180px; }
  .list.lang-list, .screen .list:not(.letters):not(.timeline):not(.conj-list).cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* app: languages that are not open yet */
.chip-soon { background: #e6eefb; color: #234E96; border: 1px solid #b9cbee; white-space: nowrap; }
.row-body .chip-soon { align-self: flex-start; width: fit-content; max-width: 100%; margin-top: 5px; min-height: 22px; font-size: 11.5px; }
.soon-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(10,20,40,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.soon-card { background: #fff; color: #14213d; border-radius: 18px; max-width: 360px; width: 100%; padding: 24px 20px 18px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.soon-flag { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.soon-card h2 { margin: 0 0 8px; font-size: 22px; }
.soon-card p { margin: 0 0 10px; line-height: 1.5; }
.soon-card .soon-en { font-size: 13px; opacity: .7; }
.soon-ok { margin-top: 6px; background: #234E96; color: #fff; border: 0; border-radius: 12px; padding: 10px 32px; font-size: 16px; cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soon-card { background: #1b2433; color: #eef2f8; } :root:not([data-theme="light"]) .chip-soon { background: #1d2c47; color: #b9cbee; border-color: #34507f; } }
:root[data-theme="dark"] .soon-card { background: #1b2433; color: #eef2f8; }
:root[data-theme="dark"] .chip-soon { background: #1d2c47; color: #b9cbee; border-color: #34507f; }
/* account */
.acct-card { position: relative; text-align: start; }
.acct-card h2, .acct-card .soon-flag { text-align: center; }
.acct-x { position: absolute; top: 8px; inset-inline-end: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: inherit; opacity: .6; cursor: pointer; }
.acct-input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 11px 12px; border-radius: 12px; border: 1px solid #c9d3e3; margin: 6px 0 10px; background: #fff; color: #14213d; }
.acct-card .soon-ok { width: 100%; margin-top: 4px; }
.acct-or { text-align: center; opacity: .6; margin: 12px 0 6px !important; font-size: 14px; }
.acct-oauth { width: 100%; padding: 10px; margin-top: 8px; border-radius: 12px; border: 1px solid #c9d3e3; background: #fff; color: #14213d; font-size: 15px; cursor: pointer; }
.acct-oauth span { font-weight: 700; color: #4285F4; margin-inline-end: 6px; }
.acct-apple { background: #000; color: #fff; border-color: #000; }
.acct-link { display: block; margin: 10px auto 0; background: none; border: 0; color: #234E96; text-decoration: underline; cursor: pointer; font-size: 14px; }
.acct-del { color: #b3261e; opacity: .85; }
.acct-danger { background: #b3261e !important; }
.acct-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acct-status { font-weight: 600; color: #234E96; margin: 4px 0 2px !important; }
.acct-msg { color: #b3261e; font-size: 14px; }
.acct-warn { color: #b3261e; font-weight: 600; }
.acct-sheet-btn { width: 100%; justify-content: center; }
.acct-promo { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: #e6eefb; color: #14213d; border: 1px solid #b9cbee; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.acct-promo p { margin: 0; font-size: 14px; flex: 1 1 180px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acct-promo { background: #1d2c47; color: #eef2f8; border-color: #34507f; } :root:not([data-theme="light"]) .acct-input, :root:not([data-theme="light"]) .acct-oauth:not(.acct-apple) { background: #111a28; color: #eef2f8; border-color: #34507f; } :root:not([data-theme="light"]) .acct-status, :root:not([data-theme="light"]) .acct-link:not(.acct-del) { color: #9fbbf0; } }
:root[data-theme="dark"] .acct-promo { background: #1d2c47; color: #eef2f8; border-color: #34507f; }
:root[data-theme="dark"] .acct-input, :root[data-theme="dark"] .acct-oauth:not(.acct-apple) { background: #111a28; color: #eef2f8; border-color: #34507f; }
:root[data-theme="dark"] .acct-status, :root[data-theme="dark"] .acct-link:not(.acct-del) { color: #9fbbf0; }

/* ---------- v9 top bar: quick toggles + ☰ side menu ---------- */
.topbar-v9 { gap: 8px; }
.topbar-v9 .quick-toggles { gap: 6px; flex-shrink: 0; }
.topbar-v9 .qt { height: 36px; min-width: 38px; }
.qt-sound { font-size: 16px; padding: 0 8px; }
.qt-sound[data-mode="tap"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.qt-sound[data-mode="mute"] { background: var(--surface); color: var(--muted); }
.menu-btn { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; }
.menu-btn[aria-expanded="true"] { border-color: var(--primary); background: var(--primary-soft); }
.menu-bars { display: grid; gap: 4px; width: 18px; }
.menu-bars i { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-backdrop { position: fixed; inset: 0; background: rgba(9, 14, 22, .38); z-index: 60; }
.menu-backdrop.is-entering { animation: menuFade .18s ease-out; }
.menu-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(360px, 88vw); z-index: 61; background: var(--surface); box-shadow: -12px 0 32px rgba(9, 14, 22, .22); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
[dir="rtl"] .menu-drawer, .menu-drawer:dir(rtl) { box-shadow: 12px 0 32px rgba(9, 14, 22, .22); }
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.menu-title { font-weight: 700; font-size: 18px; color: var(--ink); }
.menu-body { overflow-y: auto; padding: 8px 10px 24px; display: grid; gap: 2px; align-content: start; }
.menu-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font-size: 16px; text-align: start; cursor: pointer; }
.menu-row:hover, .menu-item.is-open > .menu-row { background: var(--surface-2); }
.menu-row.menu-ig { text-decoration: none; box-sizing: border-box; }
.menu-ig .menu-ico svg { display: block; }
.menu-ico { width: 28px; text-align: center; font-size: 20px; }
.menu-label { flex: 1; min-width: 0; }
.menu-meta { font-size: 12px; font-weight: 600; color: var(--muted); margin-inline-start: 6px; }
.menu-chev { color: var(--muted); font-size: 20px; transition: transform .2s; }
.menu-item.is-open .menu-chev { transform: rotate(90deg); }
[dir="rtl"] .menu-chev { transform: scaleX(-1); }
.menu-panel { display: grid; gap: 16px; padding: 12px 10px 18px; }
.menu-panel .sheet-row { padding: 0; }
@keyframes menuIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes menuFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 380px) { .topbar-v9 .qt { min-width: 34px; padding: 0 6px; } .topbar-v9 .brand { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .menu-drawer, .menu-backdrop { animation: none; } }
@keyframes menuInRtl { from { transform: translateX(-100%); } to { transform: none; } }
.menu-drawer.is-entering { animation: menuIn .22s ease-out; }
[dir="rtl"] .menu-drawer.is-entering { animation-name: menuInRtl; }
/* voice picker: app-style list instead of a native dropdown */
.voice-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.voice-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: start; cursor: pointer; }
.voice-opt:last-child { border-bottom: 0; }
.voice-opt:hover { background: var(--surface-2); }
.voice-opt[aria-checked="true"] { background: var(--primary-soft); }
.voice-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 16px; flex-shrink: 0; }
.voice-ico--av { width: 40px; height: 40px; overflow: hidden; background: none; }
.voice-ico--av svg { display: block; }
.voice-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.voice-title { font-size: 15px; font-weight: 600; }
.voice-sub { font-size: 12px; color: var(--muted); }
.voice-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; border: 1.6px solid var(--line); }
.voice-opt[aria-checked="true"] .voice-check { background: var(--primary); border-color: var(--primary); }
.voice-test { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.voice-he { font-size: 16px; font-weight: 600; color: var(--primary); margin-inline-start: 6px; }
.speak.is-reading, .he-tap.is-reading .speak { color: var(--accent, #2563eb); animation: speakPulse 1.2s ease-in-out infinite; }
@keyframes speakPulse { 50% { opacity: .45; } }
.option.opt-listen { cursor: pointer; }
.option.opt-listen[aria-disabled="true"] { opacity: 1; }
.opt-listen-ico { display: inline-flex; width: 18px; height: 18px; margin-inline-start: 6px; opacity: .55; flex: 0 0 auto; }
.opt-listen-ico svg { width: 18px; height: 18px; }
.option.opt-listen:active .opt-listen-ico { opacity: 1; }
.quiz-dir { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 2px 0 10px; }
.quiz-dir .chip { gap: 6px; }
.quiz-dir .chip.is-on { background: var(--accent, #2563eb); color: #fff; border-color: transparent; }
.prompt-tr { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 4px 0 8px; }
/* ✍️ how to write (cursive stroke order) */
.write-card .body-text.small { font-size: 14px; }
.write-stage { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.write-svg { width: min(80vw, 300px); height: auto; background: var(--surface-2, #f6f7fb); border-radius: 16px; }
.write-base { stroke: rgba(120,130,160,.35); stroke-width: 1; stroke-dasharray: 4 4; }
.write-glyph { font-family: 'Gveret Levin', cursive; font-size: 150px; fill: rgba(120,130,160,.28); }
.write-stroke { fill: none; stroke: var(--write-arrow, #d33); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation-name: writeDraw; animation-timing-function: ease-in-out; animation-fill-mode: forwards; }
.write-head { fill: none; stroke: transparent; stroke-width: 4.5; opacity: 0; animation: writeShow .2s ease forwards; }
.write-dot { opacity: 0; animation: writeShow .25s ease forwards; }
.write-dot circle { fill: #1f5fbf; }
.write-dot text { fill: #fff; font: 700 11px system-ui, sans-serif; }
@keyframes writeDraw { to { stroke-dashoffset: 0; } }
@keyframes writeShow { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .write-stroke { animation-duration: .01s !important; } }
.write-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.write-print { font-size: 56px; line-height: 1; }
.write-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin: 6px 0 24px; }
.write-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line, #e3e6ef); background: var(--surface, #fff); cursor: pointer; }
.write-pick .hebrew-cursive { font-size: 28px; line-height: 1.1; }
.write-pick .hebrew-print { font-size: 13px; opacity: .6; }
.write-pick.is-on { border-color: var(--accent, #2563eb); box-shadow: 0 0 0 2px var(--accent, #2563eb) inset; }
.qt-script { padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }
.qt-script span { font-size: 17px; line-height: 1; pointer-events: none; }
.qt-script[data-mode="cursive"], .qt-script[data-mode="rashi"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* ---------- cast pop-ups (cast-v1.js) ---------- */
.cast-pop { position: fixed; z-index: 60; inset-inline-start: max(10px, calc(50% - 300px)); bottom: calc(150px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; gap: 4px; pointer-events: auto; animation: cast-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.cast-pop.is-out { animation: cast-out .3s ease-in both; }
.cast-fig { position: relative; width: 92px; height: 132px; flex: none; }
.cast-body { width: 100%; height: 100%; }
.cast-body svg { width: 100%; height: 100%; display: block; }
.cast-happy .cast-body { animation: cast-jump .5s ease-in-out .2s 3; transform-origin: 50% 100%; }
.cast-sad .cast-body { animation: cast-droop .8s ease-out .15s both; transform-origin: 50% 100%; }
.cast-sparks { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); animation: cast-spark 1.2s ease-out both; pointer-events: none; }
.cast-tear { position: absolute; width: 9px; top: 40px; inset-inline-end: 30px; animation: cast-tear 1.4s ease-in .5s infinite; }
.cast-hands { position: absolute; left: 50%; top: 62%; width: 0; height: 0; }
.cast-hands i { position: absolute; top: -8px; width: 15px; height: 15px; border-radius: 50%; background: #F0C7A4; box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.cast-hands i:first-child { left: -20px; animation: cast-clapL .32s ease-in-out 6; }
.cast-hands i:last-child { left: 5px; animation: cast-clapR .32s ease-in-out 6; }
.cast-bubble { margin-bottom: 86px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: 0 6px 20px rgba(21, 32, 51, .14); display: flex; flex-direction: column; gap: 1px; max-width: 200px; }
[dir="rtl"] .cast-bubble, html[dir="rtl"] .cast-bubble { border-radius: 16px 16px 4px 16px; }
.cast-line { font-family: var(--font-he); font-size: 19px; font-weight: 700; line-height: 1.3; }
.cast-tr { font-size: 12px; color: var(--muted); }
.cast-name { font-size: 12px; color: var(--muted); font-weight: 600; }
.cast-happy .cast-name { color: var(--good); }
.cast-streak .cast-bubble { border-color: var(--gold); background: var(--gold-soft); }
@keyframes cast-in { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cast-out { to { transform: translateY(30px) scale(.8); opacity: 0; } }
@keyframes cast-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px) rotate(-3deg); } 70% { transform: translateY(-4px) rotate(2deg); } }
@keyframes cast-droop { 0% { transform: none; filter: none; } 100% { transform: rotate(-6deg) translateY(4px) scale(.97); filter: saturate(.6); } }
@keyframes cast-spark { from { transform: scale(.4) rotate(-20deg); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1.1) rotate(8deg); opacity: 0; } }
@keyframes cast-tear { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes cast-clapL { 50% { transform: translateX(9px); } }
@keyframes cast-clapR { 50% { transform: translateX(-9px); } }
@media (prefers-reduced-motion: reduce) { .cast-pop, .cast-pop *, .cast-pop.is-out { animation: none !important; } }
.iv-name { letter-spacing: .08em; }

/* ---------- calmer home (hub-v10.js) ---------- */
.hub-clean .row-sub, .hub-clean .row-he { display: none; }
.hub-clean .row { min-height: 64px; }
.hub-clean .row-title { font-size: 16px; font-weight: 600; }
.hub-clean .row-body { gap: 7px; justify-content: center; }
.tile.tile-cast { padding: 0; overflow: hidden; border-radius: 50%; background: none !important; }
.cast-av { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; }
.cast-av svg { position: absolute; width: 150%; height: auto; left: -25%; top: -14%; }
.lead-card { display: flex; align-items: flex-end; gap: 10px; background: var(--lead, #20283F); border-radius: 18px; padding: 14px 14px 0; margin-bottom: 14px; overflow: hidden; }
.lead-fig { width: 82px; height: 118px; flex: none; animation: cast-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.lead-fig svg { width: 100%; height: auto; display: block; }
.lead-talk { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; }
.lead-name { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.lead-bubble { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; }
.lead-he { font-family: var(--font-he); font-size: 17px; font-weight: 700; line-height: 1.35; }
.lead-tr { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .lead-fig { animation: none; } }
.hub-clean .row-body { align-items: stretch; text-align: start; }
.hub-clean .row-body > * { align-self: stretch; width: auto; margin-inline: 0; }
.hub-clean .row-title { text-align: start; }
.hub-clean .row-body { flex: 1 1 auto; min-width: 0; }
.hub-clean .row-body { justify-items: stretch; }
.hub-clean .row-body > .row-title { justify-self: start; }
.hub-clean .row-body { display: flex; flex-direction: column; align-items: stretch; }
.hub-clean .row-body .bar { width: 100%; }
/* inside a category: names only, details are shown inside */
body[data-screen="culture_hub"] .list .row-sub,
body[data-screen="words_categories"] .list .row-sub,
body[data-screen="sentences_categories"] .list .row-sub { display: none; }
/* clean category pages: no summary under the title, names only in the lists */
body[data-screen="culture_hub"] .lede, body[data-screen="culture_hub"] .page-head .lede,
body[data-screen="words_categories"] .lede, body[data-screen="sentences_categories"] .lede,
body[data-screen="article"] .lede, body[data-screen="news_hub"] .lede, body[data-screen="astrology_hub"] .lede,
body[data-screen="letters_hub"] .lede, body[data-screen="grammar_hub"] .lede, body[data-screen="verbs"] .lede { display: none; }
body[data-screen="culture_hub"] .list .row-sub, body[data-screen="article"] .list .row-sub { display: none; }

/* Israel weather card (news page) */
.wx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 8px; margin: 4px 0 14px; }
.wx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.wx-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.wx-he { font-size: 15px; color: var(--ink-2); }
.wx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 340px) { .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wx-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; text-align: center; min-width: 0; }
.wx-c:active { transform: scale(.98); }
.wx-top { display: flex; align-items: center; gap: 4px; }
.wx-ic { font-size: 22px; line-height: 1; }
.wx-t { font-size: 20px; font-weight: 700; direction: ltr; }
.wx-cityhe { font-size: 16px; font-weight: 600; margin-top: 2px; }
.wx-city, .wx-condtr { font-size: 11.5px; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.wx-cond { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.wx-mm { font-size: 11.5px; color: var(--muted); direction: ltr; margin-top: 2px; }
.wx-src { font-size: 10.5px; color: var(--muted); text-align: end; margin-top: 6px; direction: ltr; }
.wx-unit { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-inline-start: auto; direction: ltr; }
.wx-unit button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.wx-unit button[aria-pressed="true"] { background: var(--primary, #234E96); color: var(--primary-ink, #fff); }

/* no scroll "jumps": content that appears or changes above the view never moves the page */
html, body, #scroller, .screen { overflow-anchor: none; }
.wx-sk { cursor: default; opacity: .55; }
.wx-cond { line-height: 22px; }
.wx-title, .wx-he, .wx-he * { line-height: 24px; }
.wx-title, .wx-he { display: inline-flex; align-items: center; height: 24px; white-space: nowrap; }

/* ---------- New logo in the top bar (25 Oct 2026): ג between two stripes + GALUT / גלות ---------- */
.brand { direction: ltr; gap: 8px; }
.brand-dot { display: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: #1E3A8A; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.brand-mark i { position: absolute; left: 0; right: 0; height: 1.6px; background: #fff; opacity: .9; }
.brand-mark i:first-child { top: 4px; } .brand-mark i:last-child { bottom: 4px; }
.brand-mark b { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; color: #fff; font-size: 25px; line-height: 1; padding-bottom: 2px; }
.brand-words { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand .brand-latin { font-family: var(--font-ui); font-weight: 700; font-size: 16px; letter-spacing: .16em; color: var(--primary); display: block; }
.brand-he { display: flex; align-items: center; gap: 4px; color: var(--primary); }
.brand-he i { flex: 1; height: 1px; background: currentColor; min-width: 6px; }
.brand-he .hebrew-print { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 12px; line-height: 1; }
@media (max-width: 400px) { .topbar .brand-latin { display: block; } }
@media (max-width: 430px) { .brand { gap: 6px; } .brand .brand-latin { font-size: 13.5px; letter-spacing: .1em; } .brand-he .hebrew-print { font-size: 11px; } .brand-mark { width: 28px; height: 28px; border-radius: 7px; } .brand-mark b { font-size: 22px; } .brand-mark i:first-child { top: 3.5px; } .brand-mark i:last-child { bottom: 3.5px; } .brand::after { font-size: 9.5px; padding: 3px 5px; } }
@media (max-width: 380px) { .brand::after { display: none; } }
/* Sign in with Apple: white style on dark backgrounds (Apple guidelines) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acct-apple { background: #fff; color: #000; border-color: #fff; } }
:root[data-theme="dark"] .acct-apple { background: #fff; color: #000; border-color: #fff; }

/* sentence translations toggle in place */
.he-block > p.tr[hidden] { display: none !important; }

/* listening practice (29 Oct 2026) */
.listen-prompt { display: grid; justify-items: center; gap: 12px; padding-block: 26px; }
.listen-big { width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-ink, #fff); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.listen-big svg { width: 40px; height: 40px; }
.listen-big:active { transform: scale(.95); }
.listen-hint { margin: 0; color: var(--muted); font-size: 15px; text-align: center; }

/* missing word (29 Oct 2026) */
.cz-prompt { display: grid; gap: 10px; }
.cz-q { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.cz-sent { margin: 0; font-size: 26px; line-height: 1.6; }
.cz-blank { display: inline-block; min-width: 3.2em; border-bottom: 3px solid var(--primary); color: transparent; }
.cz-fill { background: var(--primary-soft, #e0e7ff); color: var(--primary); border-radius: 6px; padding: 0 4px; }
.cz-tr { margin: 0; color: var(--muted); font-size: 15px; }
.cz-options .opt-he { font-size: 22px; }
.mistakes-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.cz-options .option { direction: rtl; }
.mix-dict { margin-top: 8px; }
.tq-listen { justify-self: center; margin: 2px auto 4px; }
/* (11 Nov 2026) quiz round end screen: mistakes list + actions */
.qz-mist { gap: 10px; }
.qz-mist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-mist-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.qz-mist-he { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--ink); font-size: 22px; cursor: pointer; flex-shrink: 0; }
.qz-mist-tr { font-size: 14px; color: var(--ink-2); text-align: end; min-width: 0; }
.qz-end-actions { display: grid; gap: 10px; }
/* on quiz screens the cheering character stands up top, not on the answers */
body:has(.screen-quiz) .cast-pop, body:has(.qz-mist) .cast-pop { bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); transform-origin: top left; }
/* (11 Nov 2026) grammar v2: summary, forms table, watch-out card */
.gram-sum{margin-top:10px}
.gram-tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.gram-tbl{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}
.gram-tbl th:nth-child(1),.gram-tbl td:nth-child(1){width:26%}.gram-tbl th:nth-child(2),.gram-tbl td:nth-child(2){width:40%}
.gram-tbl th{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;opacity:.65;text-align:start;padding:10px 12px;border-bottom:1px solid var(--line, rgba(0,0,0,.12))}
.gram-tbl td{padding:9px 10px;overflow-wrap:anywhere;border-bottom:1px solid var(--line, rgba(0,0,0,.08));vertical-align:middle}
.gram-tbl tr:last-child td{border-bottom:0}
.gram-tbl tbody tr{cursor:pointer}
.gram-tbl tbody tr:active{background:rgba(127,127,127,.12)}
.gram-tbl .gt-who{opacity:.75;font-size:13px}
.gram-tbl .gt-he{font-size:19px}
.gram-tbl .gt-he>div[dir=rtl]{text-align:right}
.gram-tbl .gt-tl{font-style:italic;opacity:.75;font-size:13px;margin-top:2px;text-align:right}
.gram-watch{border-inline-start:4px solid #e0a32b}
.gram-watch .group-label{margin:0 0 8px}
.gram-tbl th:nth-child(2){text-align:right}
/* (12 Nov 2026) the cheering character stood on the answers and on the explanations: it now sits small, in the top bar */
.cast-pop, body:has(.screen-quiz) .cast-pop, body:has(.qz-mist) .cast-pop { top: calc(3px + env(safe-area-inset-top, 0px)); bottom: auto; inset-inline-start: max(62px, calc(50% - 300px)); align-items: center; gap: 2px; z-index: 90; transform-origin: top left; }
.cast-pop .cast-fig { width: 40px; height: 57px; }
.cast-pop .cast-bubble { margin-bottom: 0; padding: 3px 10px 4px; border-radius: 12px; max-width: 190px; gap: 0; box-shadow: 0 4px 14px rgba(21, 32, 51, .18); }
.cast-pop .cast-line { font-size: 15px; line-height: 1.25; }
.cast-pop .cast-tr, .cast-pop .cast-name { font-size: 10.5px; line-height: 1.2; }
.cast-pop .cast-tear { width: 5px; top: 17px; inset-inline-end: 12px; }
.cast-pop .cast-hands i { width: 7px; height: 7px; top: -4px; }
.cast-pop .cast-hands i:first-child { left: -9px; }
.cast-pop .cast-hands i:last-child { left: 2px; }
.cast-pop .cast-sparks { inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
@keyframes cast-in { from { transform: translateY(-30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cast-out { to { transform: translateY(-24px) scale(.8); opacity: 0; } }
@keyframes cast-clapL { 50% { transform: translateX(4px); } }
@keyframes cast-clapR { 50% { transform: translateX(-4px); } }
/* (12 Nov 2026) answered options: one speaker (the whole option plays), Hebrew and phonetics on one line under the text */
.option.opt-listen .opt-reveal .speak-sm { display: none; }
.option.opt-listen .opt-main { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
.option.opt-listen .opt-main > .opt-text { flex: 1 0 100%; }
.option.opt-listen .opt-main > .opt-reveal { padding-top: 0; }
/* (12 Nov 2026) phone: the quiz mode chips stay on one line (swipe sideways), so the four answers fit on the screen */
@media (max-width: 560px) {
  .quiz-dir { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; }
  .quiz-dir::-webkit-scrollbar { display: none; }
  .quiz-dir .chip { flex: 0 0 auto; }
  .screen-quiz .prompt { padding-block: 14px; }
  .screen-quiz .quiz-status { margin-bottom: 6px; }
}
/* the Google Analytics question no longer covers the bottom tabs */
#ga-consent { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }

/* 13 Nov 2026 (Moshe): the language button is always in the top bar, so nobody gets stuck in a language they picked by mistake */
.topbar-v9 .qt-lang { padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; }
.topbar-v9 .qt-lang .ic { width: 19px; height: 19px; }
@media (max-width: 400px) { .topbar-v9 .quick-toggles { gap: 4px; } .topbar-v9 .qt { min-width: 33px; padding: 0 5px; } }
@media (max-width: 360px) { .topbar-v9 .brand-words { display: none; } }
/* (18 Nov 2026, UX walkthrough) the cheering character sits on the tool icons of the top bar, not on the question counter */
.cast-pop, body:has(.screen-quiz) .cast-pop, body:has(.qz-mist) .cast-pop { inset-inline-start: auto; inset-inline-end: max(54px, calc(50% - 300px + 54px)); transform-origin: top right; }
/* (18 Nov 2026) the quiz options (direction · listening · auto next) wrap to a second line instead of hiding off-screen */
.quiz-dir { flex-wrap: wrap; overflow-x: visible; margin-inline: 0; padding-inline: 0; justify-content: center; row-gap: 6px; }
/* (18 Nov 2026) grammar lesson: the lesson navigation is set apart from the quiz's Previous / Next */
.lesson-pager { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
