:root{
  --teal:#2594B0; --navy:#174F60; --ink:#1F2A30; --muted:#5E6E76;
  --line:#DCE6EA; --soft:#F2F7F9; --tint:#E3F1F5; --amber:#B9770E; --amber-soft:#FBF3E4;
}
@page{size:A4;margin:10mm 0}
.page *{box-sizing:border-box;margin:0;padding:0}
.page{font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;color:var(--ink);font-size:10.5pt;line-height:1.6;
  -webkit-print-color-adjust:exact;print-color-adjust:exact;box-shadow:0 2px 18px rgba(23,79,96,.12);
  width:210mm;min-height:297mm;margin:10mm auto;background:#fff;padding:9mm 14mm 0;position:relative;display:flex;flex-direction:column;overflow:hidden}
@media print{
  body{background:#fff}.no-print{display:none!important}#cardWrap{padding:0!important}
  #cardWrap .page{margin:0;box-shadow:none;min-height:277mm;padding-top:2mm}
}
.page>*{flex-shrink:0;position:relative;z-index:1}

/* watermarks */
.page .wm-logo{position:absolute;z-index:0;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.page .wm-logo img{width:115mm;opacity:.08}
.page .wm-text{position:absolute;z-index:2;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;font-size:72pt;font-weight:700;color:rgba(185,119,14,.12);transform:rotate(-30deg)}

/* header: centered */
.head{text-align:center;padding-bottom:2.5mm}
.head .client{height:13mm;display:flex;justify-content:center;align-items:center;margin-bottom:2mm}
.head .client img{max-height:13mm;max-width:55mm;object-fit:contain}
.head .kind{font-size:9pt;color:var(--muted);letter-spacing:.3px}
.head h1{font-size:19pt;font-weight:700;color:var(--navy);line-height:1.25;margin-top:.5mm}
.head .rule{width:24mm;height:1.2mm;background:var(--teal);border-radius:1mm;margin:2mm auto 0}

/* boxes */
.box{border:1px solid var(--line);border-radius:3mm;background:rgba(255,255,255,.55);break-inside:avoid}
.box-title{background:var(--navy);color:#fff;font-weight:600;font-size:10.5pt;padding:1.3mm 4mm;border-radius:3mm 3mm 0 0}
.box-body{padding:2.2mm 4mm}
.page section{margin-top:3mm}
.page section.comps{break-inside:auto}

/* identity: 2 cols × 2 rows */
.ident{display:grid;grid-template-columns:1fr 1fr;gap:2mm;margin-top:1mm}
.cell{border:1px solid var(--line);border-radius:3mm;padding:1.5mm 4mm;background:rgba(242,247,249,.6)}
.cell .k{font-size:8.5pt;color:var(--muted)}
.cell .v{font-weight:600;font-size:10pt;line-height:1.4}
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:2mm;margin-top:2mm}
.facts .cell{background:rgba(255,255,255,.55)}

.purpose{font-size:10pt;line-height:1.55}

ol.tasks{list-style:none;counter-reset:t}
ol.tasks li{counter-increment:t;display:flex;gap:3mm;padding:.9mm 0;border-bottom:1px dashed var(--line);break-inside:avoid}
ol.tasks li:last-child{border-bottom:0}
ol.tasks li::before{content:counter(t);flex:0 0 6mm;height:6mm;border-radius:50%;background:var(--teal);color:#fff;font-size:8.5pt;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:.3mm}
ol.tasks li.added::before{background:var(--amber)}
.tag{display:inline-block;font-size:7.5pt;background:var(--amber-soft);color:var(--amber);border-radius:1mm;padding:0 1.5mm;margin-inline-start:2mm;vertical-align:1px}

/* competencies */
.comp-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5mm}
.comp-grid .box.wide{grid-column:1 / -1}
.comp-grid .box.wide .items{display:grid;grid-template-columns:1fr 1fr;column-gap:8mm}
.comp-grid .box-title{background:var(--tint);color:var(--navy);font-size:9.5pt}
.row{display:flex;align-items:center;justify-content:space-between;gap:3mm;padding:.4mm 0;line-height:1.3}
.row .n{font-size:9.5pt;flex:1}
.lvl{display:flex;align-items:center;gap:2mm;flex:0 0 auto}
.dots{display:flex;gap:.9mm;direction:ltr}
.dots i{width:2.6mm;height:2.6mm;border-radius:50%;background:var(--line)}
.dots i.on{background:var(--teal)}
.lvl span{font-size:8pt;color:var(--muted);width:11mm;text-align:left}
.scale{font-size:8pt;color:var(--muted);margin-top:2mm;text-align:center}

/* footer: centered */
.spacer{flex:1}
.page footer{margin-top:3mm;border-top:1px solid var(--line);padding:2.5mm 0 4mm;text-align:center;font-size:8pt;color:var(--muted)}
.page footer .flogo{height:9mm;margin:0 auto 1.5mm;display:block}
.page footer .made b{color:var(--navy)}
.page footer .note{color:var(--amber);margin-top:.8mm}
.page footer .date{margin-top:.8mm}
