/* Examination view based on the supplied paper reference. */
@media screen{
 body:has(.reference-exam){background:#fff}
 body:has(.reference-exam) .school-topbar,body:has(.reference-exam) .school-sidebar,body:has(.reference-exam) .content>.page-heading,body:has(.reference-exam) footer{display:none}
 body:has(.reference-exam) .school-workspace{margin:0}
 body:has(.reference-exam) .school-workspace .content{max-width:none;padding:0;min-height:100vh}
 .reference-paper-toolbar{margin:0;padding:8px 14px;border-bottom:1px solid #dfe3eb;background:#f7f8fa;gap:15px;flex-direction:row;flex-wrap:wrap}
 .reference-paper-toolbar h2{font-size:.8rem;display:inline;margin-right:10px}.reference-paper-toolbar p,.reference-paper-toolbar .school-eyebrow{display:none}.reference-paper-toolbar .actions{margin-left:auto;gap:8px}
 .reference-paper-toolbar .button{font-size:.68rem;padding:5px 10px;min-height:30px;box-shadow:none;border-radius:4px}
 body:has(.reference-exam) .preview-options{border:0;border-radius:0;background:#f5f6f8;padding:10px 12px;margin:0;box-shadow:0 2px 5px #00000015}
 .preview-options>summary{display:none}.preview-options #paper-options{margin:0}
 .preview-options .print-settings-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:16px;margin:0}
 .preview-options .print-settings-grid label{font-size:.64rem;margin:0;gap:3px;font-weight:500;color:#111}
 .preview-options .print-settings-grid input,.preview-options .print-settings-grid select{border-radius:3px;height:34px;min-height:34px;padding:4px 7px;font-size:.8rem;border:1px solid #929292;background:#fff;color:#111;box-shadow:none}
 .preview-options .print-toggles{gap:10px 16px;margin:12px 0 4px;align-items:center}.preview-options .print-toggles label{font-size:.7rem;margin:0;color:#111}
 .preview-options .actions{gap:10px;justify-content:flex-end}.preview-options .actions .button{font-size:.65rem;padding:7px 12px;min-height:32px;border-radius:4px;box-shadow:0 2px 4px #0002}
 #shuffle-mcqs{background:#4aaac6;color:#fff;border-color:#4aaac6}#open-paper-editor{background:#3d70ca;color:#fff;border-color:#3d70ca}#print-paper{background:#119953;border-color:#119953;color:#fff}
 .preview-options .actions .muted{display:none}.preview-options form>details{margin:4px 0}.preview-options form>details summary{font-size:.65rem;padding:4px 0}
 .reference-exam.enhanced-paper{max-width:none;width:100%;padding:14px 28px;border:0;box-shadow:none;margin:0}
 #paper-editor{margin:25px;scroll-margin-top:20px}
 @media(max-width:1100px){.preview-options .print-settings-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}}
 @media(max-width:600px){.preview-options .print-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-exam.enhanced-paper{padding:14px 12px}.reference-paper-toolbar .actions{margin-left:0}.preview-options .actions{justify-content:flex-start}}
}
.reference-exam .exam-header{display:grid;grid-template-columns:140px 1fr;gap:6px 20px;border:0;padding:0 0 8px;text-align:center}
.reference-exam .exam-header>div:not(.exam-meta-grid){grid-column:1/-1;grid-row:1}
.reference-exam .exam-header h2{font-weight:bold;text-transform:uppercase;margin:0;font-family:"Times New Roman",serif;line-height:1.15}
.reference-exam .exam-header p{margin:3px 0;font-size:9pt}.reference-exam .exam-header h3{font-size:9pt;font-weight:400;margin:2px 0}
.reference-exam .exam-monogram{grid-column:1;grid-row:2;width:90px;height:90px;justify-self:center}
.reference-exam .exam-meta-grid{grid-column:2;grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 6px;font-size:8pt;text-align:center}
.reference-exam .exam-header:not(:has(.exam-monogram)) .exam-meta-grid{grid-column:1/-1}
.reference-exam .exam-meta-grid fieldset{border:1px solid #111;border-radius:0;padding:0 8px 4px;margin:0;min-width:0;min-height:31px;line-height:1.2;overflow-wrap:anywhere}
.reference-exam .exam-meta-grid legend{font:600 7.5pt Arial,sans-serif;text-align:left;padding:0 5px;width:auto}
.reference-exam .exam-meta-grid .exam-syllabus{grid-column:span 3;text-align:left}.reference-exam .exam-meta-grid .exam-name{grid-column:auto}
.reference-exam .bubble-sheet{break-before:auto;padding:8px;margin:0 0 5px;border:1px solid #111}
.reference-exam .bubble-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px}.reference-exam .bubble-grid>div{justify-content:center;gap:5px;font-size:9pt;border-right:1px solid #555}.reference-exam .bubble-grid>div:nth-child(4n){border-right:0}.reference-exam .bubble{width:17px;height:17px;font:8pt/15px Arial,sans-serif}
.reference-exam .exam-questions.two-columns{display:block}
.reference-exam .exam-section-title{text-align:center;background:transparent;border-bottom:2px solid #111;padding:4px 0;margin:5px 0 7px;font-size:11pt;break-after:avoid}.reference-exam .exam-section-title [lang=ur]{font-size:12pt;margin-inline-start:15px}
.reference-exam .exam-question{position:relative;padding:5px 0 5px 28px;break-inside:avoid}.reference-exam .exam-question>strong{position:absolute;left:0;top:5px;font-size:9pt}.reference-exam .exam-question>strong .muted{display:none}.reference-exam .bilingual{display:grid;grid-template-columns:1fr 1fr;gap:24px}.reference-exam .exam-question p{margin:0 0 4px}.reference-exam .mcq-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:3px 0;text-align:center}.reference-exam .mcq-options b{color:inherit}
.reference-exam .exam-watermark{inset:220px 0 auto;padding:30px 0 0;min-height:330px;opacity:.14;align-items:center}.reference-exam .exam-watermark img{width:300px;height:300px;max-width:65%;object-fit:contain}
.reference-exam[data-objective_border="1"] .exam-question[data-mcq="1"],.reference-exam[data-subjective_border="1"] .exam-question[data-mcq="0"]{border:1px solid #333;margin-bottom:5px;padding-left:32px}
.reference-exam[data-layout=minimal] .exam-meta-grid fieldset{border:0;border-bottom:1px solid #777}.reference-exam[data-layout=formal] .exam-header{border:3px double #111;padding:10px}.reference-exam[data-layout=compact] .exam-meta-grid fieldset{min-height:25px}
@media screen and (max-width:600px){.reference-exam .exam-header{grid-template-columns:65px 1fr;gap:8px}.reference-exam .exam-monogram{width:60px;height:60px}.reference-exam .exam-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-exam .exam-meta-grid .exam-syllabus{grid-column:1/-1}.reference-exam .bilingual{grid-template-columns:1fr}.reference-exam .mcq-options,.reference-exam .bubble-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.reference-exam.enhanced-paper{padding:0;border:0;box-shadow:none;max-width:none}.reference-exam .bubble-sheet{break-before:auto}.reference-exam .exam-header{grid-template-columns:75px 1fr}.reference-exam .exam-monogram{width:65px;height:65px}.reference-exam .exam-questions.two-columns{display:block}.reference-exam .exam-meta-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.reference-exam .exam-watermark{inset:0;min-height:0;padding:100px 0 0;align-items:center;overflow:hidden}.reference-exam .exam-meta-grid .exam-name{grid-column:span 1}.reference-exam[data-syllabus="0"] .exam-meta-grid .exam-name{grid-column:1/-1}
