/* The certificates page (ticket 11): two cards, each with a name field, a preview and a download. */

.certificates h1 {
  margin-bottom: 0.35rem;
}

.cert-lead {
  margin-bottom: 0.6rem;
}

.cert-privacy {
  margin: 0 0 0.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  background: #f1e9dc;
  color: var(--cocoa);
  font-size: 0.9rem;
  line-height: 1.7;
}

.cert-card {
  margin-top: 1rem;
}

.cert-about {
  margin: 0;
}

.cert-card .form label {
  margin-top: 0.85rem;
}

.cert-result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stone);
  scroll-margin-top: 5rem; /* clear of the sticky header */
}

.cert-result:focus {
  outline: none;
}

/* The preview is the certificate itself, drawn small: an A4 sheet. */
.cert-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 620 / 877;
  border: 1px solid var(--stone);
  border-radius: 0.35rem;
  background: var(--ivory);
  box-shadow: 0 0.5rem 1.25rem rgba(42, 35, 33, 0.1);
}
