/* R36: the certificate collection uses one aligned grid per record category. */
body.r13-design .certificate-personal-strip .certificate-strip-rail{display:grid;grid-template-columns:1fr;gap:30px;overflow:visible;padding:0}
body.r13-design .certificate-personal-strip .certificate-strip-group{width:100%;padding:0;border:0;min-width:0}
body.r13-design .certificate-personal-strip .certificate-strip-group-heading{min-height:0;margin:0 0 18px}
body.r13-design .certificate-personal-strip .certificate-strip-group-heading h3{font-size:14px;letter-spacing:.04em}
body.r13-design .certificate-personal-strip .certificate-strip-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;width:100%;align-items:stretch}
body.r13-design .certificate-personal-strip .certificate-strip-item{width:100%;min-width:0;max-width:none}
body.r13-design .certificate-strip-caption{display:none}
body.r13-design .certificate-personal-strip .certificate-strip-image{aspect-ratio:3/4;border:0;background:linear-gradient(145deg,#f3f6f8,#e1e9ef);border-radius:3px}
body.r13-design .certificate-personal-strip .certificate-strip-image>img{padding:8px}
/* Presentation-only black frame, gold bevel and navy mat; document pixels stay intact. */
.certificate36-frame{display:block;position:absolute;inset:50% auto auto 50%;width:91%;aspect-ratio:var(--certificate-ratio);transform:translate(-50%,-50%);padding:5px;border:8px solid #151819;border-top-color:#303335;border-left-color:#25292a;border-bottom-color:#080a0b;background:linear-gradient(135deg,#eed6a1,#92723c 27%,#ecd29a 48%,#af8a48 72%,#f0deb3);box-shadow:0 4px 8px #0003,inset 0 0 0 1px #6f562e}
.certificate36-mat{display:block;position:relative;width:100%;height:100%;padding:5px;background:#102638;box-shadow:inset 0 1px 3px #0009}
body.r13-design .certificate-strip-image .certificate36-frame img,body.r13-design .certificate-strip-card:hover .certificate36-frame img{position:static;display:block;width:100%;height:100%;object-fit:contain;transform:none;filter:none;background:#fff}
.certificate36-viewer-stage{container-type:size;background:#10202e}
.certificate36-viewer-stage .certificate36-frame{width:min(calc(100cqw - 20px),calc((100cqh - 20px) * var(--certificate-ratio)));border-width:clamp(7px,1.4cqw,14px);padding:clamp(3px,.6cqw,6px)}
.certificate36-viewer-stage .certificate36-mat{padding:clamp(4px,.7cqw,8px)}
.certificate36-viewer-stage .certificate36-mat>img{position:static;display:block;width:100%;height:100%;object-fit:contain;background:#fff}
body.r13-design .collaborators>div{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px}
body.r13-design .collaborators a{min-height:112px;padding:20px 24px}
body.r13-design .collaborators img{max-height:64px;max-width:100%;width:auto;height:auto;filter:none}
body.r13-design .collaborators img[src$="shihuiyuan.png"]{max-height:74px}
/* Copyright and credit share the same legal row; the utility links remain above. */
body.r13-design .footer36 .footer-bottom{padding-bottom:14px}
body.r13-design .footer36 .footer-bottom>span:first-child{width:auto;flex-basis:auto;order:0;margin-inline-end:auto}
.footer36-legal{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:16px 30px;padding-block:0 26px;color:#91adbf;font-size:10px;line-height:1.8}
body.r13-design .footer36 .footer35-credit{padding:0;margin:0;max-width:none;font-size:10px;line-height:1.8;text-align:right;text-wrap:pretty;justify-self:end}
.footer36-copyright{min-width:0}
@media(max-width:900px){body.r13-design .certificate-personal-strip .certificate-strip-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.footer36-legal{gap:20px}}
@media(min-width:600px){.footer36-copyright{white-space:nowrap}}
@media(max-width:599.98px){body.r13-design .certificate-personal-strip .certificate-strip-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.certificate36-frame{border-width:6px;padding:3px}.certificate36-mat{padding:3px}body.r13-design .collaborators>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.r13-design .collaborators a{padding:16px;min-height:96px}body.r13-design .collaborators a:last-child:nth-child(odd){grid-column:1/-1}body.r13-design .collaborators img{max-height:48px}body.r13-design .collaborators img[src$="shihuiyuan.png"]{max-height:66px}.footer36-legal{grid-template-columns:minmax(90px,.8fr) minmax(0,1.6fr);gap:14px;font-size:9px;padding-bottom:22px}body.r13-design .footer36 .footer35-credit{font-size:9px}}
