/* Printable CV — A4, light palette only. Repeating footer uses @page margin boxes (Chrome/Edge 131+). */
@page{
  size:A4;margin:12.7mm 12.7mm 17mm;
  @bottom-right{content:"د. سيف رحيم عبد الزهرة — السيرة الذاتية";direction:rtl;text-align:right;vertical-align:top;padding-top:7px;border-top:1px solid #e1e7f0;font:9.5pt 'IBM Plex Sans Arabic',sans-serif;color:#52627a}
  @bottom-left{content:"+964 780 742 4670 · saifraheem67@gmail.com";direction:ltr;text-align:left;vertical-align:top;padding-top:7px;border-top:1px solid #e1e7f0;font:9.5pt 'IBM Plex Sans Arabic',sans-serif;color:#52627a}
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-print-color-adjust:exact;print-color-adjust:exact}
body{margin:0;background:#e6eaf0;font-family:'IBM Plex Sans Arabic',sans-serif;color:#0d1b2e;-webkit-font-smoothing:antialiased}
a{color:#1e4f8f;text-decoration:none}
.i{flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.doc{direction:rtl;text-align:start;font-size:12pt;line-height:1.6;width:210mm;margin:28px auto;padding:12.7mm;background:#fff;box-shadow:0 12px 40px -12px rgba(11,31,58,.3)}
.print-btn{position:fixed;top:16px;left:16px;z-index:10;min-height:44px;padding:0 18px;border:0;border-radius:12px;background:#0b1f3a;color:#fff;font:600 14px 'IBM Plex Sans Arabic',sans-serif;display:flex;align-items:center;gap:8px;cursor:pointer;box-shadow:0 10px 24px -10px rgba(11,31,58,.6)}
.print-btn:hover{background:#163563}
@media print{
  body{background:none}
  .doc{width:auto;margin:0;padding:0;box-shadow:none}
  .print-btn{display:none}
}

/* layout helpers */
.g4,.g3,.g2{display:grid;gap:10px}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.box{border:1px solid #e1e7f0;border-radius:14px;padding:12px 14px;break-inside:avoid}
.col{display:flex;flex-direction:column}
.tile{width:32px;height:32px;border-radius:10px;background:#eaf1fb;color:#1e4f8f;display:grid;place-items:center;flex:none}
.tile.s{width:30px;height:30px;border-radius:9px}
.tile.gold{background:#fbf5e6;color:#8a6614}
.tile.navy{background:#0b1f3a;color:#d4af5a}
.feat{border-color:#c9a24a}
.bdg{font-size:9.5pt;font-weight:700;padding:1px 8px;border-radius:999px;background:#fbf5e6;color:#8a6614;white-space:nowrap}
.bdg.grey{background:#eef2f8;color:#52627a}
.mut{color:#52627a}
h2{margin:26px 0 12px;font-size:17pt;font-weight:700;color:#0d1b2e;line-height:1.35;break-after:avoid}
.eb{display:flex;align-items:center;gap:8px;color:#8a6614;font-size:10.5pt;font-weight:600;margin-bottom:2px}
.eb::before{content:"";width:22px;height:2px;background:#c9a24a;border-radius:2px}

/* header panel */
.head{position:relative;background:#e9eff8;border-radius:18px;padding:26px 28px 18px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;break-inside:avoid}
.head img{width:112px;height:112px;border-radius:50%;object-fit:cover;border:3px solid #c9a24a;padding:3px;background:#fff;margin-bottom:8px}
.head h1{margin:0;font-size:26pt;font-weight:700;color:#0b1f3a;line-height:1.25}
.qr{position:absolute;top:18px;inset-inline-end:18px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 8px 6px;border-radius:12px;background:#fff;border:1px solid #d3dceb;color:#52627a;font-size:8pt;font-weight:600;line-height:1.2}
.qr svg{display:block}
.lat{font-size:9.5pt;letter-spacing:.28em;font-weight:500;color:#52627a}
.ttl{font-size:11.5pt;color:#3d4f69;margin-top:2px;line-height:1.7;text-wrap:balance}
.contact{margin-top:12px;padding-top:12px;border-top:1px solid #d3dceb;width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;font-size:10.5pt;color:#1f2f47}
.ci{display:flex;align-items:center;gap:6px}
.ci .i{color:#1e4f8f}

/* stats */
.stats{margin-top:12px;break-inside:avoid}
.stat{padding:12px;display:flex;align-items:flex-start;gap:10px}
.stat b{display:block;font-size:17pt;font-weight:700;line-height:1.2}
.stat small{display:block;font-size:9.5pt;line-height:1.45;color:#52627a}

/* about */
.bio{border-radius:16px;padding:16px 18px;display:flex;gap:14px;align-items:flex-start}
.bio .tile{width:34px;height:34px}
.bio p{margin:0;line-height:1.9;text-wrap:pretty}
.pillars{margin-top:10px;break-inside:avoid}
.pillars .box{padding:12px;gap:8px}
.pillars b{font-size:10.5pt;font-weight:600;line-height:1.45}

/* candidacy */
.cand{margin-top:26px;background:#e9eff8;border-radius:18px;padding:20px 22px;break-inside:avoid}
.cand h2{margin:0 0 6px;color:#0b1f3a}
.org{display:flex;align-items:center;gap:7px;font-size:11pt;font-weight:600;color:#8a6614;margin-bottom:10px}
.cand p{margin:0 0 10px;font-size:11.5pt;line-height:1.9;color:#33445e;text-wrap:pretty}
.checks{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:5px;font-size:11pt;color:#1f2f47}
.checks li{display:flex;align-items:center;gap:8px}
.checks .i{color:#b8913a}
.prin{background:#fff;border-color:#dbe3ef;display:flex;gap:10px;align-items:flex-start}
.prin b{display:block;font-size:11.5pt;font-weight:600;color:#0b1f3a}
.prin span{display:block;font-size:10pt;line-height:1.7;color:#52627a}

/* timeline */
.tl-row{display:flex;gap:12px;break-inside:avoid}
.tl-col{flex:none;width:34px;display:flex;flex-direction:column;align-items:center}
.tl-col::after{content:"";flex:1;width:2px;background:#e1e7f0;margin-top:3px}
.tl-row:last-child .tl-col::after{background:transparent}
.node{width:34px;height:34px;border-radius:50%;background:#fff;color:#1e4f8f;border:1px solid #e1e7f0;display:grid;place-items:center;flex:none}
.tl-card{flex:1;min-width:0;margin-bottom:8px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.now .node{background:#0b1f3a;color:#d4af5a;border-color:#c9a24a}
.now .tl-card{border-color:#c9a24a}
.tl-main{min-width:0;display:flex;flex-direction:column;gap:2px}
.tl-t{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tl-t b{font-size:12pt;font-weight:600;line-height:1.5}
.meta{display:flex;align-items:center;gap:6px;font-size:10.5pt;color:#52627a}
.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}
.tag{font-size:9.5pt;font-weight:600;padding:0 8px;border-radius:999px;background:#eaf1fb;color:#1e4f8f}
.date{flex:none;display:flex;align-items:center;gap:6px;padding:5px 10px;border-radius:9px;background:#eef2f8;color:#52627a;font-size:10pt;font-weight:600;white-space:nowrap}

/* education & certificates */
.edu{gap:6px}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.edu b,.cert b{font-size:11.5pt;font-weight:600;line-height:1.5}
.edu .when{font-size:10pt;font-weight:600;color:#1e4f8f}
.cert{display:flex;gap:12px;align-items:flex-start}
.cert .col{flex:1;min-width:0;gap:2px}
.cat{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:9.5pt;font-weight:600;color:#1e4f8f}
.cert .meta{font-size:10pt}

/* skills */
.skg{gap:10px}
.skg-hd{display:flex;align-items:center;gap:8px;font-size:11pt;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:5px;font-size:10pt}
.chips span{padding:2px 8px;border-radius:7px;background:#eef2f8}
.skills2{margin-top:10px}
.skills2 .box{padding:14px 16px;gap:10px}
.box-t{font-size:11pt;font-weight:600}
.bar-l{display:flex;justify-content:space-between;font-size:10pt;font-weight:500}
.track{height:6px;border-radius:99px;background:#eef2f8;margin-top:4px}
.track div{height:100%;border-radius:99px;background:#1e4f8f}
.lang{background:#eef2f8;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:7px}
.lang-hd{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.lang-hd b{font-size:11pt;font-weight:600}
.lang-hd span{font-size:10pt;font-weight:600;color:#1e4f8f}
.meter{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.meter span{height:5px;border-radius:3px;background:#e1e7f0}
.meter .on{background:#1e4f8f}

/* community */
.comm{gap:8px}
.comm p{margin:0;font-size:10.5pt;line-height:1.75}
