/* A non-scrolling rounded frame clips an inset, independently scrolling body. */
.edu-modal > .wiki-modal-frame {
    --modal-frame-height:90svh;
    box-sizing:border-box;position:relative;min-width:0;
    width:min(20cm,92vw);max-width:calc(100vw - 32px);
    max-height:var(--modal-frame-height);padding:12px 8px 12px 0;
    overflow:hidden;border:1px solid var(--dogma-glass-line);
    border-radius:28px;background:rgba(250,252,254,.96);
    box-shadow:0 30px 70px rgba(2,14,28,.45);
   }
   body.imported-wiki-page .edu-modal > .wiki-modal-frame {
    --modal-frame-height:calc(100svh - 32px);
   }
   .edu-modal > .wiki-modal-frame--wide {width:min(1440px,92vw);}
   body.human-practice-page .edu-modal > .wiki-modal-frame--protein {width:min(38cm,94vw);}
   .edu-modal > .wiki-modal-frame--activity {width:min(1280px,92vw);}
   body.content-final-v27 .edu-modal > .wiki-modal-frame--protein {
    width:min(1100px,94vw);border-radius:20px;background:var(--dogma-page,#f7fafc);
    box-shadow:0 24px 80px #071e3640;
   }
   .edu-modal > .wiki-modal-frame > .edu-modal-box {
    box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;
    max-height:calc(var(--modal-frame-height) - 26px)!important;
    margin:0!important;overflow:auto;overscroll-behavior:contain;
    border:0!important;border-radius:0!important;
    background:transparent!important;box-shadow:none!important;
   }
   .wiki-modal-frame > .edu-modal-box::-webkit-scrollbar {width:10px;height:10px;}
   .wiki-modal-frame > .edu-modal-box::-webkit-scrollbar-track {background:transparent;}
   .wiki-modal-frame > .edu-modal-box::-webkit-scrollbar-thumb {
    border:2px solid transparent;border-radius:999px;background:rgba(47,111,158,.5);
    background-clip:padding-box;
   }
   .wiki-modal-frame > .edu-modal-box::-webkit-scrollbar-corner {background:transparent;}
   