/* Certificates: the shared styles for the nine designs (19 Nov 2026; from the designers' shared/certificates.css).
 * Each certificate is a .cert sheet, 1123 x 794 CSS px = A4 landscape. cert.js sets its colours (--accent, --soft,
 * --tint, --deep) as plain colours, its modes (sig-1 / sig-2, org-on / org-off, mono) and fits its text.
 * The faces are declared by cert.js (so their address works in every build) and load only when a design uses them.
 */

/* The designs were drawn with the browser's own defaults; the site's (border-box sizing, 18px type at 1.5 line
   height, block pictures) are put back to those inside a certificate, so it measures exactly as designed. */
/* The hunt certificates' own .cert style (site.css) never applies to these. */
.cert[data-design] { display: block; flex: none; margin: 0; padding: 0; border: 0; border-radius: 0; min-height: 0; }
.cert { --ink: #1d1d1f; font-size: 16px; line-height: normal; letter-spacing: normal; text-align: left; font-feature-settings: normal; }
.cert, .cert *, .cert *::before, .cert *::after { box-sizing: content-box; }
.cert svg { max-width: none; }
.cert .f-accent { fill: var(--accent); } .cert .f-soft { fill: var(--soft); } .cert .f-tint { fill: var(--tint); } .cert .f-deep { fill: var(--deep); }
.cert .s-accent { stroke: var(--accent); } .cert .s-soft { stroke: var(--soft); } .cert .s-tint { stroke: var(--tint); } .cert .s-deep { stroke: var(--deep); }
@media screen { .cert .fit-overflow { outline: 2px dashed #ff0055; outline-offset: 2px; } }
.cert .is-empty { display: none !important; }

.cert .footer{position:absolute;display:grid;align-items:end;column-gap:40px;row-gap:18px}
.cert .sig{display:flex;flex-direction:column;gap:8px;min-width:0}
.cert .sig-line{height:40px;border-bottom:1.5px solid #1d1d1f;display:flex;align-items:flex-end;justify-content:center;padding-bottom:4px;box-sizing:border-box;font-size:19px;color:#1d1d1f;white-space:nowrap;min-width:0}
.cert .sig-label{font-size:13px;letter-spacing:2px;text-transform:uppercase;color:#555555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cert .s1{grid-area:s1}.cert .s2{grid-area:s2}.cert .sdate{grid-area:date}.cert .f-org{grid-area:org;margin:0}
.cert.sig-1 .s2{display:none}
.cert.org-off [data-field="organisation"]{display:none}
.cert .date-inline{display:none}.cert.sig-2 .date-inline{display:block}
.cert.sig-1 .f-center3{grid-template-columns:260px 1fr 260px;grid-template-areas:"s1 org date"}
.cert.sig-2 .f-center3{grid-template-columns:repeat(3,240px);justify-content:space-between;grid-template-areas:"org org org" "s1 s2 date"}
.cert .f-center3 .f-org{justify-self:center;text-align:center}.cert.sig-1 .f-center3 .f-org{margin-bottom:30px}
.cert.sig-1 .f-notebook{grid-template-columns:260px 220px 1fr;column-gap:56px;grid-template-areas:"s1 date org"}
.cert.sig-2 .f-notebook{grid-template-columns:240px 240px 220px;column-gap:40px;justify-content:start;grid-template-areas:"org org org" "s1 s2 date"}
.cert.sig-1 .f-notebook .f-org{margin-bottom:30px}
.cert.sig-1 .f-left-stack{grid-template-columns:300px 240px;justify-content:start;grid-template-areas:"org org" "s1 date"}
.cert.sig-2 .f-left-stack{grid-template-columns:200px 200px 170px;column-gap:30px;justify-content:start;grid-template-areas:"org org org" "s1 s2 date"}
.cert.sig-1 .f-right{grid-template-columns:auto 240px 200px;justify-content:end;grid-template-areas:"org s1 date"}
.cert.sig-2 .f-right{grid-template-columns:220px 220px 200px;justify-content:end;grid-template-areas:"org org org" "s1 s2 date"}
.cert .f-right .f-org{justify-self:end;white-space:nowrap}.cert.sig-1 .f-right .f-org{margin-bottom:30px}
.cert .f-laurel{grid-template-columns:280px 1fr 280px}
.cert.sig-1 .f-laurel{grid-template-areas:"s1 . date"}
.cert.sig-2 .f-laurel{grid-template-areas:"s1 . s2"}.cert.sig-2 .f-laurel .sdate{display:none}
.cert .f-grid4{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:32px}
.cert.sig-1 .f-grid4{grid-template-areas:"s1 date org ."}
.cert.sig-2 .f-grid4{grid-template-areas:"s1 s2 date org"}
.cert .stack{position:absolute;display:flex;flex-direction:column}
.cert [data-field="recipient-name"],.cert [data-field="award-title"],.cert [data-field="message"]{text-wrap:balance;overflow-wrap:break-word}
.cert [data-field="message"]{text-wrap:pretty}

/* The brand's small mark (A7): the page's own sheet footer, made small and centred above the frame. Empty in a neutral build. */
.cert .cert-foot { position: absolute; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.cert .cert-foot .paper__foot { display: block; margin: 0; padding: 0; border: 0; font-family: "Instrument Sans", sans-serif; font-size: 9.33px; line-height: 12px; letter-spacing: .02em; color: #77777c; }
.cert .cert-foot .paper__mark { display: flex; align-items: center; gap: 4px; }
.cert .cert-foot .paper__mark img { width: 9px; height: 9px; opacity: .7; }

/* Certificates print one to a sheet of A4 landscape, edge to edge (each keeps its own 12 mm margin). */
.cert-sheets .cert { break-after: page; break-inside: avoid; }
.cert-sheets .cert:last-child { break-after: auto; }
