/* pxSoc v2 (Dec 2, 2026, his ask 5:10 a.m.: "make my socials more prominent but not like a stark color. Just always visible"). Header socials at every screen width in soft ink (60%), full ink on hover/focus; header height unchanged at all widths. 900px up: the .px-soc block in the header row. 768-899px: a line under the logo. Phones: in the logo row. Overrides the 20% ink set in pxdest-v4-loader. v2: both copies re-match the footer list, so Substack (added after load) is included. Source: claude/pxsoc-v2.js */ (function(){ if(window.pxSoc1)return;window.pxSoc1=1; var css='' +'html body .gh-navigation .px-soc a,html body .gh-navigation .px-soc-m a{color:rgba(22,21,19,.6)!important;transition:color .15s}' +'html body .gh-navigation .px-soc a:hover,html body .gh-navigation .px-soc a:focus-visible,html body .gh-navigation .px-soc-m a:hover,html body .gh-navigation .px-soc-m a:focus-visible{color:#161513!important}' +'.gh-navigation .px-soc-m{display:none}' +'.gh-navigation .px-soc a,.gh-navigation .px-soc-m a{display:block;line-height:0;flex-shrink:0}.gh-navigation .px-soc svg,.gh-navigation .px-soc-m svg{fill:currentColor}' /* phones: in the logo row, between the logo & the search button */ +'@media(max-width:767.98px){.gh-navigation .gh-navigation-brand{position:relative}.gh-navigation .px-soc-m{display:flex;position:absolute;left:52px;right:70px;top:50%;transform:translateY(-50%);justify-content:space-evenly;align-items:center;z-index:2}.gh-navigation .px-soc-m a{padding:4px}.gh-navigation .px-soc-m svg{width:16px;height:16px}}' +'@media(max-width:340px){.gh-navigation .px-soc-m a{padding:2px}.gh-navigation .px-soc-m svg{width:14px;height:14px}}' /* 768-899px: a line under the logo (logo 60 -> 42px), header height unchanged */ +'@media(min-width:768px) and (max-width:899.98px){html body .gh-navigation .px-soc{display:none!important}.gh-navigation .gh-navigation-brand{position:relative;padding-bottom:21px}.gh-navigation .gh-navigation-brand .gh-navigation-logo img{width:42px!important;height:42px!important;max-height:42px!important}.gh-navigation .px-soc-m{display:flex;position:absolute;left:50%;bottom:0;width:max-content;transform:translateX(-50%);gap:0;align-items:center;z-index:2}.gh-navigation .px-soc-m a{padding:2px}.gh-navigation .px-soc-m svg{width:14px;height:14px}}' /* 900px up: in the header row, between the logo & search */ +'@media(min-width:900px){html body .gh-navigation .px-soc{display:flex;align-items:center;gap:1px;margin:0 auto;flex-shrink:0}html body .gh-navigation .px-soc a{padding:2px}html body .gh-navigation .px-soc svg{width:16px;height:16px}}' +'@media(min-width:960px){html body .gh-navigation .px-soc{gap:4px}html body .gh-navigation .px-soc a{padding:4px}}' +'@media(min-width:1040px){html body .gh-navigation .px-soc{gap:8px}html body .gh-navigation .px-soc svg{width:18px;height:18px}}'; var st=document.createElement('style');st.id='px-soc1-css';st.textContent=css;document.head.appendChild(st); function copy(a){ var c=a.cloneNode(true);c.removeAttribute('class');c.setAttribute('target','_blank');c.setAttribute('rel','noopener'); if(!c.getAttribute('aria-label')){var h=c.hostname.replace(/^www\./,'').split('.')[0];c.setAttribute('aria-label','Poetic.ly on '+h);} return c; } function fill(box,src){ if(box.children.length===src.length)return; box.textContent='';[].forEach.call(src,function(a){box.appendChild(copy(a));}); } function mk(cls){var b=document.createElement('div');b.className=cls;b.setAttribute('aria-label','Poetic.ly on social media');return b;} /* the footer list can gain a link after load (Substack is added by script), so both copies are re-matched to it */ function sync(){ var brand=document.querySelector('.gh-navigation .gh-navigation-brand');if(!brand)return false; var src=document.querySelectorAll('.gh-social-links a');if(!src.length)return false; var box=brand.querySelector('.px-soc-m');if(!box){box=mk('px-soc-m');brand.appendChild(box);} fill(box,src); var acts=document.querySelector('.gh-navigation .gh-navigation-actions'); if(acts){var d=acts.querySelector('.px-soc');if(!d){d=mk('px-soc');acts.insertBefore(d,acts.firstChild);}fill(d,src);} return true; } function go(){var n=0;(function t(){try{sync()}catch(e){}if(++n<14)setTimeout(t,n<5?250:600);})();} if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',go);else go(); window.addEventListener('load',function(){try{sync()}catch(e){}}); })();