/* Certificate, front and back. Design size: 1100 × 850 px (Letter landscape, as the official file). Needs brand.css. Scale with CSS `zoom`. */
.cert{ position:relative; width:1100px; height:850px; overflow:hidden; flex:none; --band:118px; font-family:var(--body); color:var(--white); background:var(--deep) }
.cert *, .cc *{ box-sizing:border-box; margin:0; padding:0 }

/* ---------- front: text sits on the brand gradient only (p.12) ---------- */
.ct-sky{ position:absolute; inset:0 0 var(--band) 0; background:var(--sky); overflow:hidden }
.ct-space{ position:absolute; inset:0 }   /* no clipping here: the glow has to fade out on its own */
.ct-space .ring { left:533px; top:-157px; width:744px; height:744px }
.ct-space .far  { left:575px; top:-115px; width:660px; height:660px }
.ct-space .earth{ left:535px; top:353px;  width:96px;  height:96px }
.ct-logo{ position:absolute; left:64px; top:54px; height:60px; display:block }

.ct-body{ position:absolute; left:64px; top:192px; width:450px }
.ct-title{ font:900 46px/1.04 var(--head); text-transform:uppercase; letter-spacing:.02em; color:var(--white) }
.ct-presents{ margin-top:26px; max-width:430px; font:400 16.5px/1.45 var(--body) }
/* the one Neon Yellow line: the participant's name (p.13) */
.ct-name{ margin-top:12px; font:400 42px/1.12 var(--body); color:var(--neon); white-space:nowrap }
.ct-citation{ margin-top:16px; max-width:440px; font:400 16.5px/1.5 var(--body) }

.ct-sign{ position:absolute; left:64px; right:64px; bottom:40px; display:flex; justify-content:space-between; align-items:flex-end }
.ct-block{ width:280px }
.ct-block.r{ text-align:right }
.ct-sig{ height:34px; display:block; margin:0 0 8px 4px }
.ct-line{ height:1.5px; background:var(--white); margin-bottom:10px }
.ct-who{ font:700 15px/1.2 var(--body) }
.ct-role{ margin-top:4px; font:400 13px/1.3 var(--body) }
.ct-datev{ font:400 21px/1 var(--body); margin-bottom:12px }
.ct-lbl{ font:700 10.5px/1 var(--body); letter-spacing:.2em; text-transform:uppercase }
/* shown by the studio when the name was changed: a file made to review the design must not pass for an issued certificate */
.ct-preview{ position:absolute; left:50%; bottom:50px; transform:translateX(-50%); padding:8px 14px 6px; border:1.5px solid var(--white); border-radius:999px;
  font:700 10.5px/1 var(--body); letter-spacing:.14em; text-transform:uppercase; white-space:nowrap }

/* partner band: unchanged content, on white */
.ct-band{ position:absolute; left:0; right:0; bottom:0; height:var(--band); background:var(--white); display:flex; align-items:center; padding:0 30px 0 26px; color:var(--deep) }
.ct-nasa{ display:flex; flex-direction:column; align-items:center; gap:7px; width:96px; flex:none }
.ct-nasa img{ height:50px; display:block }
.ct-nasa span{ font:700 7.5px/1 var(--body); letter-spacing:.18em; text-transform:uppercase; white-space:nowrap }
.ct-sep{ width:1px; align-self:stretch; margin:24px 20px 24px 14px; background:var(--deep) }
.ct-partners{ flex:1; display:flex; align-items:center; justify-content:space-between }
.ct-partners img{ display:block; flex:none }

/* ---------- back: the record of the mission ---------- */
.cert-back{ background:var(--sky) }
/* Earth as a horizon, hung off the bottom edge; no text on it (p.10) */
.cb-ring{ position:absolute; left:50%; top:615px; width:1600px; height:1600px; margin-left:-800px; border-radius:50%; border:1.5px solid var(--yonder); opacity:.75 }
.cb-earth{ position:absolute; left:50%; top:665px; width:1500px; height:1500px; margin-left:-750px; border-radius:50%;
  background-color:#000; background-position:center; background-size:104%; background-repeat:no-repeat; box-shadow:0 0 0 1.5px rgba(46,150,245,.8), 0 0 110px 8px rgba(46,150,245,.55) }
.cb-left{ position:absolute; left:64px; top:178px; width:520px }
.cb-title{ font:900 46px/1.04 var(--head); text-transform:uppercase; letter-spacing:.02em }
.cb-sub{ margin-top:18px; font:400 21px/1.35 var(--body) }
.cb-sub span{ display:block }
.cb-sub .y{ color:var(--neon) }
.cb-record{ margin-top:30px; padding-top:20px; border-top:1.5px solid var(--white); display:grid; grid-template-columns:1fr 1fr; gap:18px 28px }
.cb-record .v{ margin-top:8px; font:700 18px/1.25 var(--body); overflow-wrap:break-word }
.cb-record .wide{ grid-column:1 / -1 }
.cb-right{ position:absolute; left:668px; top:184px; width:368px }
.cb-about{ font:400 15.5px/1.55 var(--body) }
/* the code needs a white plate to scan */
.cb-code{ margin-top:26px; display:flex; align-items:center; gap:18px }
.cb-code div{ flex:none; width:118px; height:118px; padding:11px; border-radius:12px; background:var(--white) }
.cb-code svg{ display:block; width:100%; height:100% }
.cb-code p{ min-width:0; font:400 14px/1.4 var(--body); overflow-wrap:break-word }
.cb-code b{ display:block }
.cb-credit{ margin-top:22px; font:400 10.5px/1.5 var(--body) }

/* ---------- print: Letter landscape, the size of the official certificate ---------- */
.letter{ width:11in; height:8.5in; overflow:hidden; break-after:page; background:#fff }
.letter .cert{ zoom:.96 }   /* 1100 px -> 11 in */

/* ---------- certificate on social media: the whole certificate, a headline and the horizon; nothing from it is repeated ---------- */
.cc{ position:relative; width:1080px; height:var(--H); overflow:hidden; flex:none; background:var(--sky); font-family:var(--body); color:var(--white) }
.cc.post { --H:1350px; --h1:78px;  --ht:112px; --ct:252px; --z:.8727; --hz:1140px; --hd:2000px }
.cc.story{ --H:1920px; --h1:104px; --ht:340px; --ct:650px; --z:.9091; --hz:1620px; --hd:2400px }
.cc-h{ position:absolute; left:64px; right:64px; top:var(--ht); font:900 var(--h1)/1 var(--head); text-transform:uppercase; letter-spacing:.02em }
.cc-cert{ position:absolute; left:50%; top:var(--ct); transform:translateX(-50%); border-radius:10px; overflow:hidden; box-shadow:0 30px 60px rgba(3,10,30,.65) }
.cc-cert .cert{ zoom:var(--z) }
.cc-ring{ position:absolute; left:50%; top:calc(var(--hz) - 60px); width:calc(var(--hd) + 120px); height:calc(var(--hd) + 120px); margin-left:calc(var(--hd) / -2 - 60px); border-radius:50%; border:1.5px solid var(--yonder); opacity:.75 }
.cc-earth{ position:absolute; left:50%; top:var(--hz); width:var(--hd); height:var(--hd); margin-left:calc(var(--hd) / -2); border-radius:50%;
  background-color:#000; background-position:center; background-size:104%; background-repeat:no-repeat; box-shadow:0 0 0 1.5px rgba(46,150,245,.8), 0 0 120px 10px rgba(46,150,245,.6) }
