function detailsTransitionHelper(){const $detailsElements=document.querySelectorAll('details')
if(!$detailsElements.length)return
function setState($details){$details.style.setProperty('--height',$details.clientHeight.toString())}
$detailsElements.forEach($details=>{setState($details)
$details.addEventListener('toggle',()=>{setState($details)})
window.addEventListener('resize',()=>{setState($details)})})}
function authorTooltip(){document.addEventListener('DOMContentLoaded',()=>{if(!window.tippy)return
window.tippy('[data-tippy-template]',{theme:'ct',aria:{content:null,expanded:false,},interactive:true,placement:'bottom-start',trigger:'mouseenter',allowHTML:true,content(){return document.getElementById('author-description').innerHTML}})})}
detailsTransitionHelper()
authorTooltip()