/* app_certificates: what the options of the design round share (inbox 0500). One A4 page, the
   desk, the window, the titlebar and the wordmark as the shell draws them (shell.css), the QR, the
   signature and the field label. An option's own look lives in opt_NN.css, scoped by .ct-oNN. */

@page{size:A4;margin:0}
*{box-sizing:border-box;margin:0;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}
html{background:rgb(22,22,22)}
/* dark scrollbars on every certificate page, the lab's sidebar and panel and the thumbnails' frames too
   (each frame is a page of its own, so the rule has to live here, 0517); scrollbar-color is inherited */
html{color-scheme:dark;scrollbar-color:var(--hl3) var(--s1)}
.ct-body{min-height:100vh;padding:72px 0 56px;display:flex;flex-direction:column;align-items:center;
  font:500 14px/1.4 var(--fd);color:var(--ink);-webkit-font-smoothing:antialiased}
.ct-body.ct-bare{padding:0;min-height:0}
.ct-nav{position:fixed;top:0;left:0;right:0;z-index:5;height:44px;display:flex;align-items:center;gap:18px;
  padding:0 18px;background:var(--s1);border-bottom:1px solid var(--hl1);font:500 12px/1 var(--fm);color:var(--faint)}
.ct-nav a{color:var(--dim);text-decoration:none}
.ct-nav a:hover{color:var(--ink)}
.ct-nav b{color:var(--ink);font-weight:600}
.ct-nav a[aria-current]{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.ct-nav span{margin-left:auto}

/* the sheet: 210 x 297 mm, clipped, so nothing can ever spill onto a second page */
.ct-page{position:relative;flex:none;width:210mm;height:297mm;overflow:hidden;background:var(--desk-a);
  box-shadow:0 30px 80px rgba(0,0,0,.6)}
@media print{
  html,.ct-body{background:none;padding:0;display:block;min-height:0}
  .ct-nav{display:none}
  .ct-page{box-shadow:none}
}

/* the request's send reloads the sheet with ?hold (request.js, 0659): its first paint already hides the panes,
   as anim_20.css' .ct-in left them, until their steps start (ctPlay drops the class) */
.ct-hold :is(.o12-pane,.o12-status)>*{visibility:hidden}

/* the desk: the shell's stripes, hard-edged for print. --da angle, --ds stripe, --do darkness, --dc the
   stripe's own colour (an option's page edge: 04 light) */
.ct-desk{background:repeating-linear-gradient(var(--da,135deg),
    transparent 0 var(--ds,16px),var(--dc,rgba(0,0,0,var(--do,.12))) var(--ds,16px) calc(var(--ds,16px) * 2)) var(--desk-a)}

/* the window, the titlebar, the three dots, the wordmark (lockup 65) */
.ce-win{position:absolute;inset:var(--in,40px);display:flex;flex-direction:column;overflow:hidden;
  background:var(--canvas);border:1px solid rgba(0,0,0,.55);border-radius:var(--r);
  box-shadow:0 28px 64px rgba(46,20,0,.5),0 10px 24px rgba(46,20,0,.4)}
.ct-bar{flex:none;display:flex;align-items:center;gap:14px;height:50px;padding:0 16px;
  background:var(--s1);border-bottom:1px solid var(--hl1)}
.ct-dots{display:flex;gap:6px;flex:none}
.ct-dots i{width:10px;height:10px;border-radius:50%;background:rgb(36,36,36);border:1px solid var(--hl2)}
.ct-wm{display:inline-flex;align-items:baseline;white-space:nowrap;font:400 16px/1 var(--fl);color:var(--ink)}
.ct-wm .p{font-family:var(--fm);font-weight:500;color:var(--faint);margin-right:.1em}
.ct-wm .o{color:var(--acc)}
.ct-wm .c{font-family:var(--fm);font-weight:500;font-size:.84em;color:var(--faint)}
.ct-grow{flex:1}

/* the QR to the certificate's verify page: an inline SVG (qr.py) in currentColor, its quiet zone inside
   the box, so a box of --qr draws the code at about four fifths of it */
.ct-qr{display:block;flex:none;width:var(--qr,110px);height:var(--qr,110px);color:var(--ink)}

/* one green square per lesson, 08's graphic, for the options that borrow it (0500): --mk size, --mg gap;
   an option sets one --mk for every training, the rows wrap (0515) */
.ct-marks{display:flex;flex-wrap:wrap;gap:var(--mg,3px)}
.ct-marks i{flex:none;width:var(--mk,10px);height:var(--mk,10px);border-radius:2px;background:var(--sq-green)}

/* the instructor's line (_sig.html): the name in Nunito semibold over a thin rule, the role under it; never
   handwritten (Erik, 0500 round 3) */
.ct-sig{font:600 24px/1.1 var(--fd);letter-spacing:-.01em;color:var(--ink);white-space:nowrap}
.ct-sign{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left}
.ct-sign .ct-lab{white-space:nowrap}
.ct-sign .ct-sig{min-width:240px;padding-bottom:10px;border-bottom:1px solid var(--hl3)}
.ct-lab{display:block;font:500 9.5px/1 var(--fm);letter-spacing:.2em;text-transform:uppercase;color:var(--faint)}
.ct-mono{font-family:var(--fm)}

/* ---------- the bar over the verify page's sheet (0507), never printed. The button wears the account page's
   look (accounts.css .ac-btn), copied onto this page, which loads no site stylesheet. A member's own
   certificate is a page in the site window since 0590 round 4 (issued.html, request.css). ---------- */
@media screen{.ct-issue{padding-top:96px}}
.ct-ib{height:60px;gap:16px;padding:0 22px}
.ct-ib span{margin-left:0}
.ct-ib-btn{background:none;border:1px solid var(--hl3);border-radius:var(--rb);padding:10px 15px;cursor:pointer;
  font:600 11px/1 var(--fm);letter-spacing:.08em;text-transform:uppercase;color:var(--ink);transition:border-color .16s}
.ct-ib-btn:hover{border-color:var(--acc)}
.ct-ib-btn:focus-visible{outline:1px solid var(--acc);outline-offset:2px}
.ct-ib-meta{font:500 12px/1 var(--fm);color:var(--dim)}
.ct-ib-meta:first-of-type{margin-left:auto}

/* the verify page (0507): a green square and Valid, then who, what and when, the code, the way home */
.ct-vb-ok{display:inline-flex;align-items:center;gap:8px;font:700 12px/1 var(--fm);letter-spacing:.14em;text-transform:uppercase;color:var(--green)}
.ct-vb-ok::before{content:"";width:12px;height:12px;border-radius:3px;background:var(--sq-green)}
.ct-vb-t{font:500 13.5px/1.35 var(--fd);color:var(--dim)}
.ct-vb-t b{color:var(--ink);font-weight:800}
.ct-vb .ct-ib-meta{margin-left:auto}
.ct-vb a.ct-ib-btn{text-decoration:none}
/* a code nobody was issued: one box on the canvas */
.ct-miss{justify-content:center;background:var(--canvas)}
.ct-miss-box{width:min(520px,calc(100% - 32px));display:flex;flex-direction:column;align-items:flex-start;gap:16px;
  padding:34px;background:var(--s1);border:1px solid var(--hl2);border-radius:var(--r)}
.ct-miss-box h1{font:800 var(--h1)/1 var(--fd);letter-spacing:-.02em}
.ct-miss-box p:not(.ct-lab){color:var(--dim);line-height:1.5}
.ct-miss-box b{color:var(--ink)}
.ct-miss-box a{text-decoration:none}

/* under the sheet's own width the sheet shrinks with the screen; print always gets true A4 */
@media screen and (max-width:900px){
  .ct-ib{height:auto;flex-wrap:wrap;padding:10px 16px;gap:10px}
  .ct-vb .ct-ib-meta{margin-left:0}
  .ct-issue{padding-top:120px}
  .ct-issue .ct-page{zoom:.45}
}
