:root{--ink:#1f3a5f;--saffron:#d99a1e}
*{box-sizing:border-box}body{margin:0;background:#dfe3ea;font-family:'IBM Plex Sans Arabic',sans-serif;color:#1c2230}
.toolbar{display:flex;gap:.6rem;padding:.7rem 1rem;background:#fff;position:sticky;top:0;z-index:5;align-items:center}
.toolbar a{margin-inline-end:auto;color:var(--ink);text-decoration:none}.toolbar button{background:var(--ink);color:#fff;border:0;border-radius:8px;padding:.5rem .9rem;font:inherit;cursor:pointer}
.sheet{background:#fff;margin:1.2rem auto;position:relative;overflow:hidden;box-shadow:0 4px 24px #0002}
.landscape{width:297mm;height:210mm;max-width:100%}.portrait{width:210mm;height:297mm;max-width:100%;padding:18mm}
.wm{position:absolute;inset:0;display:grid;place-items:center;font-size:76px;font-weight:700;color:#1f3a5f14;transform:rotate(-24deg);pointer-events:none;white-space:nowrap}
.cert-head{background:var(--ink);color:#fff;padding:14mm 18mm;display:flex;align-items:center;gap:8mm}
.cert-head h1{margin:0;font-size:30px}.cert-head p{margin:.3rem 0 0;opacity:.75}.brand{margin-inline-start:auto;font-weight:700;color:var(--saffron);font-size:22px}
.seal{width:64px;height:64px;border-radius:50%;border:3px solid var(--saffron);display:grid;place-items:center;font-size:30px;font-weight:700;color:var(--saffron)}
.entity{margin:10mm 18mm 6mm;border-inline-start:6px solid var(--saffron);padding:.4rem 1rem;display:flex;gap:1rem;align-items:baseline}.entity span{color:#6b7587}.entity b{font-size:26px}
.kv{width:calc(100% - 36mm);margin:0 18mm;border-collapse:collapse}.kv th{background:#eef1f6;text-align:start;padding:.7rem 1rem;width:16%;color:var(--ink)}.kv td{padding:.7rem 1rem;border-bottom:1px solid #e2e6ee;width:34%}
.acts{margin:8mm 18mm}.acts h3{color:var(--ink);margin:0 0 .4rem}.acts p{line-height:1.9;margin:0}
.cert-foot{position:absolute;bottom:0;inset-inline:0;padding:8mm 18mm;display:flex;justify-content:space-between;align-items:flex-end;border-top:4px solid var(--saffron);font-size:13px;color:#6b7587}
#qr img,#qr canvas{display:block}.cards{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;padding:2rem}
.bcard{width:90mm;height:50mm;border-radius:6px;box-shadow:0 4px 18px #0003;padding:6mm;display:flex;position:relative}
.front{background:var(--ink);color:#fff;flex-direction:column;justify-content:center;gap:2mm;border-bottom:5px solid var(--saffron)}.front h2{font-size:19px;margin:0}.front p{margin:0;color:var(--saffron);font-size:13px}
.mk{width:34px;height:34px;border-radius:50%;background:var(--saffron);color:var(--ink);display:grid;place-items:center;font-weight:700}.mk.big{width:90px;height:90px;font-size:44px}
.back{background:#fff;justify-content:space-between;align-items:flex-end}.back b{color:var(--ink);font-size:15px}.back ul{list-style:none;padding:0;margin:3mm 0 0;font-size:11px;line-height:1.9}
.back #qr img{width:62px;height:62px}
.cover{background:var(--ink);color:#fff;display:flex;flex-direction:column;justify-content:center;gap:6mm;border-inline-start:14mm solid var(--saffron)}.cover h1{font-size:44px;margin:0}.cover p{color:var(--saffron);font-size:20px;margin:0}.cover #qr{background:#fff;padding:6px;width:max-content;margin-top:10mm}
.portrait h2{color:var(--ink);border-bottom:3px solid var(--saffron);padding-bottom:.3rem;margin:8mm 0 4mm;width:max-content}.lead-p{line-height:2;font-size:16px}
.svc{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}.svc div{background:#eef1f6;border-inline-start:4px solid var(--saffron);padding:.7rem 1rem}
.contact{list-style:none;padding:0}.contact li{display:flex;gap:1rem;padding:.5rem 0;border-bottom:1px solid #e2e6ee}.contact span{width:90px;color:#6b7587}
@media(max-width:900px){.landscape,.portrait{height:auto;min-height:60vh;padding-bottom:70mm}.wm{font-size:34px}.kv th,.kv td{display:block;width:100%}.cert-head{flex-wrap:wrap}}
@media print{.no-print{display:none}body{background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}.sheet{margin:0;box-shadow:none;break-after:page}}
.doc-logo{width:38px;height:38px;object-fit:contain;background:#fff;border-radius:50%;padding:3px}.seal-logo{width:64px;height:64px;border-radius:50%;border:3px solid var(--saffron);padding:5px}.big-logo{width:90px;height:90px;border-radius:50%;object-fit:contain;background:#fff;padding:8px}
/* Green, table-led identity for the unofficial credential and commercial-register summaries */
body.certificate,body.registry{--ink:#08776f;--saffron:#93c83e;background:#e8efed}
.green-summary{width:297mm;height:210mm;max-width:100%;background:#fff;color:#233a38;display:flex;flex-direction:column;border-bottom:5px solid #93c83e}
.summary-header{background:#08776f;color:#fff;padding:8mm 12mm 0;min-height:53mm;display:grid;grid-template-columns:1fr auto;column-gap:8mm;align-items:center;position:relative}
.summary-brand{display:flex;align-items:center;gap:5mm}.summary-logo,.summary-monogram{width:17mm;height:17mm;flex:none;object-fit:contain;background:#fff;color:#08776f;border-radius:50%;padding:2mm}.summary-monogram{display:grid;place-items:center;font-size:25px;font-weight:700}
.summary-kicker{font-size:11px;opacity:.8}.summary-header h1{font-size:25px;margin:1mm 0}.summary-header p{font-size:12px;margin:0;opacity:.85}
.summary-status{border:1px solid #b9df78;color:#e6ffbe;border-radius:5px;padding:2.2mm 4mm;text-align:center;font-weight:700;font-size:13px;line-height:1.7}.summary-status small{font-size:9px;font-weight:400}
.summary-name{grid-column:1/-1;background:#fff;color:#173d39;border-radius:5px 5px 0 0;margin-top:6mm;padding:2.3mm 5mm;display:flex;align-items:center;gap:4mm;min-height:13mm}.summary-name span{color:#08776f;font-size:11px}.summary-name b{font-size:17px}
.summary-content{padding:5mm 12mm 2mm;flex:1;overflow:hidden}.summary-group{margin:0 0 4mm}.summary-group h2{font-size:14px;color:#fff;background:#08776f;margin:0;padding:2mm 4mm;border-radius:3px 3px 0 0}.summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #d5e4e1;border-top:0}.summary-grid.three{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-cell{min-height:14mm;padding:2mm 3mm;border-left:1px solid #d5e4e1;border-bottom:1px solid #d5e4e1;display:flex;flex-direction:column;justify-content:center;gap:1mm}.summary-cell:nth-child(even){background:#f5f9f8}.summary-grid.three .summary-cell:nth-child(even){background:transparent}.summary-grid.three .summary-cell:nth-child(4n+2),.summary-grid.three .summary-cell:nth-child(4n+4){background:#f5f9f8}.summary-cell span{font-size:9px;color:#52736e}.summary-cell b{font-size:12px;font-weight:600;overflow-wrap:anywhere}.summary-cell.wide{grid-column:1/-1}
.summary-group.activities{margin-top:1mm}.activity-row{display:grid;grid-template-columns:23% 1fr;border:1px solid #d5e4e1;border-top:0;min-height:20mm}.activity-row>b{background:#edf5f3;padding:3mm;color:#08776f;font-size:11px;display:flex;align-items:center}.activity-row>div{padding:3mm 4mm;font-size:10px;line-height:1.8;max-height:32mm;overflow:hidden}
.summary-footer{min-height:22mm;border-top:1px solid #d5e4e1;padding:3mm 12mm;display:flex;align-items:center;justify-content:space-between;gap:5mm;background:#fff}.summary-disclaimer{font-size:9px;line-height:1.7;color:#5b6f6c;max-width:88%}.summary-links{margin-top:1mm;font-size:9px}.summary-links a{color:#08776f;text-decoration:underline;margin-inline-end:4mm}.summary-qr{flex:none;background:#fff;padding:1mm}.summary-qr img,.summary-qr canvas{width:16mm!important;height:16mm!important}
@media(max-width:900px){.green-summary{height:auto;min-height:80vh}.summary-header{padding:6mm;min-height:0}.summary-header h1{font-size:19px}.summary-content{padding:4mm}.summary-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-footer{padding:3mm 5mm}.summary-cell{min-height:12mm}.summary-disclaimer{max-width:80%}}
@media print{body.certificate,body.registry{background:#fff}.green-summary{height:210mm;max-width:none}.summary-header,.summary-group h2,.activity-row>b{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Formal responsive summaries */
body.certificate{background:#edf2f6;--formal-navy:#123b59;--formal-teal:#168d91;--formal-gold:#c99b3b}.formal-certificate{width:297mm;height:210mm;background:#fff;color:#1e3344;display:flex;flex-direction:column;overflow:hidden;border-bottom:5px solid var(--formal-teal)}.formal-head{background:linear-gradient(120deg,var(--formal-navy),#1a536b);color:#fff;min-height:43mm;padding:9mm 14mm;display:flex;align-items:center;justify-content:space-between;gap:10mm}.formal-identity{display:flex;align-items:center;gap:5mm}.formal-logo,.formal-monogram{width:20mm;height:20mm;object-fit:contain;background:#fff;border-radius:50%;padding:2mm;color:var(--formal-navy)}.formal-monogram{display:grid;place-items:center;font-size:28px;font-weight:700}.formal-identity span{font-size:10px;color:#b9d5dc}.formal-identity h1{font-size:26px;margin:1mm 0;font-weight:700}.formal-identity p{font-size:11px;margin:0;color:#d5e6ea}.formal-badge{border:1px solid #b5d5d9;border-radius:3mm;padding:3mm 5mm;text-align:center;font-size:12px;line-height:1.8;white-space:nowrap}.formal-badge strong{display:block;font-size:9px;color:#cfe7e8;font-weight:400}.formal-ribbon{margin:-5mm 14mm 0;background:#fff;border-radius:2mm;padding:4mm 7mm;box-shadow:0 3px 12px #123b5918;display:flex;align-items:center;gap:5mm;position:relative;z-index:2;border-right:4px solid var(--formal-gold)}.formal-ribbon span{font-size:10px;color:#718493}.formal-ribbon b{font-size:17px;color:var(--formal-navy)}.formal-body{flex:1;padding:8mm 14mm 4mm;min-height:0}.formal-section{margin-bottom:5mm}.formal-section h2{font-size:13px;color:#fff;background:var(--formal-teal);display:inline-block;margin:0;padding:2.2mm 6mm;border-radius:2mm 2mm 0 0;font-weight:700}.formal-grid{display:grid;border:1px solid #d8e3e8;border-radius:0 2mm 2mm 2mm;overflow:hidden}.formal-grid.two{grid-template-columns:repeat(2,1fr)}.formal-grid.four{grid-template-columns:repeat(4,1fr)}.formal-cell{min-height:17mm;padding:3mm 5mm;display:flex;flex-direction:column;justify-content:center;gap:1mm;border-left:1px solid #d8e3e8;border-bottom:1px solid #d8e3e8}.formal-cell:nth-child(even){background:#f5f9fa}.formal-grid.four .formal-cell:nth-child(even){background:#fff}.formal-grid.four .formal-cell:nth-child(4n+2),.formal-grid.four .formal-cell:nth-child(4n+4){background:#f5f9fa}.formal-cell span{font-size:9px;color:#6c8290}.formal-cell b{font-size:12px;color:#203e50;font-weight:600;overflow-wrap:anywhere}.formal-activity>div{min-height:20mm;border:1px solid #d8e3e8;border-top:0;border-radius:0 0 2mm 2mm;padding:4mm 5mm;font-size:11px;line-height:1.9;color:#294c5b}.formal-footer{min-height:27mm;border-top:1px solid #d8e3e8;background:#f7fafb;padding:4mm 14mm;display:flex;align-items:center;gap:8mm}.formal-disclaimer{font-size:9px;color:#637785;line-height:1.7;flex:1}.formal-disclaimer small{display:block;color:#83949e}.formal-links{display:flex;flex-direction:column;gap:1mm;min-width:45mm}.formal-links a{font-size:9px;color:var(--formal-teal);text-decoration:underline}.formal-qr{background:#fff;padding:1.5mm;flex:none}.formal-qr img,.formal-qr canvas{width:17mm!important;height:17mm!important}
@media(max-width:700px){body.certificate{background:#edf2f6}.formal-certificate{width:100%;height:auto;min-height:0;border-bottom-width:4px}.formal-head{min-height:0;padding:7mm 6mm;align-items:flex-start;gap:4mm}.formal-identity{gap:3mm}.formal-logo,.formal-monogram{width:15mm;height:15mm;padding:1.5mm}.formal-monogram{font-size:21px}.formal-identity span{font-size:8px}.formal-identity h1{font-size:18px;margin:1mm 0}.formal-identity p{font-size:9px}.formal-badge{padding:2mm 2.5mm;font-size:9px;line-height:1.5}.formal-badge strong{font-size:7px}.formal-ribbon{margin:-3mm 4mm 0;padding:3mm 4mm;display:block}.formal-ribbon span{font-size:8px;display:block;margin-bottom:1mm}.formal-ribbon b{font-size:14px;display:block;overflow-wrap:anywhere}.formal-body{padding:6mm 4mm 2mm}.formal-section{margin-bottom:4mm}.formal-section h2{font-size:11px;padding:2mm 4mm}.formal-grid.two,.formal-grid.four{grid-template-columns:1fr}.formal-cell{min-height:15mm;padding:2.5mm 4mm;border-left:0}.formal-grid.four .formal-cell:nth-child(even),.formal-grid.four .formal-cell:nth-child(4n+2),.formal-grid.four .formal-cell:nth-child(4n+4){background:#f5f9fa}.formal-cell span{font-size:8px}.formal-cell b{font-size:11px}.formal-activity>div{min-height:24mm;padding:3mm 4mm;font-size:10px}.formal-footer{min-height:0;padding:4mm;display:grid;grid-template-columns:1fr auto;gap:3mm}.formal-disclaimer{font-size:8px}.formal-links{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;gap:4mm;min-width:0}.formal-links a{font-size:8px}.formal-qr{grid-column:2;grid-row:1;width:19mm;height:19mm}.formal-qr img,.formal-qr canvas{width:16mm!important;height:16mm!important}}
@media print{body.certificate{background:#fff}.formal-certificate{width:297mm;height:210mm;max-width:none}.formal-head,.formal-footer,.formal-section h2{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Registry certificate base layout */
body.registry{background:#eef3f4;--registry-navy:#063d55;--registry-aqua:#13c5b2;--registry-aqua-dark:#08ae9f}.registry-certificate{width:297mm;height:210mm;background:#fff;position:relative;overflow:hidden;color:var(--registry-navy);display:flex;flex-direction:column;isolation:isolate}.registry-aqua-shape{position:absolute;z-index:0;left:-8mm;top:58mm;width:108mm;height:103mm;background:var(--registry-aqua);clip-path:polygon(0 12%,100% 0,90% 100%,0 100%)}.registry-watermark-art{position:absolute;z-index:0;left:96mm;top:25mm;color:#063d5510;font-size:155mm;line-height:1;transform:rotate(-10deg);font-weight:700}.registry-top{height:31mm;display:flex;align-items:flex-start;justify-content:space-between;padding:10mm 13mm 0;position:relative;z-index:1}.registry-brand{display:flex;align-items:center;gap:3mm;color:var(--registry-navy);text-align:right}.registry-brand-mark{width:14mm;height:14mm;border-radius:2mm;background:var(--registry-navy);color:#fff;display:grid;place-items:center;font-size:23px;font-weight:700}.registry-brand b{font-size:17px;display:block}.registry-brand small{font-size:9px;color:#70818a}.registry-unofficial{text-align:left;color:#7a8990;font-size:10px;line-height:1.7}.registry-unofficial small{font-size:8px}.registry-main{position:relative;z-index:1;display:grid;grid-template-columns:40% 60%;direction:ltr;flex:1;min-height:0}.registry-qr-panel{direction:rtl;width:94mm;height:112mm;margin:9mm 0 0 15mm;background:#fff;border:1.2px solid var(--registry-navy);border-radius:4mm;box-shadow:0 4px 15px #063d5520;display:flex;flex-direction:column;align-items:center;padding:9mm 7mm 5mm;position:relative;z-index:2}.registry-qr-title{font-size:13px;font-weight:700;text-align:center;margin-bottom:5mm;color:var(--registry-navy)}.registry-qr{width:67mm;height:67mm;display:grid;place-items:center}.registry-qr img,.registry-qr canvas{width:64mm!important;height:64mm!important}.registry-qr-number{font-size:16px;margin-top:3mm;color:#101b23}.registry-qr-caption{font-size:8px;color:#7c8b92;margin-top:1mm}.registry-details{direction:rtl;padding:17mm 16mm 0 8mm;position:relative}.registry-kicker{font-size:11px;color:#6c7e87;margin-bottom:2mm}.registry-details h1{font-size:31px;line-height:1.2;margin:0 0 9mm;font-weight:700;color:var(--registry-navy)}.registry-name{font-size:19px;font-weight:700;color:var(--registry-navy);margin-bottom:4mm}.registry-rule{height:1px;background:#c9d1d4;margin-bottom:6mm;width:94%}.registry-fields{display:grid;grid-template-columns:1fr 1fr;gap:4mm 12mm;width:94%}.registry-field{display:flex;align-items:center;justify-content:flex-start;gap:4mm;font-size:15px;min-height:10mm}.registry-field:before{content:'';width:4mm;height:7mm;display:block;background:var(--registry-aqua);clip-path:polygon(25% 0,100% 0,75% 100%,0 100%);flex:none}.registry-field span{font-weight:700;white-space:nowrap}.registry-field b{font-weight:500}.registry-field.wide{grid-column:1/-1}.registry-note{font-size:11px;color:#667980;margin-top:5mm;border-right:3px solid var(--registry-aqua);padding-right:4mm;max-width:92%;line-height:1.8}.registry-bottom{height:29mm;flex:none;background:var(--registry-navy);color:#fff;display:grid;grid-template-columns:1fr 1fr auto;gap:8mm;align-items:center;padding:5mm 13mm 4mm;position:relative;z-index:1;clip-path:ellipse(80% 100% at 50% 100%)}.registry-bottom>div{display:flex;flex-direction:column;gap:1mm}.registry-bottom b{font-size:15px;color:#fff}.registry-bottom span,.registry-bottom small{font-size:8px;color:#d4e0e3}.registry-contact{text-align:center}.registry-contact span{color:#8fe8dc;font-weight:700}.registry-contact a{color:#fff;font-size:8px;direction:ltr;overflow-wrap:anywhere}.registry-contact em{font-size:8px;color:#9fb5bb;font-style:normal}.registry-social{text-align:left;font-size:15px;font-weight:700;color:#9de9df}.registry-social small{color:#fff;font-weight:400}
@media(max-width:700px){.registry-certificate{width:100%;height:auto;min-height:0}.registry-top{height:auto;padding:6mm 5mm 0}.registry-unofficial{font-size:8px}.registry-unofficial small{font-size:7px}.registry-main{display:flex;flex-direction:column;direction:rtl;padding-bottom:6mm}.registry-details{padding:8mm 5mm 0}.registry-details h1{font-size:23px;margin-bottom:5mm}.registry-name{font-size:15px}.registry-fields{gap:1mm;width:100%;grid-template-columns:1fr}.registry-field{min-height:13mm;font-size:11px;gap:2mm;flex-wrap:wrap}.registry-field:before{width:3mm;height:5mm}.registry-field span{font-size:10px}.registry-field b{font-size:11px}.registry-field.wide{grid-column:auto}.registry-note{font-size:9px;margin-top:3mm}.registry-qr-panel{width:min(78mm,calc(100% - 20mm));margin:5mm auto 0;padding:4mm;height:auto}.registry-qr-title{font-size:11px;margin-bottom:3mm}.registry-qr{width:55mm;height:55mm}.registry-qr img,.registry-qr canvas{width:52mm!important;height:52mm!important}.registry-qr-number{font-size:13px}.registry-qr-caption{font-size:7px}.registry-bottom{height:auto;min-height:0;padding:4mm 5mm;clip-path:none}.registry-bottom b{font-size:12px}.registry-bottom span,.registry-bottom small{font-size:7px}}
@media print{body.registry{background:#fff}.registry-certificate{width:297mm;height:210mm;max-width:none}.registry-aqua-shape,.registry-bottom,.registry-field:before{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Saudi emblem and print-safe footer */
.registry-saudi-emblem{width:18mm;height:22mm;object-fit:contain;display:block}.formal-logo{object-fit:contain;background:transparent;border-radius:0;padding:0;width:22mm;height:22mm}.registry-brand b{font-size:15px}.registry-brand small{font-size:9px}.registry-bottom,.formal-footer{position:relative;z-index:5;overflow:hidden}
@media print{.registry-certificate,.formal-certificate{margin:0;box-shadow:none;break-after:auto;page-break-after:auto;overflow:hidden}.registry-main,.formal-body{min-height:0;overflow:hidden}.registry-bottom,.formal-footer{position:relative;z-index:10;flex:none}.registry-bottom{height:29mm}.formal-footer{min-height:27mm}.registry-details,.formal-body{break-inside:avoid;page-break-inside:avoid}}
@media(max-width:700px){.registry-saudi-emblem{width:14mm;height:18mm}.registry-brand b{font-size:12px}.formal-logo{width:15mm;height:18mm}}
/* A4 print fit: keep all registry/certificate content above the footer */
@media print{
  .registry-certificate{height:210mm;display:flex;flex-direction:column;overflow:hidden}
  .registry-top{height:25mm;padding:6mm 12mm 0}
  .registry-main{flex:1;height:auto;min-height:0;overflow:hidden}
  .registry-qr-panel{width:82mm;height:95mm;margin:7mm 0 0 12mm;padding:7mm 5mm 4mm}
  .registry-qr-title{font-size:11px;margin-bottom:3mm}.registry-qr{width:55mm;height:55mm}.registry-qr img,.registry-qr canvas{width:52mm!important;height:52mm!important}.registry-qr-number{font-size:13px;margin-top:2mm}.registry-qr-caption{font-size:7px}
  .registry-details{padding:10mm 12mm 0 6mm}.registry-details h1{font-size:26px;margin-bottom:5mm}.registry-name{font-size:17px;margin-bottom:3mm}.registry-rule{margin-bottom:4mm}.registry-fields{gap:2mm 8mm}.registry-field{font-size:12px;min-height:8mm}.registry-note{font-size:9px;margin-top:3mm}
  .registry-bottom{height:25mm;padding:3mm 12mm 2mm;clip-path:none}
  .registry-bottom b{font-size:12px}.registry-bottom span,.registry-bottom small{font-size:7px}
  .formal-certificate{height:210mm;display:flex;flex-direction:column;overflow:hidden}
  .formal-head{min-height:34mm;padding:6mm 12mm;gap:7mm}.formal-logo{width:18mm;height:18mm}.formal-identity h1{font-size:23px}.formal-identity p{font-size:10px}.formal-badge{font-size:10px;padding:2mm 4mm}.formal-ribbon{margin:-4mm 12mm 0;padding:3mm 6mm}.formal-ribbon b{font-size:15px}.formal-body{flex:1;min-height:0;padding:5mm 12mm 2mm;overflow:hidden}.formal-section{margin-bottom:2.5mm}.formal-section h2{font-size:11px;padding:1.5mm 5mm}.formal-cell{min-height:12mm;padding:2mm 4mm}.formal-cell span{font-size:8px}.formal-cell b{font-size:10px}.formal-activity>div{min-height:14mm;padding:2mm 4mm;font-size:9px}.formal-footer{min-height:22mm;height:22mm;padding:3mm 12mm;gap:5mm}.formal-disclaimer{font-size:8px}.formal-links a{font-size:8px}.formal-qr img,.formal-qr canvas{width:14mm!important;height:14mm!important}
}
/* Absolute print footer: never overlay document content */
@media print{
  .registry-certificate,.formal-certificate{position:relative;display:block;height:210mm;overflow:hidden}
  .registry-top{height:25mm}.registry-main{display:grid;position:relative;height:154mm;min-height:154mm;overflow:visible;flex:none}.registry-bottom{position:absolute;left:0;right:0;bottom:0;height:25mm;margin:0}
  .formal-head{height:34mm;min-height:34mm}.formal-ribbon{height:15mm}.formal-body{height:145mm;min-height:145mm;overflow:visible;flex:none}.formal-footer{position:absolute;left:0;right:0;bottom:0;height:22mm;min-height:22mm;margin:0}
}
