.cert-intro { padding: 60px 0 48px; }
.cert-eyebrow { color: var(--red-dark); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cert-intro h1 { margin: 0 0 20px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cert-intro .lead { max-width: 58rem; margin-bottom: 0; }
.cert-documents { padding: 48px 0 64px; }
.cert-section-head { margin-bottom: 28px; }
.cert-section-head p { color: var(--muted); margin: 0; }
.cert-grid { align-items: stretch; gap: 24px; }
.cert-card { display: flex; flex-direction: column; padding: 26px; min-width: 0; }
.cert-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.cert-icon { display: inline-flex; flex: 0 0 44px; padding: 10px; background: #fff0f1; color: var(--red-dark); }
.cert-icon svg { width: 24px; height: 24px; }
.cert-status { padding: 4px 8px; font-size: 11px; line-height: 1.4; font-weight: 800; color: #555; background: #f1f1f1; text-align: center; }
.cert-status--available { background: #edf7ef; color: #236139; }
.cert-card p.cert-card__scope { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--red-dark); margin: 0 0 10px; }
.cert-card h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 16px; }
.cert-card p.cert-card__description { font-size: 16px; line-height: 1.65; margin-bottom: 28px; }
.cert-card__download { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.cert-card p.cert-meta { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.cert-download { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-align: center; font-family: inherit; font-size: 14px; line-height: 1.5; }
.cert-download svg { width: 19px; height: 19px; flex: 0 0 19px; }
.cert-download--pending, .cert-download--pending:hover { background: #ededed; color: #5a5a5a !important; cursor: default; }
.cert-download:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
@media (max-width: 640px) {
  .cert-intro { padding: 36px 0; }
  .cert-documents { padding: 36px 0 48px; }
  .cert-card { padding: 24px; }
}
.cert-reader-section { padding: 36px 0 60px; background: var(--soft); }
.cert-back { display: inline-block; font-size: 15px; font-weight: 800; margin-bottom: 18px; }
.cert-reader-title { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 52rem; margin: 0 0 24px; }
.cert-reader { background: #dedede; border: 1px solid #ccc; }
.cert-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #ccc; }
.cert-controls { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.cert-controls button { min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid #ccc; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.cert-controls button:hover:not(:disabled) { border-color: var(--red-dark); color: var(--red-dark); }
.cert-controls button:disabled { opacity: .4; cursor: default; }
.cert-controls button:focus-visible, .cert-stage:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 2px; }
.cert-stage { overflow: auto; padding: 16px; max-height: 78vh; min-height: 180px; }
.cert-stage canvas { display: block; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px #0002; user-select: none; -webkit-user-select: none; }
.cert-stage canvas[hidden] { display: none; }
.cert-reader-status { padding: 20px; text-align: center; margin: 0; }
.cert-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cert-print-message { display: none; }
@media (max-width: 640px) {
  .cert-toolbar { justify-content: center; padding: 10px; }
  .cert-controls { gap: 8px; }
  .cert-stage { max-height: 65vh; }
}
@media print {
  .cert-reader { display: none !important; }
  .cert-print-message { display: block; }
}
