.topic-dialog{display:none;box-sizing:border-box;width:min(1100px,calc(100vw - 32px));height:min(840px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:1px solid #b69a61;border-radius:12px;background:#080808;color:#f3e7d6;overflow:hidden;box-shadow:0 24px 80px #0009}.topic-dialog[open]{display:flex;flex-direction:column}.topic-dialog::backdrop{background:#000c}.topic-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:0 0 auto;padding:15px 20px;border-bottom:1px solid #786242;background:#080808}.topic-dialog__header h2{margin:0;font:24px/1.2 Georgia,serif;color:#e7ce9a}.topic-dialog__header>div{display:flex;gap:10px;flex-shrink:0}.topic-dialog__header :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:40px;box-sizing:border-box;padding:8px 14px;border:1px solid #b69a61;border-radius:999px;background:transparent;color:#e7ce9a;text-decoration:none;font:16px/1.4 Arial,Helvetica,sans-serif;cursor:pointer}.topic-dialog__header :is(a,button):hover{background:#e7ce9a1a;color:#fff0cf}.topic-dialog__header :is(a,button):focus-visible{outline:2px solid #e7ce9a;outline-offset:3px}.topic-dialog__frame{display:block;flex:1 1 auto;width:100%;min-height:0;border:0;background:#f3e7d6}.topic-dialog__status{margin:0;padding:10px 20px;color:#e7ce9a;font:16px/1.4 Arial,sans-serif}.topic-dialog__status[hidden]{display:none}body.has-topic-dialog{overflow:hidden!important}
body.topic-embedded .library-header,body.topic-embedded .library-footer,body.topic-embedded .topic-breadcrumb,body.topic-embedded .topic-neighbors{display:none!important}body.topic-embedded .topic-hero{min-height:clamp(220px,27vw,320px)}body.topic-embedded .topic-hero>div{padding:32px 0}body.topic-embedded .topic-hero h1{font-size:clamp(30px,4vw,44px)}body.topic-embedded .topic-content{padding:22px 0 30px}body.topic-embedded main{padding-bottom:0}
html[data-topic-embedded] :is(.library-header,.library-footer,.topic-breadcrumb,.topic-neighbors){display:none!important}
@media(max-width:600px){.topic-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:9px}.topic-dialog__header{padding:12px;gap:10px;align-items:start;flex-wrap:wrap}.topic-dialog__header h2{font-size:21px}.topic-dialog__header>div{margin-left:auto}.topic-dialog__header :is(a,button){font-size:15px;padding:7px 11px}body.topic-embedded .topic-hero>div{width:calc(100% - 32px)}}
/* Compact card dimensions. The full-content link belongs to the end of the embedded article. */
.topic-dialog{width:min(420px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 24px)}.topic-dialog__header{padding:12px 15px;gap:12px}.topic-dialog__header h2{font-size:20px}.topic-dialog__header button{min-height:36px;padding:7px 13px}.topic-dialog__frame{flex:0 1 auto;height:min(680px,calc(100dvh - 90px));max-height:calc(100dvh - 85px)}
html[data-topic-embedded]{height:auto!important;min-height:0!important}body.magazine-preview.library-page.topic-embedded{height:auto!important;min-height:0!important}body.magazine-preview.library-page.topic-embedded main{min-height:0!important}body.topic-embedded .topic-hero{min-height:190px}body.topic-embedded .topic-hero>div{padding:22px 0}body.topic-embedded .topic-hero h1{font-size:28px}body.topic-embedded .topic-content{padding:20px 0 22px}body.topic-embedded .topic-content h2{font-size:25px!important}body.topic-embedded .topic-full-content{margin-top:24px;padding-top:16px;border-top:1px solid #ad92624d}body.topic-embedded .topic-full-content .template-action{margin:0}
@media(max-width:600px){.topic-dialog{width:min(420px,calc(100vw - 16px));height:auto;max-height:calc(100dvh - 16px)}.topic-dialog__header{align-items:center;flex-wrap:nowrap}.topic-dialog__header h2{font-size:19px}.topic-dialog__header>div{margin-left:0}}

/* Both actions follow the compact summary, inside the same reading card. */
body.topic-embedded .topic-full-content{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
body.topic-embedded .topic-full-content :is(a,button){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:0;padding:9px 12px;border:1px solid #b99a52;border-radius:999px;background:transparent;color:var(--kokonte-red,#b80f15);font:16px/1.4 Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer}
body.topic-embedded .topic-full-content a{flex:1 1 auto;min-width:0;text-align:center}
body.topic-embedded .topic-full-content button{flex:0 0 auto}
body.topic-embedded .topic-full-content :is(a,button):hover{background:#b99a5218}
body.topic-embedded .topic-full-content :is(a,button):focus-visible{outline:2px solid #b99a52;outline-offset:3px}
.topic-dialog__header #topic-dialog-title:focus:not(:focus-visible){outline:none}
