/* TypTik: diploma Blind typen. Alles schaalt mee met de breedte van het blad (cqw), op scherm en in print. */
.dip-page { display: grid; gap: 18px; justify-items: center; }
.dip-actions { width: min(100%, 1000px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dip-tip { text-align: center; }
.dip-promo-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--paper); border: 3px dashed var(--ink); border-radius: var(--radius); padding: 14px 22px; margin: 0 0 18px; opacity: .8; }
.dip-promo-box.got { opacity: 1; border-style: solid; background: var(--yellow); box-shadow: 0 6px 0 var(--ink); }
.dip-promo-box h2 { font-size: 24px; font-weight: 900; }

.diploma { container-type: inline-size; width: min(100%, 1000px); aspect-ratio: 297 / 210; background: #fffdf6; border: var(--line); border-radius: 18px; box-shadow: 0 8px 0 var(--ink); padding: 1.6cqw; color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dip-frame { position: relative; height: 100%; border: .7cqw solid var(--coral); outline: .25cqw solid var(--ink); outline-offset: -1.2cqw; border-radius: 1.6cqw; padding: 2.4cqw 4cqw 1.8cqw; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(circle at 50% 38%, #fff7da 0, #fffdf6 62%); overflow: hidden; }
.dip-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.dip-brand { font-family: var(--mono); font-weight: 900; font-size: 3.2cqw; letter-spacing: -.1cqw; }
.dip-url { font-family: var(--mono); font-weight: 900; font-size: 2.2cqw; background: var(--yellow); border: .3cqw solid var(--ink); border-radius: 99cqw; padding: 0 1.6cqw; }
.dip-kicker { margin-top: .6cqw; font-weight: 900; font-size: 1.9cqw; letter-spacing: .9cqw; text-transform: uppercase; color: var(--coral); }
.dip-title { font-size: 8.4cqw; line-height: 1; font-weight: 900; letter-spacing: -.2cqw; }
.dip-lead { margin-top: 1.4cqw; font-size: 2cqw; color: var(--ink-soft); font-weight: 700; }
.dip-name { margin-top: .4cqw; min-width: 40cqw; max-width: 74cqw; font-size: 6.4cqw; line-height: 1.15; font-weight: 900; color: #1f3a8a; border-bottom: .35cqw solid var(--ink); padding: 0 2cqw .2cqw; overflow-wrap: anywhere; }
.dip-name.long { font-size: 4.6cqw; }
.dip-body { margin-top: 1.6cqw; max-width: 62cqw; font-size: 2.1cqw; line-height: 1.4; font-weight: 700; }
.dip-medals { margin-top: 1.2cqw; display: flex; gap: 3cqw; min-height: 5.6cqw; align-items: center; justify-content: center; }
.dip-medal { display: inline-flex; align-items: center; gap: .6cqw; font-size: 2.4cqw; }
.dip-medal .medal-svg { width: 5.6cqw; height: auto; filter: none; }
.dip-mascot { position: absolute; right: 4.5cqw; top: 11cqw; width: 14cqw; }
.dip-mascot, .dip-mascot * { animation: none !important; }
.dip-foot { width: 100%; margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3cqw; }
.dip-sign { display: grid; justify-items: center; }
.dip-sign-svg { width: 20cqw; height: auto; }
.dip-sign-line { width: 26cqw; border-top: .25cqw solid var(--ink); }
.dip-sign-name { margin-top: .3cqw; font-size: 1.5cqw; font-weight: 800; }
.dip-date { display: grid; font-size: 1.8cqw; line-height: 1.3; }
.dip-date-label { color: var(--ink-soft); font-size: 1.5cqw; }
.dip-promo { margin-top: 1.4cqw; font-size: 1.7cqw; font-weight: 800; color: var(--ink-soft); }

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  html, body { background: #fff !important; }
  .skip, .top, .foot, .dip-actions, .dip-tip, .overlay { display: none !important; }
  .page-diploma { padding: 0; max-width: none; margin: 0; }
  .dip-page { display: block; }
  .diploma { width: 270mm; max-width: none; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; page-break-inside: avoid; break-inside: avoid; }
}
