/* Meaning (meaning.js): a plain link, and a bottom sheet over any screen (the .set-sheet kind, in body, above the lesson's bars). */
.mean-link{flex:none;align-self:center;min-height:32px;padding:0 2px;border:0;background:none;color:var(--accent-text);font:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mean-link:focus-visible,.mean-step:focus-visible,.mean-t:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:12px}
/* lesson: at the trailing end of the top card's line, above the guide's caption, which keeps clear of it */
.lesson-card>.mean-link{position:absolute;z-index:4;inset-inline-end:10px;top:50%;translate:0 -50%;padding:0 4px}
.lesson-card:has(>.mean-link) .card-text,.lesson-card:has(>.mean-link)>.caption.top-cap{padding-inline-end:84px}
/* home: its own short row at the top of the bar, centred just above Recite and Memorise; the lines that sit above the bar (the
   hint, Resume, the page arrows) move up with it, so nothing overlaps */
.practice-screen .practice-bar:has(>.mean-link){flex-wrap:wrap;row-gap:2px}
.practice-bar>.mean-link{order:-1;position:relative;min-height:16px;line-height:16px;margin:-8px auto 0;padding:0 12px}    /* the bar grows by 10px only: the hint above it must stay off the page's last line */
.practice-bar>.mean-link::after{content:'';position:absolute;inset:-10px -4px -2px}    /* a finger sized target without a taller bar */
.practice-bar>.mean-br{order:-1;flex:0 0 100%;height:0}
.practice-screen.bare .practice-bar>:is(.mean-link,.mean-br),.practice-bar:has(>.mic-card)>:is(.mean-link,.mean-br){display:none}
/* with ayat chosen: a plain link beside More in the chosen ayat bar */
.ayah-bar .pc-head:has(>.mean-link){grid-template-columns:1fr auto auto auto;grid-template-areas:"n k m x" "w w w w"}
.ayah-bar .pc-head>.mean-link{grid-area:k;min-height:44px;margin:-10px 0;padding:0 8px;font-size:13.5px}
.sheet-scrim.mean-sc{z-index:50}
.sheet.set-sheet.mean-sheet{z-index:51;display:flex;flex-direction:column;height:60%;max-height:none;overflow:hidden;padding-bottom:0;touch-action:pan-y}
.sheet.set-sheet.mean-sheet.full{height:calc(100% - max(12px,env(safe-area-inset-top)))}
.mean-head{flex:none;gap:2px;touch-action:none;cursor:grab}
.mean-head h2{flex:1;min-width:0;margin:0;text-align:center;font-size:19px}
.mean-step{flex:none;display:grid;place-items:center;width:40px;height:44px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer}
.mean-step svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mean-step:disabled{color:var(--edge);cursor:default}
.mean-prev svg{transform:scaleX(-1)}
html[dir=rtl] .mean-prev svg.dir{transform:none}
html[dir=rtl] .mean-next svg{transform:scaleX(-1)}
.mean-texts{flex:none;display:flex;gap:20px;padding:0 4px 8px}
.mean-texts[hidden]{display:none}
.mean-t{padding:6px 0;border:0;background:none;color:var(--muted);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.mean-t.on{color:var(--ink);box-shadow:inset 0 -1.5px 0 var(--gold)}
.mean-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 4px max(18px,env(safe-area-inset-bottom))}
.mean-words{text-align:start}
.mean-text{margin:0;font-size:16px;line-height:1.6;color:var(--ink);white-space:pre-line}
.mean-notes{margin:14px 0 0;font-size:13.5px;line-height:1.55;color:var(--muted);white-space:pre-line}
.mean-ar .mean-text{font-family:AmiriQuran,'IBM Plex Sans Arabic',serif;font-size:19px;line-height:1.9}
.mean-ar .mean-notes{font-size:15px;line-height:1.75}
.mean-group{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--muted)}
.mean-credit{margin:18px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
.mean-none{margin:8px 0;font-size:15px;line-height:1.5;color:var(--muted)}
/* PM L-964, his picture of 16 Nov: the list of ayat. No boxes: space between ayat, a hairline under each word and its meaning. */
.sheet.set-sheet.mean-sheet{width:min(100%,560px)}
.mean-list .mean-body{padding-top:0}
.mean-ayah{padding:14px 0 22px}
.mean-n{margin:0 0 6px;font-size:13px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.mean-q{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:6px 9px;margin:0 0 12px;color:var(--page-ink,var(--ink));font-size:28px;line-height:1.75;direction:rtl}
.mean-w{text-rendering:geometricPrecision;white-space:nowrap}
.mean-plain{font-family:AmiriQuran,serif;font-size:24px;line-height:1.9}
/* word by word: each word over its meaning, right to left in rows, a hairline under the pair */
.mean-q.wbw{gap:4px 10px;align-items:stretch;line-height:1.5}
.mean-cell{flex:1 0 auto;max-width:50%;min-width:22%;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 8px 9px;border-bottom:1px solid var(--rule,rgba(0,0,0,.08))}
.mean-wm{font-family:var(--ui);font-size:13.5px;line-height:1.3;color:var(--muted);text-align:center;direction:ltr}
.mean-list .mean-text{font-size:16.5px;line-height:1.6}
.mean-fn{font-size:.8em;color:var(--accent-text)}
.mean-taf{display:inline-flex;align-items:center;min-height:40px;margin:6px 0 -10px;padding:0;border:0;background:none;color:var(--accent-text);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.mean-taf{gap:3px}.mean-taf svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mean-en .mean-text{font-size:17px;line-height:1.65}
.mean-en .mean-text+.mean-text,.mean-en .mean-th+.mean-text{margin-top:12px}
.mean-en .mean-th{margin:22px 0 0;font-size:17px;font-weight:700;line-height:1.4;color:var(--ink)}.mean-en .mean-th:first-child{margin-top:0}
.mean-en .mean-qa{font-family:AmiriQuran,'IBM Plex Sans Arabic',serif;font-size:20px;line-height:1.9;text-align:right}
.mean-taf:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:12px}
.mean-list .mean-credit{margin:4px 0 0}
.mean-t.mean-up{display:inline-flex;align-items:center;gap:2px;margin-inline-start:-6px;color:var(--accent-text)}
.mean-t.mean-up svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
html[dir=rtl] .mean-t.mean-up svg.dir{transform:scaleX(-1)}
/* PM L-996 (17 Nov): the Meaning switch in the lesson's bottom bar and the scrolling view it turns the page into (meaning.js lessonSync).
   The switch: the book over its word, as Next's arrow over its word; no ring, no fill; on = gold with a short gold line under the word
   (as the sheet's chosen text), so on and off differ by more than colour. In a test it rests: dimmed, still showing on or off. */
.mean-sw{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:56px;height:52px;padding:0 4px;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mean-sw svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mean-sw span{padding-bottom:2px;font-size:12px;font-weight:650;line-height:1.1;color:inherit}
.mean-sw[aria-pressed=true]{color:var(--accent-text)}
.mean-sw[aria-pressed=true] span{box-shadow:inset 0 -1.5px 0 var(--gold)}
.mean-sw:disabled{opacity:.4;cursor:default}
.mean-sw:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:12px}
.lesson-screen .control-row.deck.lbar:has(>.mean-sw){grid-template-columns:auto 1fr auto}
.lbar>.mean-sw{justify-self:center}
.deck-sub>.mean-sw{height:50px}
/* the view sits where the page sits, between the bars: it starts under the top bar and ends above the step's line, so no text runs behind either; the page stays drawn
   and marked beneath it, out of sight (opacity too: a test's slots are visibility:visible inside the page) */
.mean-scroll{display:none}
html.mean-on #drill>.mushaf{visibility:hidden;opacity:0}
html.mean-on #drill>.mean-scroll{display:block;position:absolute;z-index:1;top:calc(var(--stage-top) + 4px);left:0;right:0;bottom:calc(var(--stage-bottom) + 38px);overflow:hidden auto;overscroll-behavior:contain;padding:6px 20px 24px;background:var(--page,#F7F5F0);color:var(--page-ink,var(--ink))}
.mean-scroll .mean-in{max-width:640px;margin:0 auto}
.mean-scroll .mean-ayah{padding:10px 0 24px}
/* where the lesson is: the part's band (as the page's), its number in gold; the other ayat's meanings a step quieter */
.mean-scroll .mean-q{column-gap:0}
.mean-scroll .mean-w{position:relative;z-index:0;padding:0 .2em}
.mean-scroll .mean-w.hl{background:color-mix(in srgb,var(--accent,#A87B1A) 6%,transparent);box-shadow:inset 0 -.09em 0 color-mix(in srgb,var(--accent,#A87B1A) 75%,transparent)}
.mean-scroll .mean-w.playing::before{content:'';position:absolute;z-index:-1;inset:-.12em .06em;border-radius:.25em;background:var(--wordbox,rgba(0,0,0,.12))}
.mean-scroll .mean-q.wbw .mean-w.hl{background:none}
.mean-scroll .mean-w.hint{color:var(--hint,#2F6AA8)}
.mean-scroll .mean-ayah.cur .mean-n{color:var(--accent-text)}
.mean-scroll.has-cur .mean-ayah:not(.cur) :is(.mean-text,.mean-wm){color:var(--muted)}
#drill.own .mean-scroll .mean-w.playing::before{content:none}
/* a computer: the same column, larger, as the open mushaf beside the side column is */
@media (min-width:1024px) and (min-height:600px){
  html.mean-on #drill>.mean-scroll{padding-inline:32px}
  .mean-scroll .mean-in{max-width:760px}
  .mean-scroll .mean-q{font-size:36px}
  .mean-scroll .mean-text{font-size:18.5px;line-height:1.65}
  .mean-scroll .mean-n{font-size:14px}
  .mean-scroll .mean-ayah{padding:14px 0 30px}
}
.mean-scroll .mean-vmode{padding:0 0 4px}
/* My pace: after Hear again, before Next */
.lesson-controls.pace-bar .deck .mean-sw{order:2;flex:none;min-width:48px}
/* PM L-1139: in a test the view stays and hides the Arabic not yet said as the page does: a slot under each hidden word (page.css's
   .mushaf.blank), faint under the eye's peek. The plain fallback ayah has no words to follow, so it hides whole; the Tafsir links rest. */
.mean-scroll .mean-w.gone{visibility:hidden}
.mean-scroll .mean-w.gone::after{content:'';visibility:visible;position:absolute;left:.25em;right:.25em;top:calc(50% + .12em);height:.2em;border-radius:1em;background:var(--slot,rgba(0,0,0,.15))}
.mean-scroll .mean-w.faint{color:color-mix(in srgb,var(--page-ink,var(--ink)) 55%,transparent)}
.mean-scroll.mean-test .mean-plain{visibility:hidden}
.mean-scroll.mean-test .mean-taf{visibility:hidden;pointer-events:none}
