/* dayof.css: the day-of widget rendered by dayof.js into #xv-live on the invite.
   Live: a navy program card with gold leaf ("Ahora"), the next item on a dotted leader like the printed program, the
   guest's escort card for "Mi mesa". Gracias: a sealed thank-you letter with the approved photos as small prints.
   Everything is scoped to #xv-live and carries its own fallbacks, so it does not depend on the page's variables. */
#xv-live[hidden]{display:none!important}
#xv-live{
  --xvl-navy:var(--navy,#1B2A4E);
  --xvl-navy-deep:var(--navy-deep,#0F1A33);
  --xvl-paper:var(--paper,#FBF8F2);
  --xvl-gold:#C9A050;
  --xvl-gold-deep:#A8854A;
  --xvl-gold-dark:#7E6131;
  --xvl-gold-hi:#D7B97A;
  --xvl-cream:#F3E8CE;
  --xvl-champagne:#E9D3A0;
  --xvl-script:var(--script,"Great Vibes","Snell Roundhand","Apple Chancery",cursive);
  --xvl-serif:var(--serif,"EB Garamond",Garamond,"Times New Roman",serif);
  position:relative;
  z-index:1;
  max-width:520px;
  margin:22px auto 8px;
  padding:0 4px;
  font-family:var(--xvl-serif);
  font-size:18px;
  line-height:1.5;
  color:var(--xvl-navy);
}
#xv-live *{box-sizing:border-box}
#xv-live p,#xv-live h2,#xv-live h3,#xv-live figure,#xv-live blockquote{margin:0;font-weight:400}
#xv-live .xvl-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#xv-live a:focus-visible{outline:2px solid var(--xvl-gold-hi);outline-offset:3px}
#xv-live .xvl-gracias a:focus-visible{outline-color:var(--xvl-gold-deep)}

/* ---------- live: the "Ahora / Now" card ---------- */
#xv-live .xvl-card{
  position:relative;
  padding:28px 22px 26px;
  text-align:center;
  color:var(--xvl-cream);
  background:radial-gradient(ellipse 120% 70% at 50% 0,#24375F 0%,#1B2A4E 45%,#13213F 100%);
  box-shadow:0 2px 3px rgba(15,26,51,.25),0 26px 40px -24px rgba(15,26,51,.75);
}
#xv-live .xvl-card::before{content:"";position:absolute;inset:8px;border:1px solid rgba(215,185,122,.5);pointer-events:none}
#xv-live .xvl-card::after{content:"";position:absolute;inset:12px;border:1px solid rgba(215,185,122,.18);pointer-events:none}
#xv-live .xvl-card>*{position:relative;z-index:1}
#xv-live .xvl-kicker{display:inline-flex;align-items:center;gap:9px;font-style:italic;font-size:19px;letter-spacing:.02em;color:var(--xvl-champagne)}
#xv-live .xvl-pulse{flex:none;width:9px;height:9px;border-radius:50%;background:var(--xvl-gold-hi);box-shadow:0 0 0 0 rgba(215,185,122,.55);animation:xvl-pulse 2.4s ease-out infinite}
@keyframes xvl-pulse{0%{box-shadow:0 0 0 0 rgba(215,185,122,.55)}70%{box-shadow:0 0 0 11px rgba(215,185,122,0)}100%{box-shadow:0 0 0 0 rgba(215,185,122,0)}}
#xv-live .xvl-item{
  margin-top:2px;
  padding:0 .12em .04em;
  font-family:var(--xvl-script);
  font-size:46px;
  font-size:clamp(42px,5vw + 26px,58px);
  line-height:1.15;
  text-wrap:balance;
  overflow-wrap:anywhere;
  background-image:linear-gradient(100deg,#B8955A 0%,#D7B97A 32%,#F6E7C1 50%,#D7B97A 66%,#B8955A 100%);
  background-size:240% 100%;
  background-position:70% 0;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}
#xv-live .xvl-at{font-size:19px;letter-spacing:.05em;color:var(--xvl-champagne);font-variant-numeric:lining-nums}
#xv-live .xvl-ann{max-width:32ch;margin:16px auto 0;padding-top:14px;background:linear-gradient(90deg,rgba(215,185,122,0),rgba(215,185,122,.55) 30%,rgba(215,185,122,.55) 70%,rgba(215,185,122,0)) top/100% 1px no-repeat}
#xv-live .xvl-ann-text{font-size:20px;font-style:italic;line-height:1.45;color:#FBF8F2;overflow-wrap:anywhere;white-space:pre-line}
#xv-live .xvl-ann-time{margin-top:4px;font-size:14px;color:rgba(233,211,160,.78);font-variant-numeric:lining-nums}
#xv-live .xvl-next{max-width:380px;margin:18px auto 0;text-align:left}
#xv-live .xvl-next-label{font-size:15px;font-style:italic;color:rgba(233,211,160,.82)}
#xv-live .xvl-next-row{display:flex;align-items:flex-end;gap:8px;font-size:18px;line-height:1.4;color:var(--xvl-cream)}
#xv-live .xvl-next-item{min-width:0}
#xv-live .xvl-lead{flex:1;min-width:14px;border-bottom:1px dotted rgba(233,211,160,.45);transform:translateY(-6px)}
#xv-live .xvl-next-time{flex:none;color:var(--xvl-champagne);font-variant-numeric:lining-nums tabular-nums}
/* on a phone a long item wraps; the leader would float away from it, so the next item stacks, centred */
@media (max-width:479px){
  #xv-live .xvl-next{text-align:center}
  #xv-live .xvl-next-row{flex-direction:column;align-items:center;gap:0}
  #xv-live .xvl-lead{display:none}
}
/* the guest's escort card, set on the navy card like a place card on a tablecloth */
#xv-live .xvl-table{display:inline-flex;align-items:baseline;gap:10px;margin:22px auto 0;padding:9px 22px 11px;background:var(--xvl-paper);color:var(--xvl-navy);box-shadow:0 1px 2px rgba(0,0,0,.25),0 10px 18px -10px rgba(0,0,0,.6);transform:rotate(-1.2deg)}
#xv-live .xvl-table-word{font-style:italic;font-size:17px;color:#5E564B}
#xv-live .xvl-table-num{font-size:32px;line-height:1;font-weight:500;font-variant-numeric:lining-nums;background-image:linear-gradient(100deg,#7E6131 0%,#A8854A 30%,#D7B97A 50%,#A8854A 70%,#7E6131 100%);background-size:220% 100%;background-position:80% 0;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
#xv-live .xvl-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px}
#xv-live .xvl-btn{flex:1 1 200px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:10px 18px;border:1px solid rgba(233,211,160,.6);color:var(--xvl-cream);text-decoration:none;font-size:17px;letter-spacing:.02em;line-height:1.25;text-align:center;transition:background-color .2s,color .2s,border-color .2s}
#xv-live .xvl-btn:hover{background:rgba(233,211,160,.12);border-color:var(--xvl-champagne)}
#xv-live .xvl-watch{flex-basis:100%;border-color:transparent;color:var(--xvl-navy-deep);font-size:19px;background:linear-gradient(100deg,#B8955A 0%,#D7B97A 40%,#EBD6A6 52%,#D7B97A 64%,#B8955A 100%)}
#xv-live .xvl-watch:hover{background:linear-gradient(100deg,#C4A267 0%,#E2C68C 40%,#F3E2B8 52%,#E2C68C 64%,#C4A267 100%);border-color:transparent}
#xv-live .xvl-rec{flex:none;width:10px;height:10px;border-radius:50%;background:#A3302F;box-shadow:0 0 0 3px rgba(163,48,47,.22)}

/* ---------- gracias: the thank-you letter ---------- */
#xv-live .xvl-gracias{padding-top:34px}
#xv-live .xvl-paper{
  position:relative;
  padding:44px 22px 28px;
  text-align:center;
  background:var(--xvl-paper) url("assets/linen.webp");
  background-size:400px 400px;
  background-blend-mode:soft-light;
  box-shadow:0 1px 2px rgba(40,30,20,.16),0 18px 34px -18px rgba(40,30,20,.5);
}
#xv-live .xvl-paper::before{content:"";position:absolute;inset:8px;border:1px solid rgba(168,133,74,.55);pointer-events:none}
#xv-live .xvl-paper>*{position:relative}
#xv-live .xvl-seal{position:absolute;left:50%;top:-34px;width:72px;height:auto;margin-left:-36px;filter:drop-shadow(0 6px 8px rgba(0,0,0,.3))}
#xv-live .xvl-thanks{font-family:var(--xvl-script);font-size:42px;font-size:clamp(40px,4vw + 26px,52px);line-height:1.15;color:var(--xvl-navy);text-wrap:balance}
#xv-live .xvl-thanks-text{max-width:30ch;margin:10px auto 0;font-size:19px;font-style:italic;line-height:1.5;color:#5E564B;text-wrap:pretty}
#xv-live .xvl-sign{margin-top:4px;font-family:var(--xvl-script);font-size:48px;line-height:1.15;padding:0 .1em;background-image:linear-gradient(100deg,#7E6131 0%,#A8854A 30%,#D7B97A 48%,#A8854A 64%,#7E6131 100%);background-size:240% 100%;background-position:90% 0;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
#xv-live .xvl-sub{margin:26px 0 12px;font-family:var(--xvl-script);font-size:34px;line-height:1.15;color:var(--xvl-navy)}
#xv-live .xvl-photos{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;grid-auto-flow:dense}
#xv-live .xvl-photos.is-few{grid-template-columns:repeat(2,minmax(0,1fr));max-width:340px;margin:0 auto}
#xv-live .xvl-photo{min-width:0}
#xv-live .xvl-photo.is-featured{grid-column:span 2;grid-row:span 2}
#xv-live .xvl-photos.is-few .xvl-photo.is-featured{grid-column:auto;grid-row:auto}
#xv-live .xvl-photo a{display:block;aspect-ratio:1;padding:3px;background:#FFFDF8;box-shadow:0 1px 2px rgba(40,30,20,.2),0 8px 14px -8px rgba(40,30,20,.45)}
/* the whole photo on its square paper mat: a framed photo (2:3) keeps its name band */
#xv-live .xvl-photo img{display:block;width:100%;height:100%;object-fit:contain;background:transparent}
#xv-live .xvl-msgs{display:grid;gap:12px;text-align:left}
#xv-live .xvl-msg{padding:16px 18px 8px;background:#FFFDF8;border:1px solid rgba(168,133,74,.3)}
#xv-live .xvl-msg-body{font-size:17px;line-height:1.5;color:#4A4640;white-space:pre-line;overflow-wrap:anywhere}
#xv-live .xvl-msg-name{text-align:right;font-family:var(--xvl-script);font-size:28px;line-height:1.2;color:var(--xvl-navy);overflow-wrap:anywhere}
#xv-live .xvl-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
#xv-live .xvl-ink{border-color:var(--xvl-navy);color:var(--xvl-navy);background:rgba(251,248,242,.5)}
#xv-live .xvl-ink:hover{background:var(--xvl-navy);color:var(--xvl-paper);border-color:var(--xvl-navy)}

/* ---------- the "Ahora" pill: fixed at the top while the banner is out of view (dayof.js appends it to <body>) ----------
   Below the notch (safe area), and below the language buttons while they are on screen (--xvl-pill-under, set by
   dayof.js); under the RSVP sheet (z 50), the opening envelope (60) and the photo viewer (80). */
#xv-now-pill{
  position:fixed;
  z-index:30;
  top:max(calc(env(safe-area-inset-top,0px) + 8px),var(--xvl-pill-under,0px));
  left:50%;
  translate:-50% -6px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  max-width:calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
  min-height:44px;
  margin:0;
  padding:9px 18px 10px 15px;
  border:1px solid rgba(215,185,122,.55);
  border-radius:999px;
  background:linear-gradient(180deg,#24375F 0%,#1B2A4E 100%);
  box-shadow:0 1px 2px rgba(15,26,51,.3),0 10px 22px -10px rgba(15,26,51,.7);
  color:#F3E8CE;
  font-family:var(--serif,"EB Garamond",Garamond,"Times New Roman",serif);
  font-size:17px;
  line-height:1.2;
  letter-spacing:.01em;
  white-space:nowrap;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease,translate .25s ease,visibility 0s linear .25s;
}
#xv-now-pill.is-on{opacity:1;visibility:visible;translate:-50% 0;transition:opacity .25s ease,translate .25s ease,visibility 0s}
#xv-now-pill .xvl-pill-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#D7B97A;box-shadow:0 0 0 0 rgba(215,185,122,.55);animation:xvl-pulse 2.4s ease-out infinite}
#xv-now-pill .xvl-pill-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
#xv-now-pill:focus-visible{outline:2px solid #D7B97A;outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  #xv-now-pill,#xv-now-pill.is-on{transition:none;translate:-50% 0}
  #xv-now-pill .xvl-pill-dot{animation:none}
}
.calm #xv-now-pill,.calm #xv-now-pill.is-on{transition:none;translate:-50% 0}
.calm #xv-now-pill .xvl-pill-dot{animation:none}

@media (min-width:600px){
  #xv-live .xvl-card{padding:34px 40px 30px}
  #xv-live .xvl-paper{padding:48px 40px 32px}
}
@media (prefers-reduced-motion:reduce){
  #xv-live .xvl-pulse{animation:none}
  #xv-live .xvl-btn{transition:none}
}
.calm #xv-live .xvl-pulse{animation:none}
