@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700&family=Manrope:wght@500;600;700&display=swap');
/* verify_certificates_id.css: Certificate page, built on the PhotoZone homepage design. Every class is a hook used by verify.php and its JS. */
:root{
 --ink:#0f1a17;--ink2:#33433d;--mute:#5b6a64;--paper:#fff;--fog:#ebf3f8;--sage:#d8e9f2;--line:#d0dde6;
 --teal:#0b6e5c;--teal-d:#07493d;--film:#f2c230;--film-t:#fbefc0;--warn:#a63a14;--warn-t:#fbeee7;--good:#0b6e5c;
 --f-d:'Bricolage Grotesque','Segoe UI',system-ui,-apple-system,sans-serif;
 --f-t:'Manrope','Segoe UI',system-ui,-apple-system,sans-serif;
 --f-pro:'Manrope','Segoe UI',system-ui,-apple-system,sans-serif;
 --gut:clamp(14px,4.4vw,72px);--ease:cubic-bezier(.22,.68,0,1);
 --shape:26px 26px 26px 6px;--shape-2:26px 6px 26px 26px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{font-family:var(--f-t);font-size:1rem;line-height:1.65;color:var(--ink);background:var(--fog);-webkit-font-smoothing:antialiased;overflow-x:hidden;min-height:100vh}
img{display:block;max-width:100%}
a{color:var(--teal-d);text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:3px}
h1,h2,h3,button,input{font-family:var(--f-d)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:3px;border-radius:4px}
.sr,.cert-meta{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}

.page{position:relative;max-width:1240px;margin:0 auto;padding:clamp(24px,4vw,56px) clamp(14px,4vw,40px) 100px}

/* identity */
.identity{background:#fff;border:1px solid var(--line);border-radius:32px 32px 32px 6px;padding:clamp(24px,4vw,44px);margin-bottom:20px;box-shadow:0 20px 44px -30px rgba(15,26,23,.4)}
.eyebrow{display:inline-flex;align-items:center;gap:7px;font:600 .88rem var(--f-d);color:var(--teal-d);background:var(--sage);padding:5px 14px;border-radius:999px;margin-bottom:16px}
.eyebrow svg{color:var(--teal)}
.hero-name{font:700 clamp(1.9rem,4.4vw,3.1rem)/1.1 var(--f-d);letter-spacing:-.025em;color:var(--ink);margin-bottom:8px;text-wrap:balance}
.hero-event{font:500 clamp(1rem,1.6vw,1.2rem)/1.4 var(--f-d);color:var(--ink2);margin-bottom:20px}
.pills{display:flex;flex-wrap:wrap;gap:10px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;font:600 .82rem var(--f-d)}
.pill-type{background:var(--film-t);color:var(--ink)}
.pill-ok{background:var(--teal);color:#fff}
.identity-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.identity-link{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border-radius:999px;border:2px solid var(--teal);background:#fff;color:var(--teal);font:600 .86rem var(--f-d);text-decoration:none;transition:background .2s,color .2s}
.identity-link:hover{background:var(--teal);color:#fff;text-decoration:none}
.identity-link i{font-size:.95em}

/* QR + ID */
.verify-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}
.qr-card,.id-card{background:#fff;border:1px solid var(--line);padding:20px 24px;display:flex;align-items:center;gap:18px;transition:transform .25s var(--ease)}
.qr-card{border-radius:var(--shape)}.id-card{border-radius:var(--shape-2)}
.qr-card:hover,.id-card:hover{transform:translateY(-3px)}
.qr-card canvas{border-radius:16px;border:1px solid var(--line);flex-shrink:0;background:#fff;width:130px;height:130px;padding:6px}
.qr-card-info,.id-card-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.qr-card-title,.id-card-title{font:700 1rem var(--f-d);color:var(--ink)}
.qr-card-sub{font-size:.92rem;color:var(--ink2);line-height:1.5}
.id-card-icon{width:52px;height:52px;border-radius:18px 18px 18px 5px;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.id-card-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.id-card-val{font:700 clamp(1.05rem,2vw,1.3rem) var(--f-pro);color:var(--teal-d);letter-spacing:.08em;word-break:break-all;font-variant-numeric:tabular-nums}

/* layout */
.grid{display:grid;grid-template-columns:minmax(0,480px) 1fr;gap:clamp(18px,3vw,34px);align-items:start}
.col{display:flex;flex-direction:column;gap:20px}
.card,.img-card{background:#fff;border:1px solid var(--line);border-radius:var(--shape);overflow:hidden}
.ch{padding:15px 24px;background:var(--fog);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}
.ch-dot{width:9px;height:9px;border-radius:50%;background:var(--film)}
.ch-lbl{font:700 .8rem var(--f-d);letter-spacing:.05em;text-transform:uppercase;color:var(--teal-d)}
.ch-sub{font-size:.85rem;color:var(--mute);margin-left:6px}

/* certificate image */
.img-card{border-radius:30px 30px 30px 6px}
.img-wrap{padding:clamp(14px,2vw,24px);background:var(--fog);display:flex;align-items:center;justify-content:center;min-height:320px}
.img-wrap img{width:100%;height:auto;object-fit:contain;max-height:640px;border-radius:6px;box-shadow:0 14px 30px -14px rgba(15,26,23,.5)}
.img-footer{padding:14px 20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
.cert-id{font:700 .85rem var(--f-pro);letter-spacing:.06em;color:var(--ink);background:var(--film-t);padding:5px 14px;border-radius:999px}
.cert-name-badge{font:600 .82rem var(--f-d);color:var(--teal-d);background:var(--sage);padding:5px 14px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}

/* jury + signers */
.juror-row{display:flex;align-items:center;gap:16px;padding:16px 24px;border-bottom:1px solid var(--line);min-height:84px;color:inherit;transition:background .2s}
.juror-row:last-child{border-bottom:0}.juror-row:hover{background:var(--fog);text-decoration:none}
.signer-row{border-top:1px dashed var(--line)}.signer-row:first-child{border-top:0}
.juror-av{width:50px;height:50px;aspect-ratio:1/1;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--sage)}
.juror-name{font:600 1.02rem/1.25 var(--f-d);color:var(--ink);margin-bottom:2px}
.juror-role{font-size:.9rem;color:var(--ink2);line-height:1.35}
.juror-country{font:600 .82rem var(--f-d);color:var(--teal-d);margin-top:2px}

/* details */
.dg{display:grid;grid-template-columns:1fr 1fr}
.dc{padding:18px 24px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
.dc:nth-child(even){border-right:0}.dc:nth-last-child(-n+2){border-bottom:0}
.dc:last-child:nth-child(odd){grid-column:1/-1;border-right:0}
.dl{font:600 .78rem var(--f-d);letter-spacing:.05em;text-transform:uppercase;color:var(--mute);margin-bottom:5px}
.dv{font-size:1rem;color:var(--ink);font-weight:600;line-height:1.4}
.dv.id{font:700 .9rem var(--f-pro);letter-spacing:.06em;background:var(--film-t);display:inline-block;padding:3px 14px;border-radius:999px}
.narrative{padding:24px 26px;font-size:1rem;color:var(--ink2);line-height:1.8}
.narrative+.narrative{border-top:1px solid var(--line)}

/* actions */
.actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px}
.act-btn{display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:12px;padding:12px 14px;width:100%;min-height:64px;border:2px solid var(--line);border-radius:20px 20px 20px 6px;background:#fff;cursor:pointer;color:var(--ink);font-family:var(--f-d);transition:border-color .2s,background .2s,transform .2s}
.act-btn:hover{border-color:var(--teal);background:var(--fog);text-decoration:none}.act-btn:active{transform:translateY(1px)}
.act-btn:last-child:nth-child(odd){grid-column:1/-1}
.act-ic{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--sage);color:var(--teal-d)}
.act-ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.act-ic.fb svg,.act-ic.wa svg{fill:currentColor;stroke:none}
.act-txt{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;flex:1}
.act-title{font:600 .95rem/1.2 var(--f-d);color:var(--ink)}
.act-sub{font:500 .8rem/1.3 var(--f-d);color:var(--mute);margin-top:2px}
.act-btn.scan-b .act-ic{background:var(--teal);color:#fff}
.act-btn.fb-b .act-ic{background:#1877f21f;color:#1877f2}
.act-btn.wa-b .act-ic{background:#25d3661f;color:#128c4a}
.act-btn.share-b .act-ic{background:var(--film-t);color:var(--ink)}
.act-btn.copy .act-ic{background:var(--sage);color:var(--teal-d)}

/* ---- modals (QR scanner / follow) ---- */
.ov{position:fixed;inset:0;z-index:2000;background:rgba(7,73,61,.5);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;padding:20px}
.ov.active{opacity:1;visibility:visible}
.modal{position:relative;width:100%;max-width:380px;background:#fff;border-radius:28px 28px 28px 6px;padding:24px;box-shadow:0 24px 60px -16px rgba(15,26,23,.5)}
.mh{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.mt{font:700 1.12rem var(--f-d);color:var(--ink);letter-spacing:-.01em}
.cx{width:34px;height:34px;border-radius:50%;border:2px solid var(--teal);background:#fff;color:var(--teal);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:background .2s,color .2s}
.cx:hover{background:var(--teal);color:#fff}
.vp{position:relative;width:100%;aspect-ratio:1;border-radius:20px;overflow:hidden;background:#0d1a17}
#sv,#lsv{width:100%;height:100%;object-fit:cover;display:block}
.corners{position:absolute;inset:0;pointer-events:none}
.qc{position:absolute;width:28px;height:28px;border:0 solid var(--film)}
.qc.tl{top:14px;left:14px;border-top-width:3px;border-left-width:3px;border-radius:6px 0 0 0}
.qc.tr{top:14px;right:14px;border-top-width:3px;border-right-width:3px;border-radius:0 6px 0 0}
.qc.bl{bottom:14px;left:14px;border-bottom-width:3px;border-left-width:3px;border-radius:0 0 0 6px}
.qc.br{bottom:14px;right:14px;border-bottom-width:3px;border-right-width:3px;border-radius:0 0 6px 0}
.sweep{position:absolute;left:14px;right:14px;height:2px;background:linear-gradient(90deg,transparent,var(--film),transparent);animation:sw 2s ease-in-out infinite}
@keyframes sw{0%{top:14px;opacity:0}10%,90%{opacity:1}100%{top:calc(100% - 16px);opacity:0}}
.ss{margin-top:14px;text-align:center;font:500 .9rem var(--f-d);min-height:1.4rem;color:var(--mute)}
.ss.scanning{color:var(--teal-d)}.ss.ok{color:var(--good);font-weight:600}.ss.err{color:var(--warn);font-weight:600}
.denied{display:none;flex-direction:column;align-items:center;justify-content:center;gap:10px;aspect-ratio:1;text-align:center;padding:20px;border-radius:20px;background:var(--warn-t)}
.denied p{font-size:.95rem;color:var(--ink2);line-height:1.55}

/* follow modal */
.follow-body{padding:4px 4px 2px;text-align:center}
.follow-lead{font-size:.96rem;color:var(--ink2);margin-bottom:20px;line-height:1.55}
.follow-links{display:flex;justify-content:center;gap:16px}
.follow-ic-link{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;border:2px solid var(--teal);background:#fff;color:var(--teal);transition:background .2s,color .2s}
.follow-ic-link:hover{background:var(--teal);color:#fff;text-decoration:none}
.follow-ic-link i{font-size:1.4rem;color:inherit}

/* loading overlay (functional hook) */
.load-ov{position:fixed;inset:0;z-index:3000;background:rgba(7,73,61,.45);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;padding:20px}
.load-ov.active{opacity:1;visibility:visible}
.load-box{background:#fff;border-radius:28px 28px 28px 6px;padding:34px 40px;text-align:center;max-width:300px;width:100%}
.spinner{width:42px;height:42px;border:4px solid var(--sage);border-top-color:var(--teal);border-radius:50%;margin:0 auto 18px;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.load-title{font:700 1.05rem var(--f-d);color:var(--ink);margin-bottom:4px}
.load-sub{font-size:.92rem;color:var(--mute);margin-bottom:18px;min-height:1.2em}
.prog-wrap{width:100%;height:5px;background:var(--fog);border-radius:5px;overflow:hidden}
.prog-bar{height:100%;background:var(--teal);width:0;transition:width .3s}
.prog-pct{font:600 .8rem var(--f-pro);color:var(--mute);margin-top:9px}

/* toast */
#toast{position:fixed;bottom:28px;right:24px;z-index:9999;background:var(--teal-d);color:#fff;padding:12px 22px;border-radius:999px;font:600 .9rem var(--f-d);opacity:0;pointer-events:none;transform:translateY(6px);transition:opacity .2s,transform .2s;max-width:calc(100vw - 48px)}
#toast.show{opacity:1;transform:none}

/* responsive */
@media(max-width:960px){.grid{grid-template-columns:minmax(0,420px) 1fr}}
@media(max-width:760px){
 .grid,.verify-row{grid-template-columns:1fr}
 .qr-card,.id-card{padding:16px 18px;gap:14px}.qr-card canvas{width:92px!important;height:92px!important}
 .dg{grid-template-columns:1fr}.dc{border-right:0!important}.dc:nth-last-child(-n+2){border-bottom:1px solid var(--line)!important}.dc:last-child{border-bottom:0!important}
 .actions-grid{grid-template-columns:1fr}
 #toast{left:16px;right:16px;bottom:16px;text-align:center}
}
@media(max-width:480px){.page{padding:18px 12px 72px}.identity{padding:22px 20px}.juror-row{padding:14px 18px}.narrative{padding:20px}}
