/* PRIGLO 117 — focused fixes for mobile hero, event time, seal and gesture scrolling. */
@media (max-width:900px) {
  /* Bright Rhythm (birthday-pop): image flows directly into name, no 100svh filler. */
  .birthday-pop-v2 .bd-pop-hero {
    display:flex!important; flex-direction:column!important; align-items:stretch!important;
    justify-content:flex-start!important; height:auto!important; min-height:0!important;
    padding:clamp(12px,2.2svh,18px) 0 clamp(46px,7svh,65px)!important;
  }
  .birthday-pop-v2 .bd-pop-hero > .bd-pop-photo {
    position:relative!important; inset:auto!important; margin:0 16px 0 auto!important;
    width:min(calc(100% - 52px),480px)!important; height:clamp(230px,44svh,450px)!important;
    flex:none!important; border-radius:0 0 0 70px!important;
  }
  .birthday-pop-v2 .bd-pop-hero > .bd-pop-hero-copy {
    position:relative!important; align-self:stretch!important; min-height:0!important;
    padding:clamp(22px,4svh,32px) 22px 4px!important;
    margin:0!important; max-width:none!important;
  }
  .birthday-pop-v2 .bd-pop-hero .bd-pop-chevron {bottom:12px!important;}
}
/* Linen Page + Copper Rhythm: one date only, readable event start immediately after calendar. */
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer {padding-top:clamp(19px,3.5svh,30px)!important;gap:10px!important;}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > time {display:none!important;}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > .ur-event-start,
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > span {
  display:inline-flex!important; align-items:center;justify-content:center;flex-wrap:wrap;
  gap:.25em;max-width:calc(100% - 20px);margin:0 auto!important;
  padding:12px 20px!important;border:1px solid var(--ur-line)!important;
  border-radius:999px!important;background:color-mix(in srgb,var(--ur-paper) 82%,transparent)!important;
  color:var(--ur-ink)!important;font:500 clamp(16px,4.3vw,20px)/1.35 'DM Sans','Noto Sans',sans-serif!important;
  letter-spacing:.01em!important;text-align:center;
}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-footer > span > strong {
  color:var(--ur-accent)!important;font-weight:750!important;font-size:clamp(21px,5.2vw,27px)!important;
  letter-spacing:.015em!important;font-variant-numeric:tabular-nums;
}
.ur-invite:is(.ur-linen,.ur-copper) .ur-calendar-actions {margin-top:6px!important;}
/* Ivory wax is now golden in the SVG. Bust the old green artwork cache. */
.ti-opening.ti-opening--ivory.ti-opening--ivory-cinema .ti-envelope__seal {
  background-image:url('/assets/decor/ivory-opening-seal.svg?v=117.2')!important;
}
/* The line drawing is transparent: the gold wax, not a colored disc, is its background. */
.ti-opening--ivory .ti-ivory-envelope-emblem {filter:drop-shadow(0 1px 2px rgba(83,53,10,.4));}
.ti-opening--ivory .ti-ivory-envelope-emblem__icon {
  fill:none!important;stroke:#65461d!important;stroke-width:4.2!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke; transform-box:fill-box;transform-origin:center;
}
.ti-opening--ivory:not(.ti-opening--active) .ti-ivory-envelope-emblem__icon {animation:priglo-envelope-invite 2.35s ease-in-out infinite;}
@keyframes priglo-envelope-invite {
  0%,100%{transform:rotate(-8deg) translateX(-2px)}
  20%{transform:rotate(8deg) translateX(2px)}
  40%{transform:rotate(-6deg) translateX(-1px)}
  55%,72%{transform:rotate(0) translateX(0)}
}
@media(prefers-reduced-motion:reduce){.ti-opening--ivory .ti-ivory-envelope-emblem__icon{animation:none!important;}}
/* The whole hero photo/text area must allow a natural vertical gesture. */
.ip-invite .ip-hero,.ip-invite .ip-hero *:not(a):not(button),
.ip-invite .ip-viewport,.ip-invite .ip-perspective,
.iw-invite .iw-route,.iw-invite .iw-stage,.iw-invite .iw-perspective,
.iw-invite .iw-content {touch-action:pan-y pinch-zoom!important;}
.ip-invite .ip-portrait img,.iw-invite .iw-portrait img { -webkit-user-drag:none;user-select:none;}
.ip-invite .ip-portrait-edge,.ip-invite .ip-portrait-aura {pointer-events:none!important;}
