.zha-certificate-sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  color: #07450b;
  font-family: Georgia, 'Times New Roman', serif;
  overflow: hidden;
  background: white;
  isolation: isolate;
}
.zha-certificate-artwork {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.zha-certificate-field {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
  padding: 0;
}
.zha-certificate-recipient {
  left: 11.2%;
  top: 45.45%;
  width: 77.6%;
  height: 3.75%;
  font-size: 3.15cqw;
}
.zha-certificate-course {
  left: 15.85%;
  top: 55.97%;
  width: 68.4%;
  height: 6.56%;
  border: 0.13cqw solid #14520d;
  border-radius: 5cqw;
  background: linear-gradient(90deg, #c9ff6c, #edffd1 21%, #e7ffbc 55%, #daff99);
  font-size: 2.75cqw;
  font-style: italic;
  white-space: normal;
  padding: 0.28cqw 1.3cqw;
  box-sizing: border-box;
}
.zha-certificate-code {
  left: 19.15%;
  top: 74.2%;
  width: 12.8%;
  height: 4.1%;
  font-size: 1.24cqw;
  white-space: normal;
  overflow-wrap: anywhere;
}
.zha-certificate-date {
  left: 19.15%;
  top: 79.85%;
  width: 12.8%;
  height: 4.1%;
  font-size: 1.42cqw;
}
.zha-certificate-signatory {
  left: 67.8%;
  top: 72.2%;
  width: 23.6%;
  height: 4.1%;
  font-size: 1.75cqw;
  white-space: normal;
}
.zha-certificate-draft {
  position: absolute;
  right: 3%;
  top: 3%;
  font-family: Calibri, Arial, sans-serif;
  font-size: 1.1cqw;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .5cqw .8cqw;
  border: 1px solid #183b38;
  background: rgba(255,255,255,.93);
  color: #183b38;
}
.certificate-print-page { margin: 0; min-height: 100vh; background: #f5f3ed; color: #183b38; font-family: Calibri, Arial, sans-serif; }
.certificate-print-header { max-width: 1280px; margin: 0 auto; padding: 26px 24px 14px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.certificate-print-header h1 { margin: 4px 0; font-size: 28px; }
.certificate-print-header p { margin: 0; }
.certificate-print-header a { color: inherit; }
.certificate-print-actions { display: flex; gap: 12px; align-items: center; }
.certificate-print-actions button { border: 1px solid #183b38; background: #183b38; color: white; padding: 12px 18px; cursor: pointer; border-radius: 3px; font: inherit; }
.certificate-print-actions button:disabled { opacity: .5; cursor: wait; }
.certificate-print-wrap { max-width: 1280px; margin: 0 auto; padding: 12px 24px 30px; }
.certificate-print-wrap .zha-certificate-sheet { box-shadow: 0 12px 35px rgba(24,59,56,.12); }
.certificate-print-status { padding: 16px; background: white; border-left: 3px solid #183b38; }
.certificate-print-note { margin: 18px 0; font-size: 15px; line-height: 1.5; }
.certificate-print-note a { color: inherit; }
.certificate-print-page [hidden] { display: none !important; }
@page { size: A4 landscape; margin: 10mm; }
@media print {
  .certificate-print-page { background: white; min-height: 0; }
  .certificate-print-header, .certificate-print-status, .certificate-print-note { display: none !important; }
  .certificate-print-wrap { padding: 0; margin: 0; max-width: none; }
  .certificate-print-wrap .zha-certificate-sheet { width: 277mm; max-width: 100%; margin: 0 auto; box-shadow: none; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .certificate-print-page:not(.certificate-ready) .certificate-print-wrap { display: none; }
}
