/* Feed article drawer: the shared dialog as a right-hand panel that frames the real article page. */
.ui-dialog.article-drawer { position: fixed; inset: 0 0 0 auto; width: min(960px, calc(100vw - 140px)); height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.ui-dialog.article-drawer[open] { display: flex; flex-direction: column; animation: article-drawer-in .2s ease-out; }
.article-drawer-bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--ui-space-2); padding: var(--ui-space-2) var(--ui-space-4); border-bottom: 1px solid var(--line); }
.article-drawer-status { margin: 0; padding: var(--ui-space-8); color: var(--muted); }
.article-drawer-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--bg); visibility: hidden; }
.article-drawer-frame.is-ready { visibility: visible; }
body.article-drawer-open { overflow: hidden; }
@keyframes article-drawer-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ui-dialog.article-drawer[open] { animation: none; } }

/* Inside the drawer the article page drops only the site chrome around it. */
.article-embedded :is(.demo-bar, .mobile-header, .sidebar, .workspace-bar, .footer, .skip-link, [data-reading-back], .back-link) { display: none !important; }
.article-embedded .public-body .app-layout { display: block; min-height: 0; padding: 0; }
.article-embedded .public-body .workspace { max-width: none; padding: 0 var(--ui-space-8); }
