/* rbhomepartner 1.0.1 (24 Oct 2026). 1.0.1, London: the button reads "Partner Portal", in Lexend (the About page's face). 1.0.0, London: "Put the partner portal button on the bottom left of the homepage too". One fixed pill, bottom-left of Home, linking to /partner-login. Same look as the footer's Partner login pill (rbfooterfilm 1.0.5: outlined, Lexend, fills brand red on hover), with a dark glass backing because it sits over the vitrine wall. No path guard: attach it to the Home page only. Also runs on the redbridgelab.org coming-soon copy of Home, where the Worker serves /partner-login. */ (function () { if (window.__rbHomePartner) return; window.__rbHomePartner = 1; var CSS = 'a.rbhp{position:fixed;z-index:60;left:max(20px,env(safe-area-inset-left,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));' + 'display:inline-block;white-space:nowrap;text-decoration:none;font:400 clamp(11px,.82vw,13px)/1 "Lexend",system-ui,-apple-system,"Segoe UI",sans-serif;' + 'letter-spacing:.04em;text-transform:none;color:#fff;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:.9em 1.6em;' + 'background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background-color .3s,border-color .3s}' + 'a.rbhp:hover,a.rbhp:focus-visible{background:#b80000;border-color:#b80000;color:#fff}' + 'a.rbhp:focus-visible{outline:1px solid #fff;outline-offset:3px}' + '@media (max-width:600px){a.rbhp{font-size:12px;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px))}}'; function build() { var d = document; if (!d.querySelector('link[data-rbhp]')) { var l = d.createElement('link'); l.rel = 'stylesheet'; l.setAttribute('data-rbhp', ''); l.href = 'https://fonts.googleapis.com/css2?family=Lexend:wght@400&display=swap'; d.head.appendChild(l); } var s = d.createElement('style'); s.textContent = CSS; d.head.appendChild(s); var a = d.createElement('a'); a.className = 'rbhp'; a.href = '/partner-login'; a.textContent = 'Partner Portal'; d.body.appendChild(a); } if (document.body) build(); else document.addEventListener('DOMContentLoaded', build); })();