:root{--navy:#0a2130;--navy2:#133e4c;--gold:#d4b47d;--ivory:#fffaf0;--line:#d9c59b}*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:#eef4f5;color:#173845;font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.7}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #e1b66a;outline-offset:3px}
.doc-head{padding:15px clamp(17px,4vw,70px);background:linear-gradient(110deg,#082334,#071827);border-bottom:2px solid #d7b476;color:white;display:flex;justify-content:space-between;align-items:center;gap:20px}.doc-brand{display:flex;align-items:center;gap:13px;color:#f8e9ce}.doc-brand strong{display:block;font-size:19px}.doc-brand small{color:#dfc995;font-size:10px;letter-spacing:.11em}.doc-crest{display:grid;place-items:center;width:49px;height:49px;border:1px solid #e6ca95;border-radius:14px;color:#f3d8a2;font-size:28px}.doc-links{display:flex;gap:12px;flex-wrap:wrap}.doc-links a{color:#f1dbb4;border:1px solid #ceb17a;padding:8px 13px;border-radius:9px;font-size:12px}
main{max-width:1230px;padding:25px 17px 70px;margin:auto}.doc-hero{position:relative;overflow:hidden;background:linear-gradient(105deg,rgba(8,32,47,.94),rgba(9,37,51,.78)),url("../images/councils/hero-architecture.svg") center/cover;border:1px solid #cda76a;border-radius:19px;padding:clamp(25px,4.5vw,50px);color:white;box-shadow:0 17px 44px #0b243b26}.eyebrow{font-size:11px;color:#d9b879;letter-spacing:.13em;font-weight:850;direction:ltr;display:block;text-align:right}.doc-hero h1{font-size:clamp(27px,3.5vw,42px);color:#fff7e6;margin:13px 0}.doc-hero p{max-width:810px;color:#e2e7e6;font-size:15px;line-height:1.95}.doc-hero-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:21px}.doc-hero-chips span{padding:6px 11px;border:1px solid #e4c59179;background:#071e2b8e;color:#eddaa8;border-radius:25px;font-size:12px}.feedback{margin:16px 0;padding:11px 14px;border:1px solid #b6d4cd;background:#e6f8f4;color:#1b625a;border-radius:9px;font-size:13px}.feedback.error{border-color:#dfb2aa;background:#fff3f1;color:#9c3a36}.doc-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:30px 0 14px}.doc-section-head h2{margin:3px 0;color:#123848;font-size:clamp(20px,2.7vw,27px)}.doc-section-head small,.muted{color:#6a838d;font-size:12px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.template-card{position:relative;display:flex;align-items:flex-start;gap:13px;background:#fff;border:1px solid #cfddd9;border-radius:15px;min-height:135px;padding:18px;box-shadow:0 10px 26px #203c5010;text-align:right;color:#163a4a;transition:transform .2s,border-color .2s}.template-card:hover{transform:translateY(-2px);border-color:#b99358}.template-card[aria-pressed=true]{border:2px solid #c2a26e;background:linear-gradient(130deg,#102e40,#092436);color:#fff2db;box-shadow:0 16px 31px #061e3429}.template-symbol{width:46px;height:46px;min-width:46px;display:grid;place-items:center;background:#edf6f4;color:#2d6870;border:1px solid #d5e2df;border-radius:13px;font-size:23px}.template-card[aria-pressed=true] .template-symbol{background:#314e58;color:#f3d79b;border-color:#bf9a60}.template-info strong{display:block;font-size:16px}.template-info small{display:block;color:#67818b;margin-top:6px;line-height:1.6}.template-card[aria-pressed=true] small{color:#bfd3d9}.doc-panel{margin:21px 0;background:white;border:1px solid #d8e5e5;border-radius:17px;padding:clamp(17px,3vw,27px);box-shadow:0 13px 27px #113d4c0b}.doc-panel .doc-section-head{margin:0 0 20px}.doc-panel label{display:block;font-size:13px;font-weight:800;color:#25505b;margin:7px 0 8px}.search-line{display:flex;gap:9px;align-items:center}.search-line input{flex:1;min-width:0}.search-line input,.doc-panel input[type=search]{background:#fbfefe;border:1px solid #c4d7d9;border-radius:10px;min-height:46px;padding:10px 14px;direction:rtl;color:#173746}.secondary{background:#e9f2f1;color:#17626b;border:1px solid #c6dedd;border-radius:10px;padding:10px 17px;min-height:44px;font-size:13px;font-weight:800}.doc-search-results,.history-list{display:grid;gap:8px;margin:16px 0}.search-result,.history-item{border:1px solid #d4e1e2;border-radius:11px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbfdfc}.search-result strong,.history-item strong{display:block;color:#153b4b}.search-result small,.history-item small{display:block;color:#647f88;font-size:12px;margin-top:3px}.search-result button{color:#184d5b;border:1px solid #c4d8dd;border-radius:8px;background:#e7f1f3;padding:8px 11px;font-weight:800}.search-result.selected{border-color:#b99861;background:#fff9ed}.selected-subject{border:1px solid #e2c18a;background:#fffaf0;border-radius:10px;padding:13px 16px;margin:14px 0;color:#334953;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.selected-subject strong{color:#84622d}.selected-subject span{font-size:12px}.selected-subject small{color:#647983}.issue-button{border:1px solid #e9c68a;background:linear-gradient(110deg,#153d4b,#0d2a3e);color:#f5dcaa;border-radius:10px;padding:12px 19px;font-size:14px;font-weight:850;min-height:48px}.doc-panel>.issue-button{margin-top:10px}.check-line{display:flex!important;align-items:center;gap:9px}.check-line input{width:18px;height:18px}.issuer-scopes{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.issuer-scopes label{display:inline-flex;gap:7px;align-items:center;margin:0;padding:7px 12px;border:1px solid #d2e1e2;border-radius:20px;background:#f9fcfc}.history-item .row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.history-item .row-actions button{color:#813f39;border-color:#ddb8b2;background:#fff0ec}.no-results{color:#6c7d84;font-size:13px;border:1px dashed #c9dada;padding:17px;border-radius:11px}
.print-area{max-width:950px;margin:30px auto}.official-sheet{width:min(100%,210mm);min-height:297mm;position:relative;background:linear-gradient(145deg,#fffefa,#fff7e8);color:#203c46;padding:10mm;box-shadow:0 27px 65px #071b2b50;margin:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sheet-frame{position:relative;min-height:277mm;border:4px double #c6a16a;outline:1px solid #ead8b5;outline-offset:-7px;padding:14mm 13mm 9mm;display:flex;flex-direction:column}.sheet-frame:before{content:"✦";position:absolute;font-size:280px;line-height:1;top:25%;left:50%;transform:translateX(-50%);color:#d6c6a414;pointer-events:none}.sheet-frame>*{position:relative;z-index:1}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.sheet-logo{display:flex;align-items:center;gap:12px}.sheet-logo-mark{background:#123848;color:#f1d7a3;border:2px solid #c29e65;border-radius:12px;width:59px;height:59px;display:grid;place-items:center;font-size:36px}.sheet-logo strong{display:block;color:#12394b;font-size:18px}.sheet-logo small{display:block;color:#876c43;font-size:9px;letter-spacing:.09em;direction:ltr;text-align:right}.sheet-official{font-size:10px;font-weight:850;color:#9b7745;letter-spacing:.06em}.sheet-ornament{text-align:center;color:#bd9a5e;margin:22px 0 9px;letter-spacing:19px}.sheet-document-header{text-align:center}.sheet-document-header span{font-size:11px;color:#9c7544;font-weight:750;letter-spacing:.13em}.sheet-document-header h2{font-size:clamp(29px,4.2vw,42px);color:#163d4f;margin:9px 0}.sheet-document-header p{font-size:12px;color:#9c7648;font-weight:800;letter-spacing:.14em;margin:5px 0 24px}.sheet-person{display:grid;grid-template-columns:1.5fr .9fr;gap:17px;border-block:1px solid #c7a56d;padding:19px 0}.sheet-person>div{display:grid;gap:6px}.sheet-person span{font-size:13px;color:#8e784e}.sheet-person strong{color:#1a4250;font-size:22px;overflow-wrap:anywhere}.sheet-body{margin:42px 0 14px;line-height:2.35;font-size:18px;color:#2b414b;text-align:justify;min-height:155px}.sheet-body p{margin:0 0 16px}.sheet-note{font-size:13px;line-height:1.9;color:#6e6151;border-top:1px solid #e2d7c3;padding-top:14px}.sheet-footer{display:grid;grid-template-columns:1fr 145px 108px;gap:15px;margin-top:auto;align-items:end;padding-top:50px}.issue-signature{display:grid;gap:5px}.issue-signature>span{font-size:12px;color:#8c7144}.issue-signature strong{color:#173e4e;font-size:16px}.issue-signature small{font-size:10px;color:#78736a}.institution-seal{border:3px double #a78149;border-radius:50%;width:135px;height:135px;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-7deg);color:#a5804c;background:#c2ac7d0a}.institution-seal>span{font-size:31px}.institution-seal strong{font-size:12px;text-align:center;line-height:1.4}.institution-seal small{font-size:8px;text-align:center}.sheet-qr-wrap{text-align:center}.sheet-qr-wrap>div{width:105px;height:105px;padding:6px;background:white;border:1px solid #c8b492;border-radius:6px}.sheet-qr-wrap img{width:100%;height:100%;object-fit:contain}.sheet-qr-wrap canvas{display:none!important}.sheet-qr-wrap small{font-size:9px;letter-spacing:.07em;color:#98764b}.sheet-bottom{display:flex;justify-content:space-between;gap:19px;border-top:1px solid #c6aa7a;padding-top:18px;margin-top:22px;align-items:end}.sheet-bottom div{display:grid;gap:2px}.sheet-bottom strong{color:#1a3f4e;font:850 13px ui-monospace,monospace}.sheet-bottom small{font-size:9px;color:#866f4c}.sheet-bottom>span{font-size:10px;max-width:360px;color:#777165}.print-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;margin:19px auto}.print-actions .secondary{display:inline-flex;align-items:center}.print-actions .issue-button{color:#f6d9a4}footer{padding:22px;border-top:1px solid #d1e1df;text-align:center;color:#667d84;font-size:12px}
@media(max-width:880px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-frame{padding:10mm 9mm}.sheet-footer{grid-template-columns:1fr 125px 100px}.institution-seal{width:115px;height:115px}.sheet-qr-wrap>div{width:100px;height:100px}}
@media(max-width:580px){.doc-head{display:block}.doc-links{margin-top:10px}.template-grid{grid-template-columns:1fr}.search-line{align-items:stretch;flex-direction:column}.sheet-frame{padding:6mm 5mm;min-height:267mm}.official-sheet{padding:4mm;min-height:280mm}.sheet-logo-mark{width:37px;height:37px;font-size:24px}.sheet-logo strong{font-size:12px}.sheet-logo small{font-size:7px}.sheet-official{font-size:7px}.sheet-person{grid-template-columns:1fr}.sheet-person strong{font-size:17px}.sheet-body{font-size:14px;line-height:2;margin:20px 0}.sheet-footer{grid-template-columns:1fr 85px;gap:7px}.institution-seal{width:82px;height:82px;border-width:2px}.institution-seal>span{font-size:19px}.institution-seal strong{font-size:8px}.institution-seal small{font-size:6px}.sheet-qr-wrap{grid-column:1/-1;justify-self:end}.sheet-qr-wrap>div{width:85px;height:85px}.sheet-bottom{display:block}.history-item{display:block}.history-item .row-actions{margin-top:12px}}
@media print{@page{size:A4 portrait;margin:0}html,body{background:white!important;margin:0;padding:0;width:210mm}.no-print,footer{display:none!important}main{margin:0;padding:0;max-width:none;width:210mm}.print-area{display:block!important;width:210mm;max-width:none;margin:0}.official-sheet{display:block!important;width:210mm;height:297mm;min-height:297mm;margin:0;padding:9mm;box-shadow:none;break-after:avoid}.sheet-frame{height:277mm;min-height:277mm;padding:12mm 12mm 7mm}.sheet-footer{grid-template-columns:1fr 135px 105px}.institution-seal{width:125px;height:125px}.sheet-qr-wrap>div{width:105px;height:105px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.template-card{transition:none}}


/* ===== NADB Signature Letterhead v3 · Arabic + English on one A4 page ===== */
.official-sheet {
  background:linear-gradient(155deg,#fffefa,#fcf5e8 62%,#f9f2e4);
  border:1px solid rgba(192,153,84,.40);
}
.sheet-frame {
  border:5px double #a98046;
  background:radial-gradient(ellipse at 50% 27%,rgba(211,177,107,.05),transparent 48%);
  padding:10mm 11mm 8mm;
  outline:1px solid #dac49a;
  outline-offset:-11px;
}
.sheet-frame:after {
  content:"";
  display:block;
  position:absolute;
  z-index:0;
  inset:10mm;
  border:1px solid rgba(182,147,85,.25);
  pointer-events:none;
}
.sheet-logo-mark {
  border-radius:50%;width:57px;height:57px;
  border:3px double #d6b472;
  box-shadow:0 0 0 4px rgba(207,180,117,.13);
}
.sheet-logo strong {font-size:19px;color:#103744;}
.sheet-logo small {letter-spacing:.11em;}
.sheet-ornament{margin:12px 0 7px;letter-spacing:13px;color:#bd9962;}
.sheet-document-header h2 {font-size:35px;margin:5px 0 2px;font-weight:900;}
.sheet-document-header p{font-size:11px;margin:0 0 3px;letter-spacing:.1em;}
.sheet-bilingual-mark {font:800 9px system-ui,sans-serif;letter-spacing:.12em;color:#9b7b4f;}
.sheet-bilingual-mark span {padding-inline:7px;color:#ceae77;}
.sheet-person {
  grid-template-columns:minmax(0,1.45fr) minmax(0,.85fr);
  gap:18px;margin-top:14px;padding:11px 0;
  background:linear-gradient(90deg,rgba(231,219,192,.06),rgba(231,219,192,.13),rgba(231,219,192,.06));
}
.sheet-person div>span {
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11px;font-weight:750;
}
.sheet-person em{font:650 10px system-ui,sans-serif;font-style:normal;color:#a08757;}
.sheet-person strong{font-size:18px;line-height:1.55;}
.sheet-person small{font-size:10px;color:#796b50;display:block;text-align:right;}
.sheet-verified-details {
  display:grid;
  gap:3px;
  padding:9px 14px;
  margin:12px 0 0;
  background:rgba(238,228,207,.45);
  border-inline-start:3px solid #b9935d;
  border-radius:6px;
}
.evidence-row {
  display:grid;
  grid-template-columns:minmax(100px,.45fr) minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:4px 0;
  border-bottom:1px solid rgba(176,148,96,.18);
}
.evidence-row:last-child{border-bottom:0;}
.evidence-row b{display:block;font-size:10px;color:#71552f;}
.evidence-row small {
  display:block;
  color:#82745e;
  font:500 9px/1.4 system-ui,sans-serif;
}
.evidence-value strong{display:block;font-size:11px;color:#193e4b;overflow-wrap:anywhere;}
.evidence-value small{color:#52656b;}
.sheet-body {
  display:grid;
  gap:12px;
  min-height:0;
  margin:15px 0 8px;
  font-size:12.5px;
  line-height:1.8;
}
.bilingual-text {padding:1px 13px 2px;min-width:0;}
.bilingual-text--ar {
  text-align:justify;
  border-inline-start:3px solid #c2a16d;
  color:#2b4147;
}
.bilingual-text--en {
  direction:ltr;
  text-align:left;
  border-left:3px solid #79989c;
  background:rgba(228,236,234,.30);
  border-radius:3px;
  color:#35525b;
  font-family:Georgia,"Segoe UI",Arial,sans-serif;
}
.bilingual-text h3 {
  display:block;
  margin:0 0 4px;
  font-size:11px;
  letter-spacing:.02em;
  color:#8b6b3b;
}
.bilingual-text--en h3 {color:#345d67;font-family:system-ui,sans-serif;}
.bilingual-text p {margin:0 0 8px;font-size:12px;line-height:1.8;}
.bilingual-text p:last-child{margin-bottom:0;}
.sheet-note {
  font-size:10px;
  line-height:1.7;
  color:#796a53;
  padding:8px 0 0;
  margin:2px 0 0;
}
.sheet-footer {
  display:grid;
  grid-template-columns:minmax(0,1fr) 208px;
  align-items:end;
  gap:16px;
  margin-top:auto;
  padding-top:16px;
}
.signature-stack {
  display:flex;flex-direction:column;
  align-items:center;justify-content:flex-end;gap:6px;
}
.signature-stack .institution-seal {
  order:0;transform:rotate(-5deg);
  width:112px;height:112px;border:3px double #9f7845;
  background:radial-gradient(circle,rgba(183,144,75,.06),transparent 73%);
  color:#987344;
  flex-shrink:0;
}
.signature-stack .institution-seal>span {font-size:26px;line-height:1.15;}
.signature-stack .institution-seal strong {font-size:10px;}
.signature-stack .institution-seal small {font-size:7px;line-height:1.45;}
.signature-stack .issue-signature {
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  border-top:1px solid rgba(172,135,76,.60);
  width:min(100%,340px);
  padding-top:5px;
  gap:2px;
}
.issue-signature>span{font-size:11px;font-weight:800;color:#6d5636;}
.issue-signature>strong {
  color:#193f50;
  font-family:"Amiri","Noto Naskh Arabic",Georgia,serif;
  font-size:22px;
  line-height:1.5;
  font-weight:900;
  letter-spacing:.01em;
}
.issue-signature small{font-size:9px;color:#7c6b50;}
.sheet-verification {
  display:flex;flex-direction:column;
  align-items:center;justify-content:end;gap:9px;
}
.sheet-qr-wrap>div {width:97px;height:97px;}
.sheet-qr-wrap small {display:block;white-space:normal;line-height:1.4;font-size:8px;}
.sheet-linear-code {
  background:#fffdfa;
  padding:5px 6px;
  border:1px solid rgba(180,158,116,.5);
  border-radius:5px;
  width:100%;
  max-width:198px;
  overflow:hidden;
}
.sheet-linear-code svg {display:block;max-width:100%;width:100%;height:auto;}
.sheet-bottom{margin-top:9px;padding-top:11px;align-items:center;}
.sheet-bottom>span{font-size:9px;line-height:1.55;text-align:left;max-width:320px;}
.sheet-bottom>span span{display:block;margin-top:3px;}
.sheet-bottom strong{font-size:12px;white-space:nowrap;}
@media(max-width:580px){
 .sheet-frame{padding:6mm 5mm;min-height:273mm;}
 .sheet-logo strong{font-size:12px;}
 .sheet-person{grid-template-columns:1fr 1fr;gap:5px;}
 .sheet-person strong{font-size:13px;}
 .sheet-person small{font-size:8px;}
 .sheet-document-header h2{font-size:23px;}
 .sheet-verified-details{padding:7px 8px;}
 .evidence-row{grid-template-columns:1fr 1.4fr;gap:6px;}
 .evidence-row strong{font-size:10px;}
 .sheet-body{gap:8px;margin:10px 0 6px;}
 .bilingual-text{padding-inline:7px;}
 .bilingual-text p{font-size:10px;line-height:1.55;}
 .sheet-footer{grid-template-columns:1fr 105px;gap:6px;padding-top:10px;}
 .signature-stack .institution-seal{width:70px;height:70px;}
 .signature-stack .institution-seal>span{font-size:14px;}
 .signature-stack .institution-seal strong{font-size:7px;}
 .signature-stack .institution-seal small{font-size:5px;}
 .issue-signature>strong{font-size:13px;}
 .issue-signature>span{font-size:9px;}
 .issue-signature small{font-size:7px;}
 .sheet-qr-wrap>div{width:83px;height:83px;}
 .sheet-linear-code{max-width:105px;padding:2px;}
 .sheet-note{font-size:8px;}
 .sheet-bottom{margin-top:8px;}
 .sheet-bottom>span{font-size:7px;}
}
@media print{
 @page{size:A4 portrait;margin:0}
 html,body {width:210mm;min-height:297mm;overflow:visible;}
 .official-sheet {
   width:210mm;height:297mm;min-height:297mm;
   padding:8mm;box-shadow:none;
   break-inside:avoid;page-break-inside:avoid;
 }
 .sheet-frame {
   min-height:281mm;height:281mm;
   padding:9mm 10mm 7mm;
   overflow:hidden;
 }
 .sheet-document-header h2{font-size:29px;}
 .sheet-person{padding:9px 0;margin-top:9px;}
 .sheet-person strong{font-size:16px;}
 .sheet-body{gap:7px;margin:9px 0 6px;}
 .bilingual-text p{font-size:11px;line-height:1.7;margin-bottom:5px;}
 .evidence-row{padding:2px 0;}
 .sheet-verified-details{margin-top:7px;padding:6px 10px;}
 .sheet-footer{padding-top:7px;gap:13px;}
 .signature-stack .institution-seal{width:91px;height:91px;}
 .issue-signature>strong{font-size:19px;}
 .sheet-qr-wrap>div{width:89px;height:89px;}
 .sheet-linear-code{max-width:200px;}
 .sheet-bottom{margin-top:7px;padding-top:7px;}
}


/* NABD Official Documents v4 — legible bilingual A4 typography, credible blue digital Academy seal.
   Existing content, issuance numbers, signatures, QR and CODE128 remain unchanged. */
.official-sheet{
  background:#fffdf8;
  color:#172e3a;
}
.sheet-frame{
  background:
    linear-gradient(170deg,rgba(231,238,242,.21),rgba(255,255,255,0) 18%),
    #fffdf8;
  border-color:#af925d;
  outline-color:#d1b685;
}
.sheet-frame:before{
  color:rgba(15,67,109,.035);
  font-size:250px;
}
.sheet-frame:after{border-color:rgba(29,83,126,.23)}
.sheet-header{
  border-bottom:2px solid rgba(26,74,111,.24);
  padding-bottom:13px;
}
.sheet-logo strong{font-size:21px;font-weight:900;color:#102c3e;}
.sheet-logo small{font-size:11px;font-weight:800;color:#4f6270;letter-spacing:.04em}
.sheet-official{
  display:grid;
  gap:3px;
  text-align:left;
  color:#31506a;
  font-size:11px;
  font-weight:900;
  letter-spacing:0;
}
.sheet-official small{
  display:block;
  font:700 10px/1.45 Arial,system-ui,sans-serif;
  letter-spacing:.045em;
  color:#596d77;
}
.sheet-ornament{margin:11px 0 7px;color:#9b824c;}
.sheet-document-header{
  border-bottom:1px solid rgba(180,149,92,.34);
  padding-bottom:12px;
}
.sheet-document-header>span#sheet-kicker{
  font-size:12px;
  letter-spacing:.02em;
  font-weight:850;
  color:#78613a;
}
.sheet-document-header h2{
  font-size:clamp(36px,4.6vw,44px);
  color:#102d40;
  line-height:1.42;
  margin:6px 0 0;
  font-weight:900;
}
.sheet-document-header>p#sheet-subtitle{
  font:800 17px/1.5 Georgia,Arial,sans-serif;
  letter-spacing:.055em;
  text-transform:uppercase;
  color:#173c53;
  margin:1px 0 5px;
}
.sheet-bilingual-mark{
  font:750 10.5px/1.5 Tahoma,Arial,sans-serif;
  color:#6d5739;
  letter-spacing:.025em;
}
.sheet-person{
  gap:16px;
  border-top:0;
  border-bottom:2px solid rgba(188,156,101,.55);
  padding:12px 0 14px;
  margin-top:0;
}
.sheet-person div>span{
  font-size:13px;
  color:#335568;
}
.sheet-person em{
  font:700 12px/1.3 Arial,sans-serif;
  color:#547084;
}
.sheet-person strong{font-size:21px;color:#123245;}
.sheet-person small{
  font:650 12px/1.4 Georgia,Arial,sans-serif;
  color:#38596b;
}
.sheet-verified-details{
  gap:0;
  margin-top:12px;
  padding:11px 15px;
  background:linear-gradient(90deg,rgba(237,242,244,.75),rgba(245,248,249,.85));
  border-inline-start:4px solid #3272a3;
  border-radius:5px;
}
.evidence-heading{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px;
  padding-bottom:7px;
  margin-bottom:2px;
  border-bottom:1px solid #afc5d4;
}
.evidence-heading strong{
  color:#173e59;
  font-size:14px;
  font-weight:900;
}
.evidence-heading small{
  color:#3a607a;
  font:750 11px/1.4 Arial,system-ui,sans-serif;
  letter-spacing:.02em;
}
.evidence-row{
  grid-template-columns:minmax(125px,.46fr) minmax(0,1fr);
  gap:12px;
  border-color:rgba(94,126,151,.23);
  padding:6px 0;
}
.evidence-row b{font-size:12px;color:#234860;}
.evidence-row small{
  font:650 11px/1.6 Arial,system-ui,sans-serif;
  color:#416074;
}
.evidence-value strong{
  font-size:13px;
  line-height:1.5;
  color:#183746;
}
.evidence-value small{font-size:12px;color:#345767;}
.sheet-body{
  margin:15px 0 10px;
  gap:15px;
  line-height:1.95;
  font-size:15px;
}
.bilingual-text{
  padding:2px 14px 6px;
  break-inside:avoid;
}
.bilingual-text--ar{
  border-inline-start:4px solid #b49259;
  color:#263e47;
  text-align:justify;
  background:rgba(244,239,226,.23);
}
.bilingual-text--en{
  border-left:4px solid #2c6f9f;
  background:#f0f5f8;
  color:#263f51;
  font-family:Georgia,"Times New Roman",serif;
  text-align:left;
}
.bilingual-text h3{
  margin:0 0 8px;
  font-size:13px;
  font-weight:900;
  letter-spacing:0;
}
.bilingual-text--en h3{
  color:#24516d;
  font:800 13px/1.5 Georgia,Arial,serif;
}
.bilingual-text p{
  font-size:15px;
  line-height:1.94;
  margin:0 0 10px;
  font-weight:500;
}
.bilingual-text--en p{
  font-size:15px;
  line-height:1.8;
}
.sheet-note{
  font-size:11px;
  line-height:1.65;
  color:#52656f;
  padding-top:9px;
  border-top:1px solid rgba(70,98,114,.19);
}
.sheet-footer{
  grid-template-columns:minmax(0,1fr) 205px;
  gap:20px;
  padding-top:12px;
  align-items:end;
}
.signature-stack{gap:1px;}
.signature-stack .institution-seal{
  width:156px;
  height:156px;
  flex-shrink:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  box-shadow:none;
  transform:rotate(-8deg);
  color:#14599f;
  opacity:.97;
  filter:contrast(1.09);
  margin-bottom:-9px;
  position:relative;
  z-index:2;
}
.academy-blue-seal{
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
  color:#1259a0;
}
.signature-stack .issue-signature{
  border-top:1px solid #255b86;
  gap:3px;
  padding-top:9px;
}
.issue-signature>span{
  font-size:12px;
  font-weight:900;
  color:#1a4566;
}
.issue-signature>strong{
  font-size:25px;
  line-height:1.42;
  color:#103f6d;
  font-weight:900;
}
.issue-signature small{
  font-size:10px;
  line-height:1.5;
  color:#436278;
}
.issue-signature #sheet-signatory-en{
  font:800 10px/1.4 Arial,sans-serif;
  letter-spacing:.025em;
}
.sheet-verification{gap:8px;}
.sheet-qr-wrap>div{width:105px;height:105px;border:2px solid #b2c5ce;}
.sheet-qr-wrap small{font-size:10px;color:#304f62;}
.sheet-linear-code{
  max-width:204px;
  width:100%;
  border:1px solid #a0b4bf;
  background:#fff;
}
.sheet-bottom{
  margin-top:10px;
  padding-top:10px;
  border-top:2px solid #bfa779;
}
.sheet-bottom strong{font-size:14px;color:#173b52;}
.sheet-bottom small{font-size:10px;font-weight:700;}
.sheet-bottom>span{font-size:10.5px;color:#435864;line-height:1.6;}
.sheet-bottom>span span{font-size:10.5px;}
/* Keep phone's full-page view; enable full-size horizontal scrolling on demand. */
.print-area.doc-preview-zoom{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  padding-bottom:15px;
}
.print-area.doc-preview-zoom .official-sheet{
  width:210mm;
  max-width:none;
  min-width:210mm;
  margin-inline:0;
}
@media(max-width:580px){
 .sheet-logo strong{font-size:13px;}
 .sheet-logo small{font-size:8px;}
 .sheet-official{font-size:8px;}
 .sheet-official small{font-size:7px;}
 .sheet-document-header h2{font-size:27px;}
 .sheet-document-header>p#sheet-subtitle{font-size:12px;}
 .sheet-document-header>span#sheet-kicker{font-size:9px;}
 .sheet-person strong{font-size:14px;}
 .sheet-person em{font-size:8px;}
 .sheet-person small{font-size:9px;}
 .evidence-heading strong{font-size:10px;}
 .evidence-heading small{font-size:8px;}
 .evidence-row{grid-template-columns:1fr 1.3fr;gap:4px;padding:3px 0;}
 .evidence-row b{font-size:9px;}
 .evidence-row small{font-size:8px;}
 .evidence-value strong{font-size:10px;}
 .evidence-value small{font-size:9px;}
 .bilingual-text p,.bilingual-text--en p{font-size:12px;line-height:1.65;}
 .bilingual-text h3,.bilingual-text--en h3{font-size:10px;}
 .sheet-body{gap:9px;}
 .sheet-note{font-size:9px;}
 .sheet-footer{grid-template-columns:minmax(0,1fr) 115px;gap:7px;}
 .signature-stack .institution-seal{width:112px;height:112px;margin-bottom:-5px;}
 .issue-signature>strong{font-size:16px;}
 .issue-signature>span{font-size:9px;}
 .issue-signature small{font-size:7.5px;}
 .sheet-qr-wrap>div{width:85px;height:85px;}
 .sheet-bottom>span,.sheet-bottom>span span{font-size:8px;}
}
/* Print dimensions are kept at real A4 sizes regardless of the mobile screen. */
@media print{
 @page{size:A4 portrait;margin:0}
 .print-area.doc-preview-zoom{width:210mm;max-width:none;overflow:visible;padding:0;}
 .print-area.doc-preview-zoom .official-sheet{width:210mm;max-width:none;min-width:0;margin:0;}
 .official-sheet{height:297mm;min-height:297mm;overflow:hidden;}
 .sheet-frame{
   height:281mm;min-height:281mm;
   padding:9mm 10mm 7mm;
   overflow:hidden;
 }
 .sheet-logo strong{font-size:19px;}
 .sheet-logo small{font-size:10px;}
 .sheet-official{font-size:10px;}
 .sheet-document-header h2{font-size:36px;}
 .sheet-document-header>p#sheet-subtitle{font-size:17px;}
 .sheet-person strong{font-size:18px;}
 .sheet-person em,.sheet-person small{font-size:11px;}
 .sheet-verified-details{margin-top:8px;padding:8px 12px;}
 .evidence-heading strong{font-size:12px;}
 .evidence-heading small{font-size:10px;}
 .evidence-row{padding:4px 0;gap:9px;}
 .evidence-row b{font-size:11px;}
 .evidence-row small{font-size:10px;}
 .evidence-value strong{font-size:12px;}
 .evidence-value small{font-size:11px;}
 .sheet-body{gap:11px;margin:10px 0 7px;}
 .bilingual-text p,.bilingual-text--en p{font-size:13.5px;line-height:1.7;margin-bottom:7px;}
 .bilingual-text h3,.bilingual-text--en h3{font-size:12px;}
 .sheet-note{font-size:10px;}
 .sheet-footer{grid-template-columns:minmax(0,1fr) 205px;gap:15px;padding-top:8px;}
 .signature-stack .institution-seal{width:140px;height:140px;margin-bottom:-7px;}
 .issue-signature>span{font-size:11px;}
 .issue-signature>strong{font-size:22px;}
 .issue-signature small{font-size:9px;}
 .sheet-qr-wrap>div{width:100px;height:100px;}
 .sheet-bottom{margin-top:8px;padding-top:9px;}
 .sheet-bottom>span,.sheet-bottom>span span{font-size:9px;}
 /* On a very rich record, prioritize fitting the entire verified statement on one page. */
 .official-sheet.document-dense .evidence-row{padding:2px 0;}
 .official-sheet.document-dense .bilingual-text p,
 .official-sheet.document-dense .bilingual-text--en p{font-size:12.5px;line-height:1.55;margin-bottom:4px;}
 .official-sheet.document-dense .sheet-verified-details{padding:5px 10px;}
 .official-sheet.document-dense .sheet-footer{padding-top:4px;}
}


/* NADB v5 — accurate bilingual names, clearly legible dates and ink-blue stamp. */
.english-name-fields,
.legacy-english-name-editor{
  margin:16px 0;
  padding:18px 20px;
  border:1px solid #adc3d0;
  border-inline-start:4px solid #1f69a3;
  border-radius:12px;
  background:linear-gradient(145deg,#f7fbff,#edf4f8);
  color:#1a4158;
}
.english-name-fields label,
.legacy-english-name-editor label{
  display:block;
  margin:0 0 7px;
  font-weight:850;
  font-size:14px;
}
.english-name-fields label span,
.legacy-english-name-editor label span{
  display:inline-block;
  margin-inline-start:6px;
  color:#2b638c;
  font-size:12px;
}
.english-name-fields input[type=text],
.legacy-english-name-editor input[type=text]{
  display:block;
  width:100%;
  min-height:48px;
  border:1px solid #a6beca;
  border-radius:9px;
  background:white;
  color:#15394e;
  font:650 15px/1.6 Arial,system-ui,sans-serif;
  padding:10px 14px;
}
.english-name-fields .muted,.legacy-english-name-editor p{
  color:#536d79;
  font-size:12px;
  line-height:1.85;
}
.english-name-fields .check-line,
.legacy-english-name-editor .check-line{
  display:flex;
  gap:10px;
  align-items:center;
  line-height:1.75;
  margin:14px 0 6px;
  font-size:13px;
}
.english-name-fields .check-line input,
.legacy-english-name-editor .check-line input{
  width:19px;
  height:19px;
  flex:0 0 19px;
}
.legacy-english-name-editor{
  background:#f0f6fa;
  box-shadow:0 8px 20px rgba(13,47,68,.08);
}
.legacy-english-name-editor strong{
  display:block;font-size:16px;color:#163f59;
}
.legacy-english-name-editor>button{margin-top:12px;}
.sheet-person{
  grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);
  gap:26px;
  padding-block:15px;
}
.sheet-person-name,.sheet-person-date{
  min-width:0;
  display:flex!important;
  flex-direction:column;
  align-items:stretch;
  gap:3px!important;
}
.sheet-person-name>span,.sheet-person-date>span{
  font-size:13px;
  font-weight:850;
  color:#254b60;
}
.sheet-person-name #sheet-name,.sheet-person-date #sheet-date{
  font-size:20px;
  font-weight:900;
  color:#152f44;
  line-height:1.55;
}
.sheet-person .sheet-name-english{
  font:850 18px/1.48 Georgia,"Times New Roman",Arial,serif;
  letter-spacing:.015em;
  color:#194967;
  text-align:right;
  padding-top:3px;
  border-top:1px solid rgba(48,104,147,.20);
  overflow-wrap:anywhere;
}
.sheet-person .sheet-date-english{
  font:850 16px/1.5 Georgia,"Times New Roman",serif;
  color:#194967;
  text-align:right;
  padding-top:3px;
  border-top:1px solid rgba(48,104,147,.20);
}
.sheet-person .name-not-recorded{
  color:#8b674a;
  font-size:11px;
  font-style:italic;
}
.sheet-document-header h2{font-size:43px;}
.sheet-document-header>p#sheet-subtitle{
  font:850 19px/1.45 Georgia,"Times New Roman",serif;
  letter-spacing:.05em;
  color:#173e58;
}
.bilingual-text{padding-block:8px;}
.bilingual-text--ar{background:rgba(253,249,241,.7);}
.bilingual-text--en{background:rgba(232,240,246,.8);}
.bilingual-text p{font-size:15.5px;line-height:1.9;margin-bottom:11px;}
.bilingual-text--en p{font-size:15.5px;line-height:1.84;}
/* Replaces the former thin ornamental emblem with a large, blue, school-only stamp. */
.signature-stack .institution-seal{
  width:178px;
  height:178px;
  margin-bottom:-6px;
  border:0;
  transform:rotate(-7deg);
  opacity:.93;
  filter:none;
  background:transparent;
  box-shadow:none;
  mix-blend-mode:multiply;
}
.academy-blue-seal{width:100%;height:100%;overflow:visible;}
.signature-stack .issue-signature{padding-top:8px;border-top:1.5px solid #276097;}
.issue-signature>strong{font-size:24px;color:#174c7c;}
@media(max-width:580px){
 .sheet-person{gap:9px;padding-block:8px;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);}
 .sheet-person-name #sheet-name,.sheet-person-date #sheet-date{font-size:14px;}
 .sheet-person .sheet-name-english{font-size:13px;}
 .sheet-person .sheet-date-english{font-size:12px;}
 .sheet-document-header h2{font-size:28px;}
 .sheet-document-header>p#sheet-subtitle{font-size:13px;}
 .signature-stack .institution-seal{width:124px;height:124px;}
 .bilingual-text p,.bilingual-text--en p{font-size:12px;}
 .english-name-fields,.legacy-english-name-editor{padding:15px 14px;}
}
@media print{
 @page{size:A4 portrait;margin:0}
 .sheet-person{gap:21px;padding-block:11px;}
 .sheet-person-name #sheet-name,.sheet-person-date #sheet-date{font-size:18px;}
 .sheet-person .sheet-name-english{font-size:17px;}
 .sheet-person .sheet-date-english{font-size:15px;}
 .sheet-document-header h2{font-size:39px;}
 .sheet-document-header>p#sheet-subtitle{font-size:18px;}
 .bilingual-text p,.bilingual-text--en p{font-size:14.4px;line-height:1.67;margin-bottom:8px;}
 .signature-stack .institution-seal{width:159px;height:159px;margin-bottom:-6px;}
 .signature-stack .issue-signature>strong{font-size:21px;}
 .official-sheet.document-dense .bilingual-text p,
 .official-sheet.document-dense .bilingual-text--en p{font-size:13.1px;line-height:1.53;margin-bottom:5px;}
 /* Don't silently cut off verified names, evidence or text on unusually dense documents. */
 .official-sheet{height:auto;min-height:297mm;overflow:visible;}
 .sheet-frame{height:auto;min-height:281mm;overflow:visible;}
}
