/* The unfolded sheet keeps its final text layout during the reveal. */
.opened-invite{position:relative;display:flex;flex-direction:column;align-items:center;min-height:100svh;padding:22px 16px 54px;isolation:isolate}
.opened-invite.is-floating{position:absolute;inset:0 0 auto;pointer-events:none}
.open-envelope-echo{position:absolute;z-index:-1;top:180px;left:50%;width:min(96vw,630px);height:330px;border-radius:7px;transform:translateX(-50%) rotate(-3deg);background:linear-gradient(145deg,#1b2933,#0d171f);border:1px solid #52677333;box-shadow:0 15px 45px #0008;opacity:.75;pointer-events:none}
.sheet-tools{position:relative;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:20px;width:min(560px,100%);padding:0 0 12px}
.sheet-tools .text-button{font-size:12px;color:#7d929f;min-height:44px}
.invite-sheet{position:relative;width:min(560px,100%);background:#eff2ed;color:#263741;border-radius:4px;box-shadow:0 1px 0 #fff,0 4px 0 #929d92,0 9px 0 #1c2727,0 24px 70px #000b;transform-origin:50% 50%}
.invite-sheet :focus-visible{outline-color:#2b6570}
.invite-sheet:before{content:'';position:absolute;inset:11px;border:1px solid #a1aba33d;pointer-events:none;border-radius:1px}
.invite-sheet:after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:4px;background:repeating-linear-gradient(0deg,#17252e01 0px,#17252e01 1px,transparent 1px,transparent 3px)}
.sheet-content{position:relative;z-index:1;padding:38px 45px 27px;text-align:center}
.sheet-brand{display:flex;justify-content:center;align-items:center;gap:14px}
.sheet-brand img{width:110px;height:auto}
.sheet-brand>span{font-size:11px;color:#5b6b70;border-left:1px solid #9ca99f;padding-left:14px;line-height:1.3}
.sheet-label{font-size:10px;color:#637363;margin:31px 0 12px}
.invite-sheet h1{font:500 clamp(22px,2.8vw,28px)/1.35 var(--body);color:#23343d;letter-spacing:-.025em;overflow-wrap:anywhere;outline-offset:8px}
.sheet-welcome{font-size:15px;color:#52665c;line-height:1.7;margin:13px 0 0}
.sheet-rule{width:38px;height:1px;margin:25px auto;background:linear-gradient(90deg,#588c8a,#d17a39)}
.sheet-message,.personal-note{font-size:14px;line-height:1.85;color:#52665c;margin:0 auto;max-width:400px}
.personal-note{color:#344d55;margin-top:13px;white-space:pre-line;overflow-wrap:anywhere}
.sheet-when{margin-top:27px}
.sheet-when strong{font:600 clamp(25px,3vw,32px)/1.4 var(--display);letter-spacing:-.055em;color:#22353d}
.sheet-when p{color:#8c5d32;font-size:12px;margin:7px 0 0}
.sheet-where{margin-top:21px}
.sheet-where strong{font-size:15px;font-weight:550;color:#344951}
.sheet-where p{font-size:12px;color:#5c6c60;margin:4px 0 0}
.sheet-where a{display:inline-flex;min-height:32px;align-items:center;color:#4f6d61;font-size:10px}
.sheet-program{text-align:left;margin:23px auto 0;padding:18px 0;border-top:1px solid #a3b0a42c;border-bottom:1px solid #a3b0a42c;max-width:410px}
.sheet-program>p{font-size:12px;font-weight:600;color:#5c6c60;margin:0 0 10px}
.sheet-program ul{display:grid;gap:8px;list-style:none;padding:0;margin:0}
.sheet-program li{display:flex;align-items:flex-start;gap:11px;font-size:12px;color:#52665c;line-height:1.9}
.sheet-program li:before{content:'';width:4px;height:4px;flex:none;margin-top:9px;border-radius:1px;background:#d77a35}
.sheet-signature{margin:24px 0 0;padding-top:20px;border-top:1px solid #a3b0a42c;line-height:1.8}
.sheet-signature p{font-size:11px;color:#5c6c60;margin:0 0 5px}
.sheet-signature strong{display:block;font-weight:500;font-size:12px;color:#40564d}
.sheet-signature span{display:block;font-size:9px;color:#637063;margin-top:3px}
.sheet-response{margin:20px auto 0;max-width:410px}
.response-free{font-size:10px;color:#5c6c60;margin:0 0 11px}
.sheet-response .button{width:min(100%,330px);min-height:48px;font-size:14px;padding:13px 22px;border-radius:5px}
.sheet-bottom{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 21px;margin-top:15px}
.sheet-bottom a,.sheet-bottom .text-button{display:inline-flex;align-items:center;min-height:44px;color:#52665c;font-size:12px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.is-unfolding .invite-sheet{animation:paper-unfold .52s cubic-bezier(.14,.7,.2,1) both}
.is-unfolding .sheet-content{animation:ink-appear .23s .28s ease both}
.is-unfolding .sheet-tools{opacity:0}

/* One click records attendance; no contact form. */
.attendance-notice{max-width:330px;margin:12px auto 0;font-size:10px;color:#66786a;line-height:1.7}
.attendance-notice a{color:#526a5b}
#confirmError{font-size:12px;color:#a4502d;margin:14px 0}
#confirmed h2{font-size:23px;font-weight:550;color:#304a4b;line-height:1.4;letter-spacing:-.02em}
.response-label{font-size:11px;color:#8c5d32;margin:0 0 8px}
.confirmation-message{font-size:14px;color:#52665c;margin:10px 0 14px}
.confirmation-place{font-size:12px;color:#52665c;margin:0 0 17px;line-height:1.8}
.confirmation-place strong,.confirmation-place span{display:block}
.confirmation-place strong{font-weight:550}
.chat-explainer{max-width:310px;margin:13px auto 0;font-size:11px;color:#5c6c60;line-height:1.7}
.confirmation-note{font-size:10px;color:#6c7b6e;margin:10px 0 0}
.venue-label{display:block;font-size:11px;color:#637363;margin-bottom:8px}
/* Preview utilities are outside the invitation itself. */
.preview-tools{position:fixed;z-index:15;bottom:max(12px,env(safe-area-inset-bottom));right:15px;font-size:11px}
.preview-tools>summary{display:grid;place-items:center;width:34px;height:30px;border:1px solid #34475355;border-radius:5px;cursor:pointer;color:#647e90;background:#081016;list-style:none;font-size:19px;line-height:1}
.preview-tools>summary::-webkit-details-marker{display:none}
.preview-panel{position:absolute;right:0;bottom:42px;width:min(290px,calc(100vw - 32px));padding:19px;border:1px solid #37576b;background:#0d1d28;border-radius:7px;box-shadow:0 12px 45px #000b;color:#9bb5c7}
.preview-panel p{font-size:10px;line-height:1.8;margin:0 0 15px}
.preview-panel summary{min-height:40px;cursor:pointer;color:#b9d5e3}
.preview-panel label{display:block;font-size:11px}
.preview-panel input{display:block;width:100%;min-height:42px;margin:7px 0 12px;padding:8px 10px;border:1px solid #3c5f75;background:#0a151f;border-radius:4px;color:#e6f3fc;font-size:16px}
.preview-panel .button{font-size:11px;padding:9px 14px}
.preview-panel>a{display:inline-flex;align-items:center;min-height:40px;margin-top:8px;font-size:11px}
.load-error{max-width:600px;padding:15svh 24px;text-align:center;margin:auto}
.load-error h1{font-size:26px;margin-bottom:20px}
.load-error p{font-size:14px;color:#93acbe}


@keyframes paper-unfold{from{opacity:.5;transform:translate(var(--reveal-x,0px),var(--reveal-y,60px)) scale(var(--reveal-scale-x,.8),var(--reveal-scale-y,.3)) rotate(-1deg)}to{opacity:1;transform:translate(0,0) scale(1,1) rotate(0)}}
@keyframes ink-appear{from{opacity:0}to{opacity:1}}
@media(hover:hover) and (pointer:fine){.sheet-response .button:hover{filter:brightness(1.04)}}
@media(max-width:600px){.opened-invite{padding:14px 14px 42px}.sheet-tools{gap:13px;padding-bottom:8px}.sheet-tools .text-button{font-size:12px}.sheet-content{padding:33px 27px 22px}.sheet-brand img{width:99px}.sheet-brand>span{font-size:10px;padding-left:12px}.sheet-label{margin-top:27px}.invite-sheet h1{font-size:24px}.sheet-welcome{font-size:14px}.sheet-message,.personal-note{font-size:13px;line-height:1.9}.sheet-rule{margin-block:22px}.sheet-when{margin-top:24px}.sheet-when strong{font-size:27px}.sheet-where strong{font-size:14px}.sheet-where p{font-size:11px}.sheet-program{margin-top:22px}.sheet-program li{font-size:12px}.sheet-signature strong{font-size:11px}.sheet-signature span{font-size:9px}.sheet-response{margin-top:23px}.response-free{font-size:9px}.sheet-response .button{font-size:14px;min-height:48px}.sheet-bottom{column-gap:17px}.sheet-bottom a,.sheet-bottom .text-button{font-size:12px}.open-envelope-echo{top:180px;width:91vw;height:250px;transform:translateX(-50%) rotate(-2deg)}.preview-tools{right:10px;bottom:max(9px,env(safe-area-inset-bottom))}}
@media(max-width:360px){.sheet-content{padding:29px 23px 20px}.sheet-brand img{width:86px}.sheet-brand{gap:12px}.sheet-brand>span{font-size:9px}.invite-sheet h1{font-size:22px}.sheet-welcome{font-size:13px}.sheet-message{font-size:13px}.sheet-signature strong{font-size:10px}.sheet-bottom{gap:0 13px}}

@media(prefers-reduced-motion:reduce){.is-unfolding .invite-sheet,.is-unfolding .sheet-content{transform:none;opacity:1}.opened-invite{scroll-behavior:auto}}
@media print{body.invitation-experience{background:#fff;color:#23343d}.experience:before,.experience-cover,.open-envelope-echo,.sheet-tools,.preview-tools,.toast,.sheet-response,.sheet-bottom{display:none!important}.opened-invite{display:block!important;padding:0;min-height:0;position:static!important}.invite-sheet{width:100%;box-shadow:none;border:1px solid #c9d2c8;transform:none!important;animation:none!important}.sheet-content{padding:25px 35px;opacity:1!important}.sheet-signature{break-inside:avoid}@page{size:A4;margin:15mm}}
