/* 题库自己的标题与工具栏在iframe中，父页面不再预留额外顶部高度。 */
body.theme-light #academicModuleQuestions {
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
body.theme-light #academicQuestionFrame { height: 100%; min-height: 0; }

/* 窄屏导航开关放到标题区，避免覆盖iframe底部的下一页按钮。 */
@media (max-width: 860px) {
    body.theme-light:has(#academicModuleQuestions.active:not(.hidden)) .academic-sidebar-toggle {
        top: 18px;
        right: 132px;
        bottom: auto;
    }
}
@media (max-width: 620px) {
    body.theme-light:has(#academicModuleQuestions.active:not(.hidden)) .academic-sidebar-toggle { top: 14px; right: 12px; }
}
