/* Editable text and real customer media over a composed ivory artwork plate. */
body[data-theme="royal-burgundy"] .desktop-stage .phone-shell.invitation-phone .phone-content.cover-content{
  position:relative;display:block;width:100%;height:min(850px,calc(100dvh - var(--preview-height,0px)));min-height:0;
  padding:0;overflow:hidden;border:0;border-radius:18px;
  background:#fbf2df url('/assets/kislap-royal-cover-v2.webp') center/100% 100% no-repeat;
  color:#650c1d;
}
body[data-theme="royal-burgundy"] .cover-photo-wrap{
  position:absolute;z-index:1;top:5.3%;left:16.5%;width:67%;height:25.7%;min-height:0;
  margin:0;overflow:hidden;border:2px solid #b5823e;border-radius:49% 49% 8px 8px;
  outline:2px solid #fff7e4;box-shadow:0 5px 16px #6b351b52;background:#f6e9d3;
}
body[data-theme="royal-burgundy"] .cover-photo-wrap img{width:100%;height:100%;object-fit:cover;object-position:center 29%}
body[data-theme="royal-burgundy"] .cover-photo-fade{inset:78% 0 0;background:linear-gradient(transparent,#fff1dabb)}
body[data-theme="royal-burgundy"] .cover-copy-mobile{
  position:absolute;z-index:2;top:32%;left:9%;width:82%;margin:0;padding:0;
  color:#680e20;background:transparent;text-align:center;
}
body[data-theme="royal-burgundy"] .cover-copy-mobile .smallcaps{
  margin:0 0 3px;font:400 clamp(8px,2vw,10px)/1.15 Georgia,serif;
  letter-spacing:.24em;color:#815332;
}
body[data-theme="royal-burgundy"] .cover-copy-mobile h2{
  margin:0;color:#710d20;font:400 clamp(37px,min(10.5vw,6.6dvh),63px)/.86 Georgia,serif;
  letter-spacing:-.065em;text-shadow:0 1px #fff5e5;
}
body[data-theme="royal-burgundy"] .cover-copy-mobile .event-title{
  max-width:18ch;margin:2px auto 0;color:#750e20;
  font:400 clamp(17px,min(5vw,2.85dvh),26px)/.98 Georgia,serif;
  letter-spacing:-.025em;text-transform:uppercase;text-wrap:balance;
}
body[data-theme="royal-burgundy"] .cover-copy-mobile .gold-divider{margin:3px auto 0}
body[data-theme="royal-burgundy"] .cover-copy-mobile .full-name{
  margin:1px auto 0;color:#946837;font:400 clamp(7px,1.8vw,10px)/1.1 Georgia,serif;
  letter-spacing:.18em;text-transform:uppercase;
}
body[data-theme="royal-burgundy"] .invitation-details-card{
  max-width:100%;margin:5px auto 0;padding:0;border:0;background:none;box-shadow:none;
}
body[data-theme="royal-burgundy"] .invitation-details-card .event-info{
  display:grid;gap:2px;max-width:250px;margin:0 auto 5px;text-align:left;
}
body[data-theme="royal-burgundy"] .invitation-details-card .event-row{display:flex;align-items:center;gap:7px;min-height:20px}
body[data-theme="royal-burgundy"] .invitation-details-card .event-row .icon{
  display:grid;place-items:center;flex:none;width:19px;height:19px;border-radius:50%;
  background:#eacb93;color:#681625;font-size:10px;
}
body[data-theme="royal-burgundy"] .invitation-details-card .event-row b,
body[data-theme="royal-burgundy"] .invitation-details-card .event-row small{
  display:block;overflow:hidden;max-width:24ch;color:#63302a;
  font:400 clamp(8px,2.1vw,10px)/1.12 Georgia,serif;text-overflow:ellipsis;white-space:nowrap;text-transform:none;
}
body[data-theme="royal-burgundy"] .invitation-details-card .event-row small{font-size:clamp(7px,1.9vw,9px);color:#8f6d53}
body[data-theme="royal-burgundy"] .invitation-details-card .primary-btn{
  min-height:clamp(36px,5.2dvh,44px);width:100%;margin:5px 0 0;
  border:1px solid #e3be78;border-radius:999px;
  background:linear-gradient(#9f172e,#71091e);color:#fff3df;
  box-shadow:inset 0 1px #f8b5a9,0 3px 0 #a46b39,0 5px 12px #6a102746;
  font:400 clamp(13px,3.5vw,17px)/1 Georgia,serif;
}
body[data-theme="royal-burgundy"] .invitation-details-card .primary-btn:hover{filter:brightness(1.12);transform:translateY(-2px)}
body[data-theme="royal-burgundy"] #openGalleryBtn{
  display:inline-block;min-height:28px;margin:7px auto 0;padding:4px 18px;
  border:1px solid #d3a567;border-radius:99px;background:#fff8ecdb;
  color:#792237;box-shadow:0 2px 6px #79543b24;
  font:400 clamp(10px,2.4vw,12px)/1.2 Georgia,serif;
}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee{
  position:absolute;z-index:2;top:70.6%;left:17%;width:66%;max-width:none;
  height:10%;margin:0;padding:0;overflow:hidden;color:#782436;
}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee-heading{
  display:flex;align-items:center;justify-content:space-between;padding:0 0 3px;
  color:#782436;font:italic clamp(9px,2.4vw,12px)/1 Georgia,serif;
}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee-heading button{font:400 8px/1 Arial,sans-serif}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee-track{gap:5px;padding:0}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee-item{
  width:clamp(54px,17vw,83px);height:clamp(53px,8.5dvh,74px);margin:0;
  border:2px solid #fffaf0;border-bottom-width:9px;box-shadow:0 2px 6px #4d1b1d4a;
}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee.photos-static .photo-marquee-track{animation:none}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee.photos-static .photo-marquee-item[aria-hidden="true"]{display:none}
body[data-theme="royal-burgundy"] .cover-content .photo-marquee.photos-static .photo-marquee-viewport{overflow-x:auto;mask-image:none}
body[data-theme="royal-burgundy"] .invitation-quiet-links{
  position:absolute;z-index:3;left:30%;bottom:1.3%;width:40%;margin:0;padding:0;
  justify-content:center;gap:5px;color:#7a2131;
}
body[data-theme="royal-burgundy"] .invitation-quiet-links a{
  min-height:20px;padding:3px 8px;border:1px solid #caa66b;border-radius:99px;
  background:#fff1d6da;color:#6c1b2b;font:400 9px/1.2 Georgia,serif;text-decoration:none;
}
body[data-theme="royal-burgundy"] .invitation-quiet-links a:first-child{font:italic 12px/1 Georgia,serif}
body[data-theme="royal-burgundy"] .invitation-quiet-links a:hover{background:#fff8e6;box-shadow:0 2px 9px #8b522c55}
body[data-theme="royal-burgundy"] .invitation-footer{display:none}

/* The five mobile screens reuse the same real portrait and stationery art. */
body[data-theme="royal-burgundy"] .form-page .step-memory{
  flex:1 1 auto;min-height:0;margin:8px auto 0;padding:5px 0 clamp(15px,3dvh,30px);
  justify-content:flex-end;
}
body[data-theme="royal-burgundy"] .form-page .step-memory::before{inset:auto 5% 1%;height:70%;background:radial-gradient(ellipse,#f2ce8a55,transparent 70%)}
body[data-theme="royal-burgundy"] .form-page .step-portrait,
body[data-theme="royal-burgundy"] .form-page .step-memory-compact .step-portrait{
  width:clamp(110px,22dvh,170px);height:clamp(110px,22dvh,170px);
  margin:0;border:4px solid #fff8e9;border-radius:50%;outline:2px solid #b88942;
  box-shadow:0 7px 0 #d1a466,0 12px 22px #5320164d;transform:none;
}
body[data-theme="royal-burgundy"] .form-page .step-portrait figcaption{display:none}
body[data-theme="royal-burgundy"] .form-page .step-memory-compact{
  flex:0 0 auto;min-height:0;margin-top:auto;padding-bottom:clamp(12px,2.5dvh,25px);
}
body[data-theme="royal-burgundy"] .form-page .step-memory-compact .step-portrait{
  width:clamp(95px,16dvh,132px);height:clamp(95px,16dvh,132px);
}
body[data-theme="royal-burgundy"] .verse-page .verse-results{
  display:grid;grid-template-columns:1fr;gap:6px;flex:0 1 auto;
  width:100%;max-height:clamp(145px,28dvh,235px);min-height:0;
  margin:3px 0 0;padding:2px 1px 5px;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
}
body[data-theme="royal-burgundy"] .verse-page .verse-item{
  display:grid;grid-template-columns:16px 1fr;align-items:center;gap:7px;
  width:100%;min-height:42px;padding:7px 11px;
  border:1px solid #dcc49c;border-radius:10px;background:#fff9efee;
  color:#5f1928;text-align:left;white-space:normal;
}
body[data-theme="royal-burgundy"] .verse-page .verse-item b{font:600 12px/1.2 Georgia,serif;white-space:normal}
body[data-theme="royal-burgundy"] .verse-page .verse-item:hover{border-color:#9c6a3a;background:#fffef7}
body[data-theme="royal-burgundy"] .verse-page .step-memory{display:none}
body[data-theme="royal-burgundy"] .verse-page #verseNext{margin-top:8px}

.owner-page-preview{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  padding:11px 16px;border-bottom:1px solid #e5d4bd;background:#fff8ee;
}
.owner-page-preview small{width:100%;color:#8b6c54;font:700 9px/1.3 Arial,sans-serif;letter-spacing:.15em}
.owner-page-preview button{
  min-height:30px;padding:5px 9px;border:1px solid #cdb396;border-radius:99px;
  background:#fffdf8;color:#6b2030;font:500 11px/1 Arial,sans-serif;cursor:pointer;
}
.owner-page-preview button:hover,.owner-page-preview button:focus-visible{
  background:#73142a;color:#fff7e8;outline:2px solid #c69c62;outline-offset:1px;
}
@media(max-width:750px){
  body[data-theme="royal-burgundy"] .desktop-stage .phone-shell.invitation-phone .phone-content.cover-content{
    height:calc(100dvh - var(--preview-height,0px));min-height:0;max-height:none;
    border-radius:0;overflow:hidden;padding:0;
  }
  body[data-theme="royal-burgundy"] .screen[data-screen="cover"],
  body[data-theme="royal-burgundy"] .desktop-stage,
  body[data-theme="royal-burgundy"] .phone-shell.invitation-phone{height:calc(100dvh - var(--preview-height,0px));min-height:0;overflow:hidden}
}
@media(max-height:690px){
  body[data-theme="royal-burgundy"] .cover-copy-mobile{top:31.5%}
  body[data-theme="royal-burgundy"] .cover-copy-mobile h2{font-size:clamp(34px,9vw,47px)}
  body[data-theme="royal-burgundy"] .cover-copy-mobile .event-title{font-size:clamp(15px,4.4vw,20px)}
  body[data-theme="royal-burgundy"] .invitation-details-card .primary-btn{min-height:34px}
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="royal-burgundy"] .cover-content .photo-marquee-track{animation:none!important}
}
