/* The certificate page (/verify/<number>): the page around the certificate (its status, the holder's next
   steps, the actions and the details). The document itself is styled in cert-doc.css. Loaded only by
   verify.html, so its print rules (one landscape page) never touch another page. */

.cert-page { padding-top: 26px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.cert-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.cert-status.active { border-color: rgba(15,122,74,.35); }
.cert-status.expired, .cert-status.revoked { border-color: rgba(205,0,25,.4); background: var(--acc-soft); }
.cert-status .faint { margin-left: auto; font-size: 12.5px; }

/* The holder's next steps, shown when they arrive from their email (#yours). */
.cert-yours { display: flex; flex-direction: column; gap: 22px; padding: 28px 30px 30px; border: 1px solid var(--line2); border-radius: var(--r); }
.cert-yours h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.04; }
.cert-yours .muted { font-size: 14.5px; max-width: 68ch; margin: 0; }
.yours-steps { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.yours-steps li { display: flex; flex-direction: column; gap: 7px; padding-left: 28px; border-left: 1px solid var(--line); }
.yours-steps li:first-child { padding-left: 0; border-left: 0; }
.yours-steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.yours-steps.four li { padding-left: 22px; }
.yours-steps.four li:first-child { padding-left: 0; }
.yours-steps .n { font: 600 12px/1 var(--mono); color: var(--acc); letter-spacing: .04em; }
.yours-steps b { font-size: 15.5px; font-weight: 600; }
.yours-steps p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2); flex: 1; }
.yours-steps .row { gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
@media (max-width: 1000px) {
  .yours-steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .yours-steps.four li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .yours-steps.four li:nth-child(even) { padding-left: 28px; }
}
@media (max-width: 860px) {
  .cert-yours { padding: 22px 20px 24px; }
  .yours-steps, .yours-steps.four { grid-template-columns: 1fr; gap: 18px; }
  .yours-steps li, .yours-steps.four li:nth-child(n) { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .yours-steps li:first-child, .yours-steps.four li:first-child { padding-top: 0; border-top: 0; }
}
.wallet-box { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.wallet-box .row { gap: 8px; margin-top: 2px; }

.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.cert-about { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.cert-about h2 { font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cert-about h2 .code { font: 600 13px/1 var(--mono); letter-spacing: .14em; color: var(--acc); border: 1px solid var(--acc); border-radius: 4px; padding: 6px 8px 5px 10px; }
.cert-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 24px; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.cert-meta dt { font: 700 10.5px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); margin-bottom: 5px; }
.cert-meta dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.badge-box { display: flex; align-items: center; gap: 16px; }
canvas.badge { width: 150px; height: 150px; flex-shrink: 0; }
.cert-skills { display: flex; flex-direction: column; gap: 9px; }
.cert-skills .skill { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(60px, 1fr) 42px; gap: 12px; align-items: center; font-size: 13.5px; }
.cert-skills .skill.plain { grid-template-columns: 1fr; padding-top: 8px; border-top: 1px solid var(--line); }
.cert-skills .bar { height: 6px; background: var(--well); border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.cert-skills .bar i { display: block; height: 100%; background: var(--ink); }
@media (max-width: 820px) { .cert-about { grid-template-columns: 1fr; gap: 28px; } .cert-status .faint { margin-left: 0; } }

/* Print: the document alone, on one landscape page. */
@media print {
  @page { size: 11in 8.5in; margin: 0; }
  html, body.verify { background: #fff !important; margin: 0; padding: 0; }
  body.verify .no-print { display: none !important; }
  .cert-page { padding: 0 !important; margin: 0 !important; max-width: none !important; display: block; }
  .cert-wrap { width: 11in; max-width: none; margin: 0; }
  .cert-doc { height: 8.5in; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
