/* Keep document readers spacious and fit short case studies to their content. */
:root{--popup-width:1080px;--popup-height:90dvh;--popup-gutter:32px}
#report-preview{width:min(var(--popup-width),calc(100vw - var(--popup-gutter)));max-width:calc(100vw - var(--popup-gutter));height:var(--popup-height);max-height:var(--popup-height);box-sizing:border-box}
#report-preview.is-case{width:min(860px,calc(100vw - var(--popup-gutter)));height:auto}
#report-preview .report-page-scroll{flex:1 1 auto;min-height:0;overflow:auto}
#report-preview .report-preview-head,#report-preview .report-controls{flex-shrink:0}
@media(max-width:760px){:root{--popup-height:calc(100dvh - 24px);--popup-gutter:24px}}

/* Continuous PDF previews: all pages read vertically with wheel, touch, or keyboard. */
#report-preview .report-document[hidden]{display:none}
#report-preview .report-page-scroll{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;padding:12px;background:#e7ebef;scrollbar-gutter:stable;position:relative}
#report-preview .report-document{display:flex;flex-direction:column;gap:18px;width:100%;min-width:0}
#report-preview .report-document-page{margin:0;background:#fff;box-shadow:0 2px 8px #0b1f3b18;flex:none}
#report-preview .report-document-page img{display:block;width:100%;height:auto;max-width:100%}
#report-preview .report-document-page figcaption{font-size:14px;color:#526174;padding:8px 12px;text-align:center;border-top:1px solid #e3e7ec}
#report-preview .report-page-count{font-size:14px;white-space:normal}
#report-preview .report-controls{flex-wrap:wrap;gap:10px}
#report-preview .report-page-select,#report-preview .report-pdf{font-size:14px}
#report-preview.is-case .report-page-scroll{background:var(--white);padding:0;scrollbar-gutter:auto}
#report-preview.is-case .case-preview-content{font-size:15px}
#report-preview.is-case .case-preview-content>img{width:auto;max-width:100%;max-height:min(46dvh,480px);margin:18px auto;object-fit:contain}
@media(max-width:760px){#report-preview .report-page-scroll{padding:6px}#report-preview .report-document{gap:12px}#report-preview .report-controls{padding:8px;gap:6px}#report-preview .report-page-count{font-size:12px}#report-preview .report-pdf{font-size:12px}}

/* Every preview stays centered; its title bar occupies its own row above the PDF. */
#report-preview{position:fixed;left:50%!important;top:50%!important;transform:translate(-50%,-50%);margin:0;z-index:2001;display:flex;flex-direction:column}
#report-preview[hidden]{display:none}
.report-backdrop{z-index:2000}
#report-preview>header.report-preview-head{position:static!important;inset:auto!important;display:flex;align-items:center;justify-content:space-between;width:100%;height:auto;min-height:76px;padding:14px 20px;margin:0;flex:0 0 auto;background:#fff!important;color:#0b1f3b;border:0;border-bottom:1px solid #d9dfe6;box-shadow:none;backdrop-filter:none;z-index:auto}
#report-preview .report-preview-head p{color:#536174;margin:0 0 4px}
#report-preview .report-preview-head h3{color:#0b1f3b;margin:0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
#report-preview .report-close{color:#0b1f3b;flex-shrink:0;min-width:44px;min-height:44px}
@media(max-width:760px){#report-preview>header.report-preview-head{min-height:64px;padding:10px 14px}#report-preview .report-preview-head h3{font-size:17px}}
