:root { color-scheme: light; color: #15382b; background: #eef5f0; font-family: system-ui, sans-serif; line-height: 1.55; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #12613f; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #0b6f84; outline-offset: 3px; }
.credential-shell { max-width: 900px; margin: auto; padding: 22px 20px 58px; }
.credential-shell nav { margin-bottom: 20px; }
.credential-view .credential-shell { max-width: 1100px; }
.credential-certificate {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.65em;
  padding: 2.65em;
  background: #f9f7ee;
  border: 2px solid #184537;
  outline: 1px solid #a6bbad;
  outline-offset: -9px;
  box-shadow: 0 13px 46px #143d2520;
}
.credential-paper {
  min-width: 0;
  position: relative;
  isolation: isolate;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.credential-award {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: .75em;
}
.credential-paper::before {
  content: "";
  position: absolute;
  inset: 14% 0 10% 5%;
  z-index: -1;
  background: url("/assets/academy/credential-watermark.png") 64% 52% / 63% 70% no-repeat;
  transform: rotate(-.77deg);
  pointer-events: none;
}
.credential-brand {
  display: flex;
  align-items: center;
  gap: .65em;
  position: relative;
  padding-bottom: 1.15em;
  border-bottom: 1px solid #c9d8cc;
  color: #124132;
}
.credential-brand::after, .credential-verification dl::before {
  content: "";
  position: absolute;
  width: 3em;
  height: 2px;
  background: #b5673c;
  bottom: -1px;
  left: 0;
}
.credential-brand strong { display: block; font-size: 1.1em; }
.credential-brand span, .credential-certificate dt, .credential-seal header p, .credential-verification h3 {
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.credential-certificate h1, .credential-name, .credential-certificate h2, .credential-seal header strong {
  font-family: Georgia, serif;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.credential-certificate h1 { font-size: clamp(1.9rem, 3.7vw, 3.1rem); margin: .6em 0 .52em; color: #122f26; }
.credential-award p, .credential-paper > p { margin: .55em 0; }
.credential-name { display: block; color: #0f573f; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 500; margin: .18em 0 .36em; }
.credential-certificate h2 { font-size: clamp(1.55rem, 3.15vw, 2.55rem); margin: .2em 0; }
.credential-paper .credential-course { font-weight: 650; margin: .55em 0 .9em; }
.credential-certificate dl, .credential-certificate dd { margin: 0; overflow-wrap: anywhere; }
.credential-certificate .credential-issuer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: .85em 1.2em;
  margin-top: .9em;
  padding-top: .35em;
  font-weight: 650;
}
.credential-seal { min-width: 0; background: #10392d; color: #f6f5eb; }
.credential-seal header, .credential-verification { padding: .95em 1.15em; }
.credential-seal header p, .credential-verification h3 { color: #b9dbca; margin: 0 0 .4em; }
.credential-seal header strong { font-size: 1.24em; }
.credential-seal img { display: block; width: 100%; height: auto; aspect-ratio: 211 / 261; object-fit: cover; object-position: 51% 55%; }
.credential-verification a { color: #f6f5eb; font-weight: 700; }
.credential-verification dl { position: relative; margin-top: 1em; padding-top: .8em; border-top: 1px solid #5e8271; }
.credential-verification dl::before { background: #d38c5d; top: -1px; bottom: auto; }
.credential-verification dd, #credential-address { font-size: .78em; overflow-wrap: anywhere; }
#credential-address { margin-bottom: 0; }
#credential-fingerprint-value { display: block; margin-top: .3em; line-height: 1.45; word-break: break-all; }
.credential-actions { margin-block: 24px; max-width: 750px; }
.credential-actions h2 { margin-bottom: .25em; }
.credential-action-links { display: flex; flex-wrap: wrap; gap: 8px; }
.credential-button, button { display: inline-block; font: inherit; color: white; background: #12613f; padding: 8px 13px; border: 1px solid #12613f; border-radius: 7px; text-decoration: none; cursor: pointer; }
.credential-copy-fields { display: grid; gap: .55em; }
.credential-copy-fields > div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) auto; gap: .5em; align-items: center; }
.credential-copy-fields input { width: 100%; box-sizing: border-box; padding: .5em; font: inherit; color: inherit; background: #fff; border: 1px solid #b7c9bd; border-radius: 5px; }
.credential-copy-fields button { color: #12613f; background: #fff; }
#credential-copy-status { min-height: 1.55em; }
.fields { display: grid; gap: 8px; padding: 20px; background: white; border: 1px solid #b7c9bd; border-radius: 10px; }
.fields input:not([type=checkbox]) { max-width: 360px; font: inherit; padding: 6px; }
.fields button { justify-self: start; }
@media screen and (max-width: 720px) {
  .credential-certificate { grid-template-columns: minmax(0, 1fr); padding: 1.5em; }
  .credential-seal img { aspect-ratio: 16 / 10; }
}
@media screen and (max-width: 440px) {
  .credential-certificate .credential-issuer { grid-template-columns: minmax(0, 1fr); }
  .credential-copy-fields > div { grid-template-columns: minmax(0, 1fr) auto; }
  .credential-copy-fields label { grid-column: 1 / -1; }
}
@page credential { size: letter landscape; margin: .35in; }
@media print {
  :root { background: #fff; }
  .credential-view { page: credential; }
  .credential-view .credential-shell { max-width: none; padding: 0; }
  .credential-view nav, .credential-actions { display: none !important; }
  .credential-certificate {
    padding: 2em;
    font-size: 11pt;
    box-shadow: none;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .credential-certificate h1 { font-size: 28pt; }
  .credential-name { font-size: 34pt; }
  .credential-certificate h2 { font-size: 24pt; }
  .credential-seal img { height: 2.35in; }
}

#credential-private-code { overflow-wrap: anywhere; }
.credential-private-wallet {
  max-width: 900px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1.5px solid #184537;
  border-radius: 12px;
  box-shadow: 0 8px 26px #143d2514;
}
.credential-private-wallet-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.credential-private-qr {
  margin: 0;
  padding: 12px;
  background: #f9f7ee;
  border: 1px solid #c9d8cc;
  border-radius: 10px;
  text-align: center;
  font-size: .78em;
  font-weight: 700;
  color: #124132;
}
.credential-private-qr img {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 6px;
  background: #ffffff;
  border-radius: 6px;
}
.credential-private-wallet-copy h2 { margin-top: 0; font-size: 1.25rem; color: #122f26; }
.credential-private-wallet-copy p { margin: .45em 0 .75em; }
.credential-button-secondary { color: #12613f; background: #ffffff; border: 1px solid #12613f; }
.credential-private-note { font-size: .84em; color: #3d5c50; margin-bottom: 0 !important; }
#credential-private-status { min-height: 1.2em; font-size: .88em; font-weight: 600; color: #12613f; }
@media screen and (max-width: 640px) {
  .credential-private-wallet-grid { grid-template-columns: minmax(0, 1fr); }
  .credential-private-qr { justify-self: center; }
}
@media print { #credential-check-name, #credential-private-wallet { display: none !important; } }


.credential-resources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5em 1em;
  font-size: .87em;
  overflow-wrap: anywhere;
}
.credential-resource-links strong { display: block; }
@media screen and (max-width: 720px) {
  .credential-resources { margin-bottom: .5em; }
}
.credential-qr {
  margin: 0;
  text-align: center;
  font-size: .82em;
  font-weight: 700;
}
.credential-qr img {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto .1em;
}
@media print {
  .credential-certificate { padding: 1.6em; row-gap: 1.05em; }
  .credential-seal img { height: 1.88in; }
  .credential-verification dl { margin-top: .62em; padding-top: .5em; }
  .credential-award { padding-block: .25em; }
  .credential-qr { align-self: center; }
  .credential-qr img { width: .92in; height: .92in; margin: 0; }
}
