/* 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 */
html.guest-first .practice-screen{--stage-top:calc(max(10px,env(safe-area-inset-top)) + 56px);--stage-bottom:calc(var(--gf-pb,80px) + 40px)}
html.guest-first .practice-screen>.lesson-top,html.guest-first .practice-screen>.page-head,html.guest-first .practice-screen>.ask-dock,
html.guest-first .coach,html.guest-first .tour,html.guest-first .noise-tip,html.guest-first .practice-screen .offer{display:none!important}
html.guest-first .practice-bar>:not(.mic-card):not(.notice):not(.fab):not(.mem-btn):not(.bar-gap):not(.resume-chip){display:none!important}
html.guest-first .practice-bar>.resume-chip.next-chip,html.guest-first .practice-bar>.mem-btn svg{display:none!important}    /* mem2: no Next lesson line (our line says it), no arrow, no menu */
html.guest-first .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 #mushaf{pointer-events:none}    /* one page, no swipe, no ayah chosen: the first lesson is the first ayat of this page's surah */
/* 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}
