/* Phone check, 4 Dec 2026 evening (Abdullah's iPhone). Loaded on every page, last in <head>. No words change.
   1 Safari's bottom bar: Safari colours the band around its floating address bar from any solid fixed bar touching the
     bottom of the screen. The quick-button bar is now switched off (not just slid away) while it is out of sight, and
     its cream paper is painted as an image rather than a background colour, so the page shows under Safari's bar.
   2 Pearl, the chat button on phones: smaller and lower, with a smaller "Ask me" that is said once, not every minute. */

@media (max-width:47.99rem){
 /* 1a. paper drawn as an image, so the bar has no solid colour for Safari to pick up */
 html .abar.abar[class][class]{background-color:transparent;background-image:linear-gradient(var(--abar-paper,#fffdf7),var(--abar-paper,#fffdf7))}
 /* 1b. out of sight means switched off: it slides away, then hides once the slide has finished */
 html.v47-bar-away .abar.abar[class][class]{visibility:hidden;transition:transform .3s cubic-bezier(.3,.7,.3,1),opacity .2s linear .1s,visibility 0s linear .3s}

 /* 2. Pearl: 64px to 46px, closer to the corner */
 html.pv49 .chat__launcher[class][class]{inline-size:2.9rem;block-size:2.9rem;bottom:max(.6rem,calc(env(safe-area-inset-bottom) - .4rem));inset-inline-end:max(.6rem,env(safe-area-inset-right));box-shadow:0 0 0 3px var(--c-sunbeam,#cfe3a4),0 6px 12px -6px #0a1f1473}
 html.pv49 .chat__launcher[class] .pearl{inline-size:2rem}
 html.pv49 .chat__launcher[class] .pv49-bub{font-size:.78rem;padding:.3rem .55rem;inset-inline-end:calc(100% + .45rem);inset-block-end:22%}
 /* after the first hello the bubble stays away (phone-v52.js adds v52-said) */
 html.v52-said .chat__launcher .pv49-bub{display:none}
 /* back to top sits just above the smaller Pearl */
 html.pv49 .pearl-progress[class][class]{inline-size:2.3rem;block-size:2.3rem;inset-inline-end:calc(max(.6rem,env(safe-area-inset-right)) + .3rem);bottom:calc(max(.6rem,calc(env(safe-area-inset-bottom) - .4rem)) + 2.9rem + .6rem)}
}
@media (max-width:47.99rem) and (prefers-reduced-motion:reduce){html.v47-bar-away .abar.abar[class][class]{transition:none}}
