/* BT sign-in box v2 (Oct 24, 2026): turns Ghost's members-only box into a plan-specific one. Reads Ghost's own heading (which names the tiers that unlock the page), then rewrites it: "This episode is included with Signal and Network" + plan prices + the right button. */ (function(){ var ORD=['Wire','Signal','Network'],PRICE={Wire:'$5.99/mo',Signal:'$7.99/mo',Network:'$10.99/mo'}; var css='.gh-post-upgrade-cta-content h2{margin-bottom:6px!important}'+ '.btcta-sub{margin:10px 0 0!important;font-size:16px!important;line-height:1.45;color:#fff;opacity:.92}'+ '.btcta-plans{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0 0}'+ '.btcta-plans span{display:inline-block;padding:6px 13px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);font-weight:800;font-size:14px;color:#fff}'+ '.btcta-plans b{font-weight:600;opacity:.85;margin-left:6px}'; function kind(o){ var p=location.pathname; if(/this page/i.test(o))return /^\/inbox\//.test(p)?'page':'tool'; if(/podcast/i.test(p)||document.querySelector('.tag-podcast,.tag-hash-podcast'))return 'episode'; return 'post'; } function list(a){return a.length<2?a[0]:a.slice(0,-1).join(', ')+(a.length>2?',':'')+' and '+a[a.length-1]} function run(){ var boxes=document.querySelectorAll('.gh-post-upgrade-cta-content'); for(var i=0;i'+t+(PRICE[t]?''+PRICE[t]+'':'')+''}).join(''); h.parentNode.insertBefore(pl,h.nextSibling); if(btn){btn.textContent='See plans';btn.setAttribute('data-portal','signup');btn.setAttribute('href','#/portal/signup')} } c.setAttribute('data-btcta','1'); } } var st=document.createElement('style');st.textContent=css;document.head.appendChild(st); if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',run);else run(); setTimeout(run,800); })();