.weekly-certificate {
  margin: 18px 0;
  padding: clamp(18px, 5vw, 40px);
  border: 5px double #1472a8;
  border-radius: 18px;
  background: #f0f8ff;
  color: #092b63;
  text-align: center;
  overflow-wrap: anywhere;
}

.weekly-certificate .certificate-pupil {
  margin: 8px 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
}

.weekly-certificate .certificate-reason {
  white-space: pre-wrap;
}

@media print {
  body.weekly-certificate-view > main {
    display: block !important;
  }

  body.weekly-certificate-view > #print-passport,
  body.weekly-certificate-view > main > .page > :not(.weekly-certificate),
  .weekly-certificate-page > :not(.weekly-certificate) {
    display: none !important;
  }

  body.weekly-certificate-view > main > .page {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .weekly-certificate {
    break-inside: avoid;
    background: #fff;
  }
}
