/* Cadmium certificate of readiness: A4 landscape, prints cleanly, same look on screen and paper */
.cc { --cc-ink: #1d1026; --cc-navy: #241433; --cc-gold: #c9962e; --cc-gold2: #e7c36f; --cc-coral: #de5a38; --cc-mute: #6d6273; --cc-line: #e7dccd;
  position: relative; width: min(1000px, 100%); aspect-ratio: 297 / 210; margin: 0 auto; overflow: hidden; container-type: inline-size;
  background: #fffaf2; color: var(--cc-ink); border-radius: 14px; box-shadow: 0 40px 90px -40px rgb(29 16 38 / .55);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.cc * { box-sizing: border-box; }
.cc__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cc__band { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: linear-gradient(170deg, #3a1d47 0%, #241433 55%, #160b20 100%); }
.cc__band::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: linear-gradient(180deg, var(--cc-gold2), var(--cc-gold), var(--cc-gold2)); }
.cc__frame { position: absolute; inset: 2.2cqw 2.2cqw 2.2cqw calc(25% + 2.2cqw); border: 1px solid var(--cc-line); border-radius: 6px; pointer-events: none; }
.cc__side { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; padding: 4.4cqw 3cqw; display: flex; flex-direction: column; justify-content: space-between; color: #f6ecdf; }
.cc__brand { display: flex; align-items: center; gap: 1.1cqw; font-weight: 600; font-size: 2.1cqw; letter-spacing: .01em; }
.cc__brand img { width: 2.8cqw; height: 2.8cqw; }
.cc__seal { width: 15cqw; height: 15cqw; align-self: center; }
.cc__sidefoot { font-size: 1.05cqw; line-height: 1.55; color: rgb(246 236 223 / .72); }
.cc__sidefoot b { display: block; color: var(--cc-gold2); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .95cqw; margin-bottom: .4cqw; }
.cc__main { position: absolute; top: 0; bottom: 0; left: 25%; right: 0; padding: 5.2cqw 6cqw 4.6cqw 6.2cqw; display: flex; flex-direction: column; }
.cc__kicker { font-size: 1.15cqw; letter-spacing: .26em; text-transform: uppercase; color: var(--cc-gold); font-weight: 600; }
.cc__h { margin: .8cqw 0 0; font-size: 3.6cqw; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--cc-navy); }
.cc__lead { margin: 3.4cqw 0 0; font-size: 1.45cqw; color: var(--cc-mute); }
.cc__name { margin: .6cqw 0 0; font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 6.4cqw; line-height: 1.05; color: var(--cc-ink); overflow-wrap: anywhere; }
.cc__name.is-long { font-size: 5cqw; }
.cc__rule { height: 2px; width: 100%; margin: 1.6cqw 0 0; background: linear-gradient(90deg, var(--cc-gold), var(--cc-gold2) 40%, transparent); }
.cc__body { margin: 1.8cqw 0 0; font-size: 1.55cqw; line-height: 1.55; color: #3c3043; max-width: 52cqw; }
.cc__body b { color: var(--cc-ink); font-weight: 600; }
.cc__meta { margin-top: auto; display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 2cqw; align-items: end; }
.cc__meta span { display: block; font-size: .95cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-mute); margin-bottom: .5cqw; }
.cc__meta b { display: block; font-size: 1.45cqw; font-weight: 600; color: var(--cc-ink); overflow-wrap: anywhere; }
.cc__sig { font-family: "Instrument Serif", Georgia, serif !important; font-style: italic; font-weight: 400 !important; font-size: 1.9cqw !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--cc-line); padding-bottom: .3cqw; }
.cc__code { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .04em; color: var(--cc-navy) !important; }
.cc__check { margin-top: 1.6cqw; font-size: 1.05cqw; color: var(--cc-mute); }
.cc__check b { color: var(--cc-navy); font-weight: 600; }
.cc.is-void::after { content: 'WITHDRAWN'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 11cqw; letter-spacing: .06em; color: rgb(190 32 44 / .16); transform: rotate(-14deg); pointer-events: none; }

/* the window that shows a freshly issued certificate */
.cc-dlg { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 24px; background: rgb(12 6 16 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: auto; }
.cc-dlg__in { width: min(1040px, 100%); display: grid; gap: 16px; }
.cc-dlg__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; color: #f6ecdf; font: 500 14px/1.4 "Geist", system-ui, sans-serif; }
.cc-dlg__bar p { margin: 0; }
.cc-dlg__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-dlg__btns button, .cc-dlg__btns a { font: 600 14px/1 "Geist", system-ui, sans-serif; padding: 12px 18px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; text-decoration: none; }
.cc-dlg__btns .is-main { background: #f5b841; border-color: #f5b841; color: #1d1026; }

@media print {
  @page { size: A4 landscape; margin: 0; }
  body.cc-printing > *:not(.cc-dlg) { display: none !important; }
  body.cc-printing .cc-dlg { position: static; padding: 0; background: none; backdrop-filter: none; }
  body.cc-printing .cc-dlg__bar { display: none !important; }
  body.cc-printing .cc-dlg__in { width: 297mm; }
  .cc { width: 297mm; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.vf--light .vf__out.is-ok { color: #8fe0b0 !important; font-size: 14px; }
.vf--light .vf__out.is-bad { color: #ffb4a8 !important; font-size: 14px; }
.pg-stage--cert .cc { box-shadow: 0 30px 60px -30px rgb(29 16 38 / .55); }
