.certificates-tool .front-tools-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.certificate-page { min-height: 500px; padding: 22px; break-inside: avoid; page-break-inside: avoid; }
.certificate-frame { display: flex; min-height: 455px; padding: 35px; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: Georgia, "Liberation Serif", serif; overflow-wrap: anywhere; }
.certificate-type { text-transform: uppercase; letter-spacing: .12em; }
.certificate-heading { font-size: clamp(26px, 4vw, 42px); }
.certificate-recipient { margin: 20px 0 12px; font-size: clamp(24px, 4vw, 40px); font-weight: 700; }
.certificate-nomination { font-size: 20px; }
.certificate-body { max-width: 700px; font-size: 18px; line-height: 1.5; white-space: pre-wrap; }
.certificate-footer { display: flex; width: 100%; justify-content: space-between; gap: 16px; margin-top: 38px; font-size: 14px; }
.certificate-stamp { min-width: 55px; }
.certificate-preview-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 18px; }
.certificate-page:not(.is-preview) { display: none; }
.certificate-dense .certificate-heading { font-size: clamp(22px, 3vw, 32px); }
.certificate-dense .certificate-recipient { margin: 12px 0 8px; font-size: clamp(20px, 3vw, 30px); }
.certificate-dense .certificate-nomination { font-size: 16px; }
.certificate-dense .certificate-body { font-size: 15px; line-height: 1.3; }
.theme-classic { border: 8px double #ad8c45; color: #3e3321; background: #fffdf7; }
.theme-blue { border: 4px solid #3e7093; color: #23445a; background: linear-gradient(135deg, #f4f9fc, #fff); }
.theme-green { border: 5px solid #54826b; color: #2e5540; background: #f8fcf8; }
.theme-minimal { border: 1px solid #89949b; color: #303a40; background: #fff; }
.certificates-tool #certificate-error { color: #a94442; }
@media (max-width: 767px) { .certificates-tool .front-tools-options { grid-template-columns: 1fr; } .certificate-frame { padding: 16px; } }
@media print { body.certificate-printing > :not(#certificate-result) { display: none !important; } body.certificate-printing > #certificate-result { display: block !important; position: static !important; width: 100%; margin: 0; } #certificate-result > h2, #certificate-result #certificate-page-warning, #certificate-result .certificate-preview-controls, #certificate-result .front-tools-actions { display: none !important; } .certificate-page, .certificate-page:not(.is-preview) { display: block !important; box-sizing: border-box; min-height: 0; padding: 0; margin: 0; break-inside: avoid; } .orientation-landscape .certificate-page { height: 170mm; } .orientation-portrait .certificate-page { height: 257mm; } .certificate-frame { box-sizing: border-box; height: 100%; min-height: 0; padding: 24px; } .certificate-page:not(:last-child) { break-after: page; } .certificate-page:last-child { break-after: auto; } }
