/* Keep language selection available throughout the long invitation. */
.site-header { position: sticky; top: 0; background: #0b1730f5; z-index: 30; }
.thanksgiving-closing { position: relative; isolation: isolate; padding: clamp(3rem, 7vw, 6rem) 0 7rem; overflow: clip; background: linear-gradient(#0b1730,#071124); text-align: center; }
.closing-sanctuary { width:min(90%,42rem); margin:auto; padding:1.75rem clamp(1rem,4vw,2.5rem); border-block:1px solid #c0cad54a; background:linear-gradient(120deg,#e9dbbd08,transparent 65%); }
.closing-emblem { display:block; width:64px; margin:0 auto 1.1rem; font:italic 2.6rem/1 Georgia,serif; color:#e4e8ef; border-bottom:1px solid #cbd3df88; padding-bottom:.5rem; }
.closing-emblem small { display:block; font:.85rem/1.6 Georgia,serif; }
.closing-portrait-composition { width:164px; margin:0 auto 1.2rem; }
.closing-portrait-frame { box-sizing:border-box; width:164px; height:164px; padding:3px; margin:0; border:1px solid #dfe7f0; border-radius:50%; background:linear-gradient(135deg,#fafbfc,#8e9aaa,#edf0f4); box-shadow:0 6px 18px #0002; }
.closing-portrait-frame .cassock-window { width:100%; height:100%; aspect-ratio:1; border-radius:50%; overflow:hidden; }
.closing-portrait-frame img { width:100%; height:auto; max-width:none; left:50%; top:0; transform:translateX(-50%); border-radius:0; }
.thanksgiving-closing h2 { font-size: clamp(1.45rem, 4.5vw, 2.6rem); line-height: 1.6; text-wrap: balance; margin: 1rem 0; }
html[lang="en"] .thanksgiving-closing h2, html[lang="en"] .closing-name { font-family: var(--font-display); font-weight: 400; }
.closing-message { max-width: 35rem; margin: auto; font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 2; }
.closing-message p { margin: 0 0 1.3rem; }.closing-message .closing-gift { margin: 1.75rem 0; color: #f1f1eb; }
.closing-signature { margin: 1.4rem auto; line-height: 1.8; }.closing-signature p { margin: .45rem 0; font-size: 1rem; color: #d2dbe9; }
.closing-signature .closing-name { font-size: clamp(1.2rem, 3.5vw, 1.75rem); color: var(--pearl); text-wrap: balance; }
.sharing-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: 2rem auto 1rem; }
.sharing-buttons .celebration-action { min-width: 0; font-size: 1rem; }
.sharing-buttons [aria-disabled="true"], .sharing-buttons button:disabled { opacity: .6; cursor: default; filter: none; }
.sharing-note, #sharing-status { font-size: .95rem; line-height: 1.8; color: #cad5e7; max-width: 30rem; margin: 1rem auto; }
#sharing-status:empty { display: none; }
.closing-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.closing-navigation button { color: var(--pearl); background: transparent; border: 0; border-bottom: 1px solid #d6dfee55; min-height: 48px; padding: .5rem; font-size: 1rem; }
#share-link-fallback { max-width: 100%; margin: 1rem auto; font-size: 1rem; }
#share-link-field { width: 100%; min-height: 48px; font: 1rem var(--font-body); color: var(--navy); padding: .5rem; margin-top: .5rem; }
@media(max-width:480px) { .sharing-buttons { flex-direction: column; }.sharing-buttons .celebration-action { width: 100%; }.closing-sanctuary { padding-inline: 1.1rem; } }
@media(prefers-reduced-motion:reduce) { .thanksgiving-closing *, .thanksgiving-closing *::before { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
