/* The first open (PM L-749, first.js): class guest-first on <html> (put there by signin.js before the app starts) hides everything
   of Practice but the page; first.js draws the top line (wordmark, language, Sign in) and the bottom (one line, one gold button).
   gf-live: the person is reciting, so the Practice bar (the timer, Stop) shows. gf-done: the first recitation is over and the
   sign up sheet is up. Tokens and the gold are taaj.css's.
   mem2: the bottom is home's own two buttons (Practice's black Recite and gold Memorise, taaj.css), the line sits above them (--gf-pb, the
   bar's height, measured by first.js); Memorise shows no arrow here. gf-away: a lesson or its end page is up, the top line and the line go.
   gf-resume: a lesson left half way, home's Resume line shows in place of our line. */
.gf-top,.gf-bar{position:fixed;left:var(--gf-l,0);width:var(--gf-w,100%);z-index:40;box-sizing:border-box;background:var(--page,var(--bg))}
/* on a computer the app is a centred card: the top line is as wide as the card, the button as the home bar (600 px at most) */
.gf-bar{left:calc(var(--gf-l,0px) + (var(--gf-w,100%) - min(var(--gf-w,100%),600px)) / 2);width:min(var(--gf-w,100%),600px)}
@media(min-width:760px){.gf-top{border-radius:29px 29px 0 0}.gf-bar{border-radius:0 0 29px 29px}}
.gf-top{top:var(--gf-t,0);display:flex;align-items:center;justify-content:space-between;padding:max(10px,env(safe-area-inset-top)) 14px 8px 20px;min-height:56px}
[dir=rtl] .gf-top{padding:max(10px,env(safe-area-inset-top)) 20px 8px 14px}
.gf-mark{direction:ltr;unicode-bidi:isolate;font-family:var(--display,inherit);font-size:26px;font-weight:700;letter-spacing:-1px;color:var(--ink)}
.gf-mark i{font-style:normal;color:var(--gold,var(--accent))}
.gf-links{display:flex;align-items:center;gap:6px}
.gf-link{min-height:44px;padding:0 6px;border:0;background:none;white-space:nowrap;font:inherit;font-size:15.5px;font-weight:500;color:var(--muted);cursor:pointer}
.gf-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.gf-bar{bottom:calc(var(--gf-b,0px) + var(--gf-pb,0px));display:flex;flex-direction:column;gap:12px;padding:10px 16px 2px;background:transparent}
.gf-line{margin:0;text-align:center;font-size:16px;line-height:1.4;color:var(--muted)}

/* the page alone: no top bar, no bottom bar of Practice, no questions, no tips */
/* L-1153 (19 Nov, his words: "remove talqeen name from there instead put the surah name like it was before", "so much empty space"): on a
   phone or any narrow window the first visit keeps the app's own header (surah, page, juz, hizb, bookmark, menu) and the page's full
   size; the wordmark line and its 40px of room for the old grey line are a computer's only (w-nav, web.js), where the top bar replaces them. */
html:not(.w-nav) .gf-top{display:none!important}
html.guest-first.w-nav .practice-screen{--stage-top:calc(max(10px,env(safe-area-inset-top)) + 56px);--stage-bottom:calc(var(--gf-pb,80px) + 40px)}
html.guest-first.w-nav:not(.w-home) .practice-screen>.lesson-top,html.guest-first.w-nav .practice-screen>.page-head,html.guest-first.w-nav .practice-screen>.ask-dock,
html.guest-first.w-nav .coach,html.guest-first.w-nav .tour,html.guest-first.w-nav .noise-tip,html.guest-first.w-nav .practice-screen .offer{display:none!important}
html.guest-first.w-nav .practice-bar>:not(.mic-card):not(.notice):not(.fab):not(.mem-btn):not(.bar-gap):not(.resume-chip):not(.hb-x):not(.pick-card):not(.turn-row){display:none!important}    /* L-1121: the Resume card keeps its x for a guest too. L-1341: a computer's home keeps its title line and page arrows for a guest */
html.guest-first.w-nav .practice-bar>.resume-chip.next-chip,html.guest-first.w-nav .practice-bar>.mem-btn svg{display:none!important}    /* mem2: no Next lesson line (our line says it), no arrow, no menu */
html.guest-first.w-nav .practice-bar>.mem-btn{padding:0 16px}
html.gf-away .gf-top,html.gf-away .gf-bar,html.gf-resume .gf-bar{display:none}
html.guest-first:not(.tut-ok):not(.w-nav) #mushaf{pointer-events:none}    /* one page, no swipe, no ayah chosen: the first lesson is the first ayat of this page's surah. L-1341: never on a computer's two pages */
/* while reciting: Practice's own bar (the timer and Stop) in place of ours, but still no Memorise, no chip, no pill */
html.guest-first.gf-live .gf-bar{display:none}
html.guest-first.gf-live .practice-bar>.rec-timer,html.guest-first.gf-live .practice-bar>.heard-line,html.guest-first.gf-live .practice-bar>.fab{display:revert!important}
/* an error card or a note (no microphone, no internet, busy, refused) sits in the app's own bar above its buttons, as on home; our line goes meanwhile */
html.guest-first .practice-bar:has(>.mic-card,>.notice:not(:empty)) ~ .gf-bar,html.guest-first:has(.practice-bar>.mic-card,.practice-bar>.notice:not(:empty)) .gf-bar{display:none}
.gf-line.gf-note{color:var(--ink);font-weight:550}
/* while reciting: Stop with its square centred on the label */
html.guest-first.gf-live .practice-bar>.fab{display:flex!important;align-items:center;justify-content:center;gap:10px;line-height:1}
html.guest-first.gf-live .practice-bar>.fab svg,html.guest-first.gf-live .practice-bar>.fab i{flex:none;margin:0;vertical-align:middle}
/* the result sheet is up: the page fades, the top line (Sign in) stays, our button goes */
html.gf-done .gf-bar,html.gf-done.guest-first .practice-bar>:is(.fab,.mem-btn,.resume-chip){display:none!important}
html.gf-done.guest-first #mushaf{opacity:.35;transition:opacity .25s}
@media(prefers-reduced-motion:reduce){html.gf-done.guest-first #mushaf{transition:none}}
[dir=rtl] .gf-link[data-gf=lang]{font-family:inherit}
/* L-1134 tutorial: no grey line under the page (only a note shows there); the page takes taps once the tutorial has begun (tut.js, class tut-ok) */
.gf-line:empty{display:none}

/* L-1151 first screen (19 Nov). A browser under a computer's width (no top bar): the page starts under the app's own header, however tall
   its page line makes it (--w-head-b, measured by web.js; at 300 to 359px the surah's banner was under it). The apps never get the class. */
html.web:not(.w-nav) .practice-screen{--stage-top:max(calc(max(8px,env(safe-area-inset-top)) + 54px),calc(var(--w-head-b,0px) - 4px))}
/* The smallest windows and phones (under 340px): Recite and Memorise are two whole buttons of the same width and edges, one under the
   other (Memorise kept its 10px start margin from the side by side row and sat narrower and off the edge). Only while the bar
   holds nothing else beside them. 340 to 359px: side by side, the same width each. 360px and wider: as before. */
@media(max-width:339px){
  .practice-screen .practice-bar:not(:has(>.eye-group.on,>.mistakes-pill.has))>.mem-btn{margin:0!important}
}
@media(min-width:340px) and (max-width:359px){
  .practice-screen .practice-bar:not(:has(>.eye-group.on,>.mistakes-pill.has))>:is(.fab,.mem-btn){flex:1 1 0!important;min-width:0!important}
}
