@font-face{font-family:PGUrdu;src:url('fonts/noto-naskh-arabic-arabic-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:PGUrdu;src:url('fonts/noto-naskh-arabic-arabic-700-normal.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--green:#08734d;--navy:#11223d;--line:#d8e6df;--muted:#586a78}*{box-sizing:border-box}body{margin:0;background:#f1f7f4;color:var(--navy);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}a{color:inherit}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d7a935;outline-offset:3px}[hidden]{display:none!important}.pg-header{display:flex;justify-content:space-between;align-items:center;padding:14px max(24px,calc((100vw - 1450px)/2));background:#fff;border-bottom:1px solid var(--line);gap:24px}.pg-brand img{display:block;width:190px;max-height:60px;object-fit:contain}.pg-header nav{display:flex;align-items:center;gap:24px}.pg-header nav a{text-decoration:none;font-weight:650}.pg-active{background:var(--green);color:#fff;padding:12px 18px;border-radius:9px}.pg-main{max-width:1450px;margin:auto;padding:28px 24px 40px}.pg-intro{text-align:center}.pg-intro h1{font-size:clamp(28px,3vw,43px);letter-spacing:-1.3px;line-height:1.2;margin:5px 0 12px}.pg-intro>p:not(.pg-eyebrow){color:var(--muted);font-size:17px;margin:0 0 12px}.pg-eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:800;color:var(--green);margin:0 0 5px}.pg-badge{font-size:12px;background:#e2f1e9;border:1px solid #cbe4d6;border-radius:30px;padding:5px 13px;display:inline-block;color:#14583d}.pg-steps{display:flex;list-style:none;margin:25px auto 28px;padding:0;max-width:850px;justify-content:space-between;gap:15px}.pg-steps li{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650}.pg-steps b{display:inline-grid;place-items:center;width:30px;height:30px;background:var(--green);border-radius:50%;color:white}.pg-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:24px;align-items:start}.pg-card,.pg-preview{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 5px 25px #103f2210;padding:26px;min-width:0}.pg-form-section+.pg-form-section{border-top:1px solid var(--line);margin-top:21px;padding-top:20px}.pg-form-section h2{font-size:19px;margin:0 0 14px;letter-spacing:-.3px}label{display:block;font-size:13px;color:var(--muted);font-weight:600}input:not([type=checkbox]),select{display:block;width:100%;min-height:43px;border:1px solid #ccdcd3;border-radius:8px;background:#fff;padding:9px 11px;color:var(--navy);margin-top:5px}input[type=number]{padding:7px 5px 7px 9px}input[type=checkbox]{accent-color:var(--green);width:19px;height:19px;flex-shrink:0;margin:0}.pg-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pg-section-heading{display:flex;justify-content:space-between;align-items:start;gap:10px}.pg-section-heading>span{font-size:12px;color:var(--green);white-space:nowrap}.pg-hint{font-size:12px;line-height:1.65;color:var(--muted);margin:7px 0 13px}.pg-chapters{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px}.pg-chapter{display:flex;align-items:center;gap:9px;padding:9px 7px;border-radius:7px;color:var(--navy);font-size:12px;cursor:pointer;line-height:1.45}.pg-chapter:has(input:checked){background:#e9f5ef}.pg-chapter [lang=ur]{font-family:PGUrdu,serif;font-size:17px}.pg-whole{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:12px;border-radius:8px;color:var(--navy);margin-top:12px;cursor:pointer}.pg-print-label{font-size:12px;font-weight:700;color:var(--green);margin:12px 0}.pg-table-wrap{overflow:auto}.pg-settings{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}.pg-settings caption{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.pg-settings th{font-weight:600;color:var(--muted);text-align:left;vertical-align:bottom;padding:6px 4px}.pg-settings th:first-child{width:29%}.pg-settings td{padding:5px 4px}.pg-settings td label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--navy);font-weight:650}.pg-settings input[type=number]{width:100%;min-height:36px;margin:0;font-size:13px}.pg-settings output{display:block;background:#eff4f1;padding:8px 4px;text-align:center;font-weight:700;border-radius:6px}.pg-settings tr:has(input[type=checkbox]:not(:checked)) td:not(:first-child){opacity:.4}.pg-metadata{margin:20px 0 15px}.pg-summary{display:flex;flex-direction:column;text-align:center;background:#eaf6ef;border:1px dashed var(--green);border-radius:10px;padding:13px;font-size:12px;color:#155b3d}.pg-summary strong{font-size:19px}.pg-generate{width:100%;border:0;background:var(--green);color:white;font-size:16px;font-weight:750;border-radius:9px;padding:14px;margin-top:16px}.pg-generate:hover{background:#075c3d}.pg-center{text-align:center;margin-bottom:0}.pg-error{color:#a62727;background:#fff2f2;border:1px solid #ecb6b6;border-radius:8px;padding:12px;font-size:13px}.pg-preview-toolbar{display:flex;gap:15px;justify-content:space-between;align-items:center}.pg-preview-toolbar h2{margin:0;font-size:19px}.pg-preview-toolbar button{border:1px solid var(--green);color:var(--green);background:#f0f8f4;padding:9px 12px;border-radius:8px;font-size:12px;font-weight:700}.pg-key-option{display:flex;gap:8px;align-items:center;font-weight:400;font-size:11px;margin:16px 0 0}.pg-key-option input{width:16px;height:16px}.pg-empty{text-align:center;padding:90px 25px;color:var(--muted);border:1px dashed var(--line);border-radius:12px;margin-top:18px}.pg-empty>div{font-size:50px;color:#9abda8}.pg-empty h3{color:var(--navy);margin-bottom:6px}.pg-empty small{font-size:11px}.pg-disclaimer{text-align:center;color:var(--muted);font-size:11px;max-width:850px;margin:28px auto 0}.pg-footer{text-align:center;font-size:12px;padding:18px;background:#fff;border-top:1px solid var(--line);color:var(--muted)}
/* Every rule below intentionally uses only black, white and grey for paper output. */
.pg-paper{background:white;color:#000;border:1px solid #222;padding:22px;font:12px/1.5 Georgia,'Times New Roman',serif;overflow-wrap:break-word}.pg-paper[lang=ur]{font-family:PGUrdu,'Times New Roman',serif;font-size:16px;line-height:1.8}.pg-paper h1{font-size:19px;text-align:center;margin:0 0 3px;text-transform:uppercase;line-height:1.3}.pg-paper h2{text-align:center;font-size:15px;margin:1px 0;line-height:1.5}.pg-paper h3{font-size:13px;margin:18px 0 5px;padding:5px 0;border-top:1px solid black;border-bottom:1px solid black;break-after:avoid}.pg-paper[lang=ur] h3{font-size:18px}.pg-paper-title{text-align:center;font-size:12px;text-transform:uppercase;font-weight:bold;margin:4px 0 12px}.pg-paper-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px 15px;border-block:1px solid black;padding:9px 0;margin:12px 0;font-size:11px}.pg-paper[lang=ur] .pg-paper-meta{font-size:15px}.pg-paper-scope{font-size:10px;margin:6px 0}.pg-paper[lang=ur] .pg-paper-scope{font-size:14px}.pg-paper-brand{text-align:center;font-size:9px;margin-top:18px;color:#333}.pg-paper-instruction{font-weight:bold;font-size:11px;margin:5px 0 10px;break-after:avoid}.pg-paper[lang=ur] .pg-paper-instruction{font-size:15px}.pg-question{break-inside:avoid;page-break-inside:avoid;margin:0 0 11px}.pg-question>p{margin:0 0 5px}.pg-question .pg-num{font-weight:bold}.pg-options{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;margin-inline-start:18px;font-size:11px}.pg-paper[lang=ur] .pg-options{font-size:15px}.pg-section-marks{float:right;white-space:nowrap;font-size:11px}.pg-paper[dir=rtl] .pg-section-marks{float:left}.pg-answer-key{break-before:page;page-break-before:always;border-top:2px solid black;padding-top:18px;margin-top:28px}.pg-answer-key h2{font-size:16px}.pg-answer-key li{break-inside:avoid}.pg-answer-key .pg-manual{font-size:11px}.pg-paper bdi{unicode-bidi:isolate}
@media(min-width:1200px){.pg-preview{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}}@media(max-width:900px){.pg-layout{grid-template-columns:1fr}.pg-main{padding:22px 15px}.pg-header{padding:12px 16px}.pg-header nav{gap:13px;font-size:12px}.pg-brand img{width:150px}.pg-steps{gap:8px}.pg-steps li{font-size:11px;gap:6px}.pg-steps b{width:25px;height:25px}}@media(max-width:520px){.pg-header{flex-wrap:wrap;gap:12px}.pg-header nav{width:100%;justify-content:space-between;gap:10px}.pg-active{padding:8px}.pg-card,.pg-preview{padding:17px;border-radius:12px}.pg-chapters{grid-template-columns:1fr}.pg-steps li{display:flex;flex-direction:column;text-align:center;font-size:10px}.pg-two{gap:10px}.pg-paper{padding:13px;font-size:11px}.pg-paper h1{font-size:16px}.pg-paper[lang=ur]{font-size:15px}.pg-settings th:first-child{width:29%}.pg-settings th{font-size:9px}.pg-settings td label{font-size:10px;gap:3px}.pg-settings input[type=checkbox]{width:15px;height:15px}.pg-settings th,.pg-settings td{padding:5px 2px}.pg-preview-toolbar{align-items:start}.pg-key-option{font-size:10px}.pg-paper-meta{font-size:10px}.pg-options{grid-template-columns:1fr}}
@page{size:A4 portrait;margin:12mm}@media print{html,body{background:#fff!important;margin:0!important;padding:0!important}.pg-header,.pg-intro,.pg-steps,#pg-form,.pg-preview-toolbar,.pg-key-option,#pg-preview-status,#pg-empty,.pg-disclaimer,.pg-footer{display:none!important}.pg-main,.pg-layout,.pg-preview,#pg-paper-host{display:block!important;position:static!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important}.pg-paper{border:0;padding:0;font-size:11pt;line-height:1.4}.pg-paper[lang=ur]{font-size:13pt;line-height:1.85}.pg-paper h1{font-size:17pt}.pg-paper h2{font-size:13pt}.pg-paper h3{font-size:12pt}.pg-paper-meta{font-size:10pt}.pg-paper-instruction{font-size:10pt}.pg-options{font-size:10pt;grid-template-columns:1fr 1fr}.pg-paper-scope{font-size:9pt}.pg-answer-key{margin-top:0;padding-top:0;border-top:0}a{color:black;text-decoration:none}*{box-shadow:none!important;text-shadow:none!important}}

.pg-question-image{display:block;max-width:100%;max-height:210px;object-fit:contain;margin:8px 0;filter:grayscale(1);break-inside:avoid}

.pg-passage{margin:10px 0 10px 18px;padding:8px 12px;border-left:2px solid #555;color:#000;font:inherit;font-size:.94em;white-space:pre-line;overflow-wrap:anywhere}.pg-code{font:12px/1.5 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;color:#000;border:1px solid #aaa;padding:10px;margin:10px 0;break-inside:avoid}@media print{.pg-passage,.pg-code{font-size:10pt;color:#000}}

.pg-passage[dir="rtl"]{margin:10px 18px 10px 0;border-left:0;border-right:2px solid #555;text-align:right;font-family:PGUrdu,serif;line-height:1.9}.pg-passage[lang="ar"]{font-size:1.15em;line-height:2.15}@media print{.pg-passage[lang="ar"]{font-size:13pt;line-height:1.9}}

.pg-options>div{white-space:pre-wrap;overflow-wrap:anywhere}
