/* Scoped mobile refinements. Artwork, flaps, seals and interaction geometry stay collection-owned. */
@media(max-width:700px){
 body[data-mobile9]{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body[data-mobile9] form,body[data-mobile9] fieldset{min-width:0;max-width:100%;box-sizing:border-box}
 body[data-mobile9] input:not([type=radio]):not([type=checkbox]):not([type=range]),body[data-mobile9] select,body[data-mobile9] textarea{font-size:16px!important;max-width:100%;min-width:0;box-sizing:border-box}
 body[data-mobile9] form :is(input:not([type=radio]):not([type=checkbox]),select){min-height:48px}
 body[data-mobile9] form textarea{min-height:108px;resize:vertical}
 body[data-mobile9] form :is(pre,output),body[data-mobile9] .form-note{overflow-wrap:anywhere}
 body[data-mobile9] .radio{min-height:44px}
 body[data-invitation="photo-booth"] .shutter::after{content:'';position:absolute;inset:-7px;border-radius:50%;background:transparent}
 body[data-mobile9] .outfit-controls button{min-width:44px;min-height:44px}
 body[data-mobile9] :is(.controls button,.close){min-width:44px;min-height:44px}
 body[data-invitation="lace-letter"] .nav{padding-block:8px;gap:7px}
 body[data-invitation="lace-letter"] .nav a{min-height:44px;font-size:11px}
 body[data-invitation="lace-letter"] .photo-picker input{min-height:44px}
 body[data-mobile9].pl-page .pl-section p{font-size:13px;line-height:1.9}
 body[data-mobile9].pl-page .pl-section .pl-kicker{font-size:9px;line-height:1.8;letter-spacing:1.4px}
 body[data-mobile9].pl-page .pl-section .pl-note{font-size:11px;line-height:1.8}
 body[data-mobile9].pl-page .pl-tone small{font-size:10px;line-height:1.5;max-width:75px;white-space:normal}
 body[data-mobile9].pl-page .pl-nav{gap:0 12px;padding:8px 12px}
 body[data-mobile9].pl-page .pl-nav a{min-height:44px;display:inline-flex;align-items:center;font-size:11px}
 body[data-mobile9].pl-page .pl-utility{bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
 body[data-mobile9].pl-page .pl-utility button{min-height:44px;font-size:10px;padding-inline:12px}
 /* Let the embroidered path remain animated, with text in a readable single column. */
 body[data-invitation="heart-thread"] .thread-scene{height:auto;max-width:360px}
 body[data-invitation="heart-thread"] .thread-svg{width:28px;height:100%;left:0;right:auto}
 body[data-invitation="heart-thread"] .events{height:auto;grid-template-rows:none;gap:0;padding-left:48px}
 body[data-invitation="heart-thread"] .events li,body[data-invitation="heart-thread"] .events li:nth-child(even){width:100%;justify-self:stretch;text-align:left;min-height:145px;padding:15px 0 22px}
 body[data-invitation="heart-thread"] .events h3{font-size:25px;line-height:1.15}
 body[data-invitation="heart-thread"] .events p{font-size:13px;line-height:1.8}
}
@media(max-height:760px){
 body[data-invitation="love-max"] #opening,body[data-invitation="love-jackpot"] #opening{justify-content:flex-start;overflow-y:auto;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(28px,env(safe-area-inset-bottom))}
 body[data-invitation="love-max"] #opening>*,body[data-invitation="love-jackpot"] #opening>*{flex-shrink:0}
}
@media(max-height:700px){
 body[data-invitation="passport"] .book:not(.open){height:auto;min-height:0}
 body[data-invitation="passport"] .book:not(.open) .cover{position:relative;inset:auto;height:auto;min-height:520px!important}
 body[data-invitation="passport"] .book:not(.open) .passport-crest{flex-shrink:0}
}
@media(max-height:650px){
 body[data-invitation="sun-for-two"] .hero{height:auto;min-height:100svh;padding:100px clamp(40px,12vw,65px) 105px}
}
@media(max-height:480px) and (orientation:landscape){
 body[data-mobile9].photo-view .hero{height:auto;min-height:100svh;padding-block:22px}
 body[data-mobile9].photo-view .paper-card{width:min(380px,100%);max-width:380px;min-height:570px;padding:90px 28px 38px}
 body[data-mobile9].photo-view .paper-card h1{font-size:clamp(43px,7vw,62px)}
 body[data-invitation="linen-atelier"] #opening{overflow-y:auto;align-items:start}
 body[data-invitation="linen-atelier"] .scene{height:max(620px,100svh)}
}
