/* Social viewers 1.98.221: one accessible action row on desktop and mobile. */
.extra-social-dialog [data-extra-stage]{min-inline-size:0}
.extra-social-dialog [data-extra-status]{margin:0 0 12px;color:var(--muted);line-height:1.55;overflow-wrap:anywhere}
.extra-social-dialog [data-extra-load]{min-height:44px;max-width:100%;white-space:nowrap}
.extra-social-dialog [data-extra-load][hidden],.extra-social-dialog [data-extra-status][hidden]{display:none!important}
.extra-social-dialog iframe[data-extra-frame]{display:block;width:100%;height:clamp(220px,60vh,580px);height:clamp(220px,60dvh,580px);min-width:0;max-width:100%;border:0;border-radius:16px;background:var(--surface);margin-top:16px}
.extra-social-dialog [data-extra-load]:disabled{cursor:wait;opacity:.7}
.extra-social-dialog .social-window-actions{display:flex;flex-wrap:nowrap;gap:8px;align-items:center;min-width:0;margin-top:16px}
.extra-social-dialog .social-window-actions>.button{box-sizing:border-box;display:inline-block;flex:0 1 auto;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;font-size:14px;line-height:22px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.extra-social-dialog .social-window-actions>[hidden]{display:none!important}
.extra-social-dialog .threads-direct-feed{height:clamp(220px,55vh,580px);height:clamp(220px,55dvh,580px);min-width:0;max-width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;border-radius:16px}
.extra-social-dialog .threads-direct-feed:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.extra-social-dialog .threads-direct-post{display:flex;flex-direction:column;gap:8px;width:100%;max-width:540px;min-width:0;margin:0 auto 18px;overflow-wrap:anywhere}
.extra-social-dialog .threads-direct-post[data-threads-pending]{min-height:520px;justify-content:flex-end}
.extra-social-dialog iframe[data-threads-frame]{display:block;width:100%;max-width:100%;min-width:0;height:480px;min-height:120px;margin:0;border:0;border-radius:12px;background:var(--surface)}
.extra-social-dialog iframe[data-threads-frame][hidden]{display:none!important}
.extra-social-dialog .threads-post-link{display:block;align-self:center;max-width:100%;padding:6px 8px;min-height:32px;text-align:center;font-size:13px;line-height:20px;color:var(--accent)}
@media(max-width:500px){
 .extra-social-dialog [data-extra-status]{font-size:.92rem}
 .extra-social-dialog .social-window-actions{gap:4px}
 .extra-social-dialog .social-window-actions>.button{flex:1 1 auto;padding-inline:6px;font-size:12px}
}
@media(max-width:360px){.extra-social-dialog .social-window-actions>.button{padding-inline:4px}}

/* Keep the original Threads document wide enough even on a 320px screen. */
@media(max-width:380px){
 #threads-popup.social-dialog{width:calc(100vw - 4px);max-width:calc(100vw - 4px);margin-inline:2px;padding-inline:4px}
 #threads-popup>header,#threads-popup .social-window-actions{padding-inline:12px}
 #threads-popup [data-extra-status]{margin-inline:12px}
}

/* Social channel bar 1.98.222: one row, with contained horizontal scrolling.
   The ID and !important declarations override the older podcast grid. */
.site-header #social-subbar .social-subbar-inner{
 box-sizing:border-box;
 display:flex!important;
 flex-flow:row nowrap;
 align-items:stretch;
 width:max-content;
 max-width:calc(100% - 24px);
 min-width:0;
 margin-inline:auto;
 justify-content:flex-start;
 gap:8px;
 padding:12px 8px;
 overflow-x:auto;
 overflow-y:hidden;
 overscroll-behavior-x:contain;
 scroll-padding-inline:8px;
 scroll-behavior:auto;
 scrollbar-width:thin;
 -webkit-overflow-scrolling:touch;
}
.site-header #social-subbar.social-subbar--left .social-subbar-inner{
 margin-inline-start:12px;
 margin-inline-end:auto;
}
.site-header #social-subbar .social-subbar-inner>:is(a,button),
.site-header #social-subbar .social-subbar-item{
 flex:0 0 auto;
 width:auto!important;
 min-width:104px!important;
 white-space:nowrap;
 overflow:visible;
 scroll-margin-inline:8px;
}
