/* The certificate, "engraved" design (2026-11-22). Letter landscape (11 x 8.5). Every size is in container units,
   so the same certificate is exact on a phone, on screen and in the PDF. Ornament (border rope, watermark, seal
   rosette) is guilloche line work generated by scripts/build_ornaments.mjs. The markup lives in two places that must
   match: src/verify.js certificateHtml() (the real certificate) and site/js/cert.js (landing sample, name preview). */
.cert-wrap { container-type: inline-size; width: 100%; }
.cert { position: relative; width: 100%; aspect-ratio: 11 / 8.5; background: #fbfaf4; color: #1a3c1a; overflow: hidden;
  box-shadow: 0 1px 2px rgba(26, 60, 26, .08), 0 24px 60px rgba(26, 60, 26, .16); font-family: 'Inter', sans-serif; }
.cert p { margin: 0; }
.cert-wm { position: absolute; width: 74cqw; left: 13cqw; top: 1.5cqw; opacity: .055; pointer-events: none; }

/* Frame: outer rule, guilloche rope band, inner hairline, corner blocks */
.cert-fr { position: absolute; inset: 2.2cqw; border: .17cqw solid #1a3c1a; }
.cert-band { position: absolute; display: block; background: #eef1e8; outline: .07cqw solid rgba(26, 60, 26, .5); outline-offset: 0; max-width: none; }
.cert-band.t, .cert-band.b { left: 3.9cqw; width: 92.2cqw; height: 1.5cqw; }
.cert-band.t { top: 2.75cqw; } .cert-band.b { bottom: 2.75cqw; }
.cert-band.l, .cert-band.r { top: 3.9cqw; width: 1.5cqw; height: 69.47cqw; }
.cert-band.l { left: 2.75cqw; } .cert-band.r { right: 2.75cqw; }
.cert-fr2 { position: absolute; inset: 4.75cqw; border: .08cqw solid rgba(26, 60, 26, .5); }
.cert-corner { position: absolute; width: 2.2cqw; height: 2.2cqw; background: #1a3c1a; }
.cert-corner::after { content: ''; position: absolute; inset: .62cqw; border: .1cqw solid #f8f7f2; transform: rotate(45deg); }
.cert-corner.tl { left: 2.4cqw; top: 2.4cqw; } .cert-corner.tr { right: 2.4cqw; top: 2.4cqw; }
.cert-corner.bl { left: 2.4cqw; bottom: 2.4cqw; } .cert-corner.br { right: 2.4cqw; bottom: 2.4cqw; }

/* Content */
.cert-body { position: absolute; inset: 6.6cqw 8.2cqw 5.4cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert-mark { width: 4.8cqw; height: 4.8cqw; }
.cert-org { margin-top: .9cqw !important; font-size: 1.12cqw; letter-spacing: .5em; padding-left: .5em; font-weight: 600; text-transform: uppercase; color: #2d5a2d; }
.cert-title { margin: 2cqw 0 0; font-size: 4.7cqw; font-weight: 300; letter-spacing: .26em; padding-left: .26em; text-transform: uppercase; line-height: 1; color: #1a3c1a; }
.cert-sub { margin-top: 1cqw !important; font-size: 1.3cqw; letter-spacing: .44em; padding-left: .44em; text-transform: uppercase; color: rgba(26, 60, 26, .7); }
.cert-lead { margin-top: auto !important; font-size: 1.4cqw; color: rgba(26, 60, 26, .72); }
.cert-name { margin-top: .5cqw !important; font-size: 6.4cqw; font-weight: 300; letter-spacing: -.02em; line-height: 1.08; max-width: 84cqw; overflow-wrap: anywhere; }
.cert-name.long { font-size: 5cqw; }
.cert-name.xlong { font-size: 3.9cqw; }
.cert-rule { display: flex; align-items: center; gap: 1cqw; width: 52cqw; margin-top: 1.1cqw; }
.cert-rule i { flex: 1; height: .09cqw; background: rgba(26, 60, 26, .42); }
.cert-rule b { width: .75cqw; height: .75cqw; transform: rotate(45deg); background: #2d5a2d; }
.cert-text { margin-top: 1.4cqw !important; font-size: 1.4cqw; line-height: 1.6; color: rgba(26, 60, 26, .8); }
.cert-credential { margin-top: 1.1cqw !important; font-size: 1.85cqw; font-weight: 600; letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; color: #2d5a2d; }
.cert-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr 15.5cqw 1fr; align-items: end; gap: 2.4cqw; }
.cert-col { text-align: center; }
.cert-val { font-size: 1.45cqw; font-weight: 600; padding-bottom: .6cqw; border-bottom: .09cqw solid rgba(26, 60, 26, .5); min-height: 1.45em; }
.cert-lab { margin-top: .55cqw !important; font-size: .92cqw; letter-spacing: .2em; text-transform: uppercase; color: rgba(26, 60, 26, .65); }
.cert-qrrow { display: flex; align-items: center; justify-content: center; gap: 1.1cqw; padding-bottom: .6cqw; border-bottom: .09cqw solid rgba(26, 60, 26, .5); }
.cert-qr { width: 4.6cqw; height: 4.6cqw; flex: none; }
.cert-qr svg { width: 100%; height: 100%; display: block; }
.cert-id { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.4cqw; font-weight: 600; letter-spacing: .08em; }

/* The seal: guilloche rosette, a forest disc with the ring text and the G-mark */
.cert-seal { position: relative; width: 15.5cqw; height: 15.5cqw; margin-bottom: -1.2cqw; }
.cert-seal .ros { position: absolute; inset: 0; width: 100%; height: 100%; }
.cert-seal .disc { position: absolute; inset: 23.5%; border-radius: 50%; background: #1a3c1a; box-shadow: 0 0 0 .28cqw #fbfaf4, 0 0 0 .45cqw #2d5a2d; display: grid; place-items: center; }
.cert-seal .disc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cert-seal .disc img { width: 42%; height: 42%; }
.cert-seal text { fill: #f8f7f2; font: 600 13px 'Inter', sans-serif; }

/* Smaller copies: the landing sample and the name preview drop the shadow weight */
.cert-wrap.mini .cert { box-shadow: 0 1px 2px rgba(26, 60, 26, .06), 0 10px 30px rgba(26, 60, 26, .1); }

@media print {
  @page { size: 11in 8.5in; margin: 0; }
  html, body { background: #fbfaf4 !important; margin: 0; }
  body > *:not(main) { display: none !important; }
  main > *:not(.cert-wrap) { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .cert-wrap { width: 11in; height: 8.5in; }
  .cert { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
