/* 🎓 CERTIFICATE: looks like a certificate on screen, and prints on its own. */
.certificate {
  margin: 12px auto;
  max-width: 44rem;
}

.certificate-frame {
  padding: 26px 22px;
  border: 3px double var(--c-gold);
  border-radius: 10px;
  background: var(--c-grey-050505);
  text-align: center;
}

.certificate-logo {
  width: 150px;
  max-width: 50%;
  height: auto;
}

.certificate-kicker {
  margin-top: 8px;
  color: var(--c-grey-aaa);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.certificate-title {
  margin: 6px 0 14px;
  color: var(--c-gold);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.certificate-awarded {
  margin: 0;
  font-size: 0.8rem;
}

.certificate-name {
  margin: 6px 0 12px;
  font-size: 2rem;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.certificate-rank {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.certificate-level {
  color: var(--c-grey-aaa);
  font-size: 0.8rem;
}

.certificate-facts {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.8;
}

.certificate-stickers {
  margin-bottom: 14px;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
}

.certificate-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.certificate-footer > div {
  flex: 1 1 12rem;
}

.certificate-line {
  border-top: 1px solid var(--c-grey-444);
}

.certificate-label {
  margin-top: 4px;
  color: var(--c-grey-aaa);
  font-size: 0.68rem;
}

@media print {
  /* Only the certificate goes on the paper. */
  body * {
    visibility: hidden;
  }

  #certificate,
  #certificate * {
    visibility: visible;
  }

  #certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }

  .certificate-frame {
    border-color: #333333;
    background: #ffffff;
    color: #000000;
  }

  .certificate-title,
  .certificate-name {
    color: #000000;
  }

  .certificate-kicker,
  .certificate-level,
  .certificate-label {
    color: #444444;
  }

  .no-print,
  #footer,
  #side-nav,
  #stats-panel {
    display: none !important;
  }
}
