/* TechZyre Certificate — A4 landscape (297 × 210 mm), print-exact. No purple. */
.tzcert, .tzcert * { box-sizing: border-box; }
.tzcert {
	--navy: #0C1F1A; --blue: #C93D00; --sky: #FF4D00; --gold: #C99B3F; --gold-2: #f0cf6a; --ink: #14120E; --muted: #6E675C;
	width: 297mm; height: 210mm; position: relative; overflow: hidden;
	background: #fffdf7; color: var(--ink);
	font-family: "Manrope", Arial, sans-serif;
	-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.tzcert__frame { position: absolute; inset: 9mm; border: 1.4mm solid var(--navy); outline: .5mm solid var(--gold); outline-offset: -3.2mm; padding: 13mm 18mm 10mm; display: flex; flex-direction: column; }
.tzcert__frame::before { content: ""; position: absolute; inset: 4.6mm; border: .25mm solid rgba(201, 151, 28, .7); pointer-events: none; }
.tzcert__guilloche { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.tzcert__frame > *:not(.tzcert__guilloche):not(.tzcert__watermark):not([class*="corner"]) { position: relative; z-index: 2; }
.tzcert__corner { position: absolute; width: 22mm; height: 22mm; z-index: 1; border-color: var(--gold); border-style: solid; }
.tzcert__corner--tl { top: 6mm; left: 6mm; border-width: .9mm 0 0 .9mm; }
.tzcert__corner--tr { top: 6mm; right: 6mm; border-width: .9mm .9mm 0 0; }
.tzcert__corner--bl { bottom: 6mm; left: 6mm; border-width: 0 0 .9mm .9mm; }
.tzcert__corner--br { bottom: 6mm; right: 6mm; border-width: 0 .9mm .9mm 0; }
.tzcert__watermark { position: absolute; z-index: 1; left: 50%; top: 52%; width: 120mm; transform: translate(-50%, -50%); color: var(--navy); opacity: .03; }
.tzcert__watermark svg { width: 100%; height: auto; }

.tzcert__head { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; }
.tzcert__logo { display: flex; align-items: center; gap: 3mm; color: var(--navy); }
.tzcert__logo svg { width: 13mm; height: auto; }
.tzcert__logo span { font-size: 8.5mm; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tzcert__logo b { color: var(--navy); font-weight: 800; }
.tzcert__logo i { color: var(--blue); font-style: normal; }
.tzcert__academy { margin: 0; font-size: 3mm; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }

.tzcert__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 10mm; }
.tzcert__kicker { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 15mm; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1; color: var(--navy); }
.tzcert__title { margin: 1mm 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 7mm; font-style: italic; font-weight: 600; color: var(--gold); letter-spacing: .06em; }
.tzcert__title::before, .tzcert__title::after { content: ""; display: inline-block; width: 22mm; height: .3mm; margin: 0 4mm; vertical-align: middle; background: linear-gradient(90deg, transparent, var(--gold)); }
.tzcert__title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.tzcert__intro { margin: 6mm 0 1mm; font-size: 3.6mm; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tzcert__name { margin: 0; font-family: "Great Vibes", "Cormorant Garamond", cursive; font-size: 17mm; line-height: 1.15; color: var(--navy); padding: 0 12mm 1mm; border-bottom: .35mm solid rgba(201, 151, 28, .8); min-width: 150mm; }
.tzcert__guardian { margin: 1.8mm 0 0; font-size: 3.4mm; color: var(--muted); font-weight: 600; }
.tzcert__text { margin: 4.5mm 0 0; max-width: 205mm; font-size: 4mm; line-height: 1.6; color: var(--ink); }
.tzcert__text strong { color: var(--navy); font-weight: 800; }
.tzcert__grade { margin: 2.5mm 0 0; font-size: 3.6mm; color: var(--muted); }
.tzcert__grade strong { color: var(--blue); }

.tzcert__foot { display: grid; grid-template-columns: 1fr 34mm 1fr; align-items: end; gap: 8mm; }
.tzcert__sign { text-align: center; width: 72mm; }
.tzcert__sigwrap { height: 14mm; display: flex; align-items: flex-end; justify-content: center; border-bottom: .3mm solid var(--ink); }
.tzcert__sigscript { white-space: nowrap; font-family: "Great Vibes", cursive; font-size: 10mm; line-height: 1; color: var(--blue); transform: rotate(-4deg); padding-bottom: 1mm; }
.tzcert__sigimg { max-height: 14mm; max-width: 60mm; }
.tzcert__signame { margin: 1.6mm 0 0; font-size: 3.6mm; font-weight: 800; color: var(--navy); }
.tzcert__sigrole { margin: .4mm 0 0; font-size: 2.8mm; font-weight: 600; color: var(--muted); letter-spacing: .05em; }
.tzcert__seal { width: 34mm; height: 34mm; margin-bottom: -2mm; filter: drop-shadow(0 .6mm .8mm rgba(0,0,0,.18)); }
.tzcert__seal svg { width: 100%; height: 100%; }
.tzcert__verify { display: flex; justify-content: flex-end; align-items: flex-end; gap: 3.5mm; }
.tzcert__qr { width: 21mm; height: 21mm; padding: 1mm; background: #fff; border: .3mm solid rgba(24, 26, 92, .3); }
.tzcert__qr svg, .tzcert__qr img { width: 100% !important; height: 100% !important; display: block; }
.tzcert__ids p { margin: 0 0 .9mm; font-size: 2.55mm; line-height: 1.3; color: var(--muted); }
.tzcert__ids span { display: block; font-size: 2.1mm; letter-spacing: .12em; text-transform: uppercase; }
.tzcert__ids b { color: var(--navy); font-size: 3mm; font-weight: 800; letter-spacing: .03em; }
.tzcert__url { font-size: 2.3mm !important; color: var(--blue) !important; font-weight: 700; }

.tzcert.is-revoked .tzcert__body, .tzcert.is-revoked .tzcert__foot { opacity: .35; }
.tzcert__revoked { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); padding: 3mm 12mm; border: 1.2mm solid #c62828; color: #c62828; font-size: 18mm; font-weight: 800; letter-spacing: .1em; }

/* Standalone print page */
body.tzcert-print { margin: 0; background: #e9ecf5; font-family: "Manrope", Arial, sans-serif; }
.tzcert-toolbar { position: sticky; top: 0; z-index: 10; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 20px; background: #05071a; color: #a3abd1; font-size: 13px; }
.tzcert-toolbar button { padding: 10px 18px; border: 0; border-radius: 999px; background: #FF4D00; color: #F6F2EA; border-radius: 2px; font: 700 14px "Manrope", Arial, sans-serif; cursor: pointer; }
.tzcert-toolbar a { color: #FF4D00; font-weight: 700; text-decoration: none; }
.tzcert-sheet { padding: 24px; overflow: auto; }
.tzcert-sheet .tzcert { margin: 0 auto; box-shadow: 0 20px 60px -20px rgba(5, 7, 26, .45); }

@page { size: A4 landscape; margin: 0; }
@media print {
	html, body.tzcert-print { background: #fff !important; margin: 0 !important; padding: 0 !important; width: 297mm; height: 210mm; }
	.tzcert-toolbar { display: none !important; }
	.tzcert-sheet { padding: 0 !important; overflow: visible; }
	.tzcert-sheet .tzcert { box-shadow: none !important; margin: 0 !important; page-break-after: avoid; break-after: avoid; }
}

body.tzcert-print.is-embed { background: #fffdf7; overflow: hidden; }
body.tzcert-print.is-embed .tzcert-sheet { padding: 0; overflow: hidden; }
body.tzcert-print.is-embed .tzcert-sheet .tzcert { box-shadow: none; }
.tzv__frame { display: block; width: 1123px !important; max-width: none !important; height: 794px !important; border: 0; transform-origin: top left; }
.tzcert__text strong { white-space: nowrap; }
