/* Scoped announcement dialog. Native showModal() supplies the top layer/inert background. */
html.magpies-popup-open{overflow:hidden}
.magpies-popup{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:3px solid #111;border-radius:12px;background:#fff;color:#111;box-shadow:0 16px 64px #0005;font:400 18px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;scroll-padding-block:12px;color-scheme:light}
.magpies-popup::backdrop{background:rgb(0 0 0 / .65)}
.magpies-popup *{box-sizing:border-box}
.magpies-popup__header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;gap:12px;padding:20px 20px 16px;background:#fec300;border-bottom:2px solid #111}
.magpies-popup__title{flex:1;min-width:0;margin:0;color:#111;font:800 clamp(24px,5vw,32px)/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.magpies-popup__close{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:-4px -4px 0 0;padding:8px 10px;border:2px solid #111;border-radius:6px;background:#fff;color:#111;font:700 16px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;touch-action:manipulation}
.magpies-popup__content{padding:20px}
.magpies-popup__image{display:block;width:100%;height:auto;max-height:30vh;max-height:30dvh;margin:0 auto 20px;object-fit:contain}
.magpies-popup__message{margin:0 0 20px;white-space:pre-line}
.magpies-popup__message:last-child{margin-bottom:0}
.magpies-popup__video{width:100%;aspect-ratio:16/9;margin:0 0 12px;background:#111}
.magpies-popup__player{display:block;width:100%;height:100%;border:0}
.magpies-popup__transcript{margin:0 0 20px;padding:0 4px}
.magpies-popup__transcript summary{display:list-item;min-height:44px;padding:10px 0;cursor:pointer;font-weight:700;touch-action:manipulation}
.magpies-popup__transcript p{margin:8px 0 0;white-space:pre-line}
.magpies-popup__action{display:flex;align-items:center;justify-content:center;width:100%;min-width:44px;min-height:48px;padding:12px 20px;border:2px solid #111;border-radius:6px;background:#111;color:#fec300;font:800 18px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;text-decoration:none;touch-action:manipulation}
.magpies-popup__close:hover{background:#111;color:#fec300}
.magpies-popup__action:hover{background:#fec300;color:#111}
.magpies-popup :focus-visible{outline:3px solid #005fcc;outline-offset:3px;box-shadow:0 0 0 2px #fff}
.magpies-popup__title:focus{outline:3px solid #005fcc;outline-offset:3px}
@media(max-width:360px){.magpies-popup__header{padding:16px 12px;gap:8px}.magpies-popup__content{padding:16px 12px}.magpies-popup__title{font-size:24px}}
@supports(padding:max(0px)){.magpies-popup{max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)))}}
@media(forced-colors:active){.magpies-popup,.magpies-popup__header,.magpies-popup__close,.magpies-popup__action{border-color:CanvasText}.magpies-popup::backdrop{background:Canvas;opacity:.8}.magpies-popup :focus-visible,.magpies-popup__title:focus{outline-color:Highlight}}
