:root { color:#172840; background:#ece9df; font:16px/1.5 Georgia,serif; }
* { box-sizing:border-box; }
body { margin:0; }
.tools { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; width:min(960px,calc(100% - 32px)); margin:20px auto; font:.9rem/1.4 system-ui,sans-serif; }
.tools a,.unavailable a { color:#13584b; }
.tools button { margin-inline-start:auto; border:0; border-radius:6px; padding:8px 13px; background:#13584b; color:white; font:700 .9rem/1.4 system-ui,sans-serif; cursor:pointer; }
:focus-visible { outline:3px solid #bf6631; outline-offset:3px; }
.diploma { width:min(960px,calc(100% - 32px)); margin:0 auto 30px; padding:10px; border:4px double #805d2c; background:#fffbef; box-shadow:0 12px 30px #17284017; text-align:center; }
.inner { padding:clamp(17px,5vw,43px); border:1px solid #ad824a; }
p { margin:0 0 12px; }
.masthead { display:flex; align-items:center; justify-content:center; gap:12px; }
.masthead img { width:76px; height:76px; object-fit:contain; }
.masthead p { margin:0; }
.masthead .preview { margin-top:6px; }
.issuer { color:#13584b; font:750 .75rem/1.4 system-ui,sans-serif; letter-spacing:.2em; text-transform:uppercase; }
.preview { color:#805d2c; font:650 .7rem/1.35 system-ui,sans-serif; letter-spacing:.15em; text-transform:uppercase; }
h1 { font-size:clamp(2rem,6.3vw,4.2rem); line-height:.99; letter-spacing:-.045em; margin:15px 0 20px; font-weight:500; }
.intro,.citation { color:#414953; }
.winner { margin:14px 0 6px; padding:9px; border-block:1px solid #cfb986; color:#17584d; font-size:clamp(1.65rem,5vw,3rem); font-weight:700; line-height:1.1; overflow-wrap:anywhere; }
.credit,.week { font:600 .88rem/1.4 system-ui,sans-serif; overflow-wrap:anywhere; }
.citation { margin-block:14px; }
.signatures { display:grid; grid-template-columns:1fr auto 1fr; gap:15px; align-items:center; justify-items:center; margin-top:22px; }
.signature { min-width:0; width:100%; }
.signature span { display:block; max-width:190px; margin:0 auto; color:#31495d; border-bottom:1px solid #ad824a; font:italic 1.4rem/1.4 Georgia,serif; }
.signature small { display:block; max-width:190px; margin:5px auto 0; font:.69rem/1.25 system-ui,sans-serif; }
.seal { width:108px; aspect-ratio:1; border:4px double #805d2c; border-radius:50%; display:grid; align-content:center; color:#664920; background:#f5e6bb; font:750 .58rem/1.25 system-ui,sans-serif; letter-spacing:.075em; }
.seal strong { font:900 2rem/1.1 Georgia,serif; letter-spacing:-.09em; }
.unavailable { width:min(760px,calc(100% - 32px)); margin:30px auto; }
@media (max-width:480px) {
  .diploma { padding:6px; }
  .signatures { grid-template-columns:1fr 1fr; }
  .seal { grid-column:1/-1; grid-row:2; }
  .tools button { margin-inline-start:0; }
}
@media print {
  @page { size:landscape; margin:12mm; }
  :root,body { background:white; }
  .tools { display:none; }
  .diploma { width:100%; margin:0; box-shadow:none; break-inside:avoid; print-color-adjust:exact; }
  .inner { padding:20px; }
  .masthead img { width:64px; height:64px; }
  h1 { font-size:36pt; }
  .winner { font-size:24pt; }
  .seal { width:90px; }
}
