/* Gaura & Ramanuj — client-scoped additions on top of The Rose Procession. */
.rupal{--light:#F8EEE5;--pom:#6B293B;--brass:#8B5C35;--gold-soft:#E4C799;--night:#20243E;--wine:#4B2539;--champ:#EBD9C2}
.rupal .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rupal :focus-visible{outline:3px solid var(--gold-soft);outline-offset:3px;box-shadow:0 0 0 6px var(--pom)}

/* Cover: stacked host + date in the existing city slot. */
.rupal .cover-host-date{display:grid;gap:.15em;margin:0}
.rupal .cover-host-date p{margin:0}
.rupal .cover-host{font-size:.86em;letter-spacing:.04em;opacity:.92}
.rupal .cover-date{font-size:.92em}
.rupal .invitation-cover.cover-tiny .cover-label{display:none}

/* Hero, family, overview. */
.rupal .opening-welcome{font-family:var(--script,'Allura',cursive);font-size:clamp(1.6rem,5vw,2.4rem);color:var(--pom);margin:0 0 .3em}
.rupal .family-block p{margin:.3em 0;line-height:1.5}
.rupal .family-host{text-align:center;margin-top:1.4em;font-weight:600;color:var(--pom)}

/* Day thresholds: one shallow lintel, HTML date and title in a quiet field. */
.rupal .day-chapter{position:relative;padding-bottom:clamp(2rem,6vw,4rem)}
.rupal .day-threshold{position:relative;text-align:center;padding:0 5vw clamp(1.5rem,4vw,2.5rem)}
.rupal .jharokha-lintel{height:clamp(100px,18vw,180px);max-height:22vh;overflow:clip}
.rupal .jharokha-lintel svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2}
.rupal .lintel-flowers{fill:currentColor;opacity:.55;stroke:none}
.rupal .day-field{max-width:40rem;margin:-1.2rem auto 0;position:relative}
.rupal .day-date{font-size:1rem;letter-spacing:.08em;text-transform:uppercase;margin:0}
.rupal .day-field h2{margin:.25em 0 .1em}
.rupal .day-one{background:linear-gradient(#F8EEE5,#f6e3cf 55%,var(--wine) 100%);color:#5d2939}
.rupal .day-one .jharokha-lintel{color:#b07a5a}
.rupal .day-one .scene-evening{background:var(--wine);color:#f8ead8}
.rupal .day-two{background:linear-gradient(#F8EEE5,#f3e6d2 30%,#5a2a3b 60%,var(--night) 82%);color:#4a2a2c}
.rupal .day-two .jharokha-lintel{color:#9b7a3e}
.rupal .day-two .scene-procession{color:#fbecd9}
.rupal .day-three{background:linear-gradient(var(--champ),#e3cdb4 60%,var(--light));color:#3a2a33}
.rupal .day-three .jharokha-lintel{color:#9d6f63}

/* Facts strip: scan control at the leading edge, time first, then venue. */
.rupal .event-facts{margin-top:1.2em}
.rupal .scan-control{display:inline-flex;align-items:center;gap:.45em;min-height:44px;padding:.4em .9em;border:1.5px solid currentColor;border-radius:999px;color:inherit;text-decoration:none;font-size:.95rem;white-space:nowrap}
.rupal .scan-control:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
.rupal .scan-glyph{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.rupal .moon-glyph{width:1em;height:1em;fill:currentColor;vertical-align:-.12em;margin-right:.35em}
.rupal .event-subline{display:flex;align-items:center;gap:.6em;margin:.9em 0 0;font-size:.98rem}

/* Ceremony at night. */
.rupal .ceremony{position:relative;background:var(--night);color:#f6ead6;padding:clamp(2rem,6vw,4.5rem) 5vw;overflow:clip}
.rupal .ceremony-stars{position:absolute;inset:0;pointer-events:none;background:radial-gradient(1.5px 1.5px at 12% 18%,#f3dfb0,transparent),radial-gradient(1.2px 1.2px at 78% 12%,#f3dfb0,transparent),radial-gradient(1px 1px at 58% 30%,#f3dfb0,transparent),radial-gradient(1.4px 1.4px at 30% 8%,#f3dfb0,transparent),radial-gradient(1px 1px at 90% 40%,#f3dfb0,transparent);opacity:.8}
.rupal .ceremony-layout{position:relative;display:grid;gap:clamp(1.5rem,4vw,3rem);align-items:center}
@media(min-width:900px){.rupal .ceremony-layout{grid-template-columns:1fr 1fr}}
.rupal .art-placeholder{aspect-ratio:4/5;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,#323b63,var(--night));border-radius:4px}
.rupal .art-placeholder .moon-glyph{width:64px;height:64px;color:var(--gold-soft)}

/* Dress: static list first, readable everywhere. */
.rupal .dress{background:var(--light);color:#4a2a2c;text-align:center}
.rupal .dress-list{list-style:none;margin:2rem auto 0;padding:0;display:grid;gap:2rem;max-width:1100px}
@media(min-width:760px){.rupal .dress-list{grid-template-columns:repeat(2,1fr)}}
.rupal .dress-item{display:grid;gap:1rem;justify-items:center}
.rupal .dress-figure{margin:0;width:min(78vw,320px)}
.rupal .outfit-image{width:100%;height:auto;display:block}
.rupal .outfit-placeholder{aspect-ratio:4/5;display:grid;grid-template-columns:repeat(3,1fr);align-items:end;border-radius:6px;overflow:hidden;background:#f1e2d2;position:relative}
.rupal .outfit-placeholder span{height:62%}
.rupal .outfit-placeholder small{position:absolute;inset:auto 0 .6em;font-size:.8rem;color:#5d4438}
.rupal .dress-colours{display:inline-flex;align-items:center;gap:.6em}
.rupal .swatches{display:inline-flex;gap:4px}
.rupal .swatch{width:18px;height:18px;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px rgba(60,30,20,.45)}

/* Enhanced stage (shown only when the journey module enables it). */
.rupal .dress.is-enhanced .dress-list{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.rupal .dress-stage{position:relative}

.rupal .dress-track{display:flex;will-change:transform}

.rupal .dress-card>*{width:100%}
.rupal .dress-motifs{position:absolute;inset:0;pointer-events:none;overflow:clip}
.rupal .motif{position:absolute;width:42px;height:42px;opacity:.35;background:radial-gradient(circle,var(--gold-soft) 40%,transparent 41%);animation:motif-drift 9s ease-in-out infinite alternate}
.rupal .motif-leaf{top:12%;left:6%;animation-duration:7s}.rupal .motif-flower{bottom:16%;left:46%;animation-duration:11s}.rupal .motif-foil{top:20%;right:8%}
.rupal .dress.motifs-paused .motif{animation-play-state:paused}
@keyframes motif-drift{from{transform:translate(-6px,-4px)}to{transform:translate(6px,4px)}}
@media(max-width:899px){
 
 
}

/* Venues. */
.rupal .venues{background:var(--light);color:#4a2a2c}
.rupal .venue-locations{display:grid;gap:1.4rem;max-width:960px;margin:0 auto}
@media(min-width:760px){.rupal .venue-locations{grid-template-columns:1fr 1fr}}
.rupal .venue-card{padding:1.4rem;border:1px solid color-mix(in srgb,var(--brass) 45%,transparent);border-radius:8px;background:#fffaf2}
.rupal .venue-card address{font-style:normal;line-height:1.55;margin:.4em 0}
.rupal .venue-events{font-size:.95rem;opacity:.85}
.rupal .venue-pending{font-style:italic;color:var(--brass)}

/* Venue dialog. */
html.venue-locked{overflow:hidden;padding-right:var(--venue-gap,0)}
html.venue-locked .floating-tools{visibility:hidden}
.rupal .venue-dialog{border:0;padding:0;background:transparent;max-width:min(92vw,440px);max-height:92svh}
.rupal .venue-dialog::backdrop{background:rgba(20,18,30,.6);backdrop-filter:blur(4px)}
@media(prefers-reduced-motion:reduce){.rupal .venue-dialog::backdrop{backdrop-filter:none}}
.rupal .venue-dialog-body{background:var(--light);color:#3a2530;border-radius:12px;padding:1.6rem;max-height:92svh;overflow:auto;display:grid;gap:.9rem;text-align:center}
.rupal .venue-dialog-body h2{margin:0;font-size:1.5rem}
.rupal .venue-dialog-code svg{width:clamp(220px,60vw,260px);height:auto;margin:0 auto;display:block}
.rupal .venue-dialog-pending[hidden],.rupal .venue-dialog-code[hidden],.rupal .venue-dialog-scan[hidden],.rupal .venue-dialog-actions[hidden]{display:none}
.rupal .venue-dialog-code img{display:block;width:clamp(220px,60vw,260px);height:auto;margin:0 auto;image-rendering:pixelated;background:#FBF6EC}
.rupal .venue-dialog-pending{display:flex;align-items:center;justify-content:center;gap:.5em;font-style:italic}
.rupal .venue-dialog-actions{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap}
.rupal .venue-dialog-close{position:sticky;bottom:0;min-height:44px}

/* Guest services and farewell. */
.rupal .gift-section,.rupal .blessings-section,.rupal .invitation-share{background:var(--light);text-align:center}
.rupal .guest-board-action{max-width:36rem;margin:0 auto}
.rupal .painted-farewell h2{font-size:clamp(1.6rem,5vw,2.4rem)}
.rupal .farewell-host{opacity:.85}
@media print{.rupal .dress-stage,.rupal .venue-dialog,.rupal .scan-control{display:none!important}.rupal .dress.is-enhanced .dress-list{position:static;width:auto;height:auto;clip:auto}}

/* ===== Round 2 ===== */
/* Hero: a single Jaipur line under the names. */
.rupal .opening-place{font-family:'Cormorant',serif;font-size:clamp(1.25rem,3.6vw,1.6rem);letter-spacing:.14em;text-transform:uppercase;color:var(--pom);margin:.6em 0 0}
.rupal .opening-sentence{max-width:34ch;margin-inline:auto;text-wrap:balance}
.rupal #couple-names{overflow-wrap:anywhere;text-wrap:balance}

/* Family: grandparents first, then parents, each with its own label. */
.rupal .family-attribution{display:grid;gap:clamp(1.8rem,5vw,3.5rem);max-width:980px;margin:1.6rem auto 0;padding-inline:clamp(1rem,4vw,2rem)}
@media(min-width:760px){.rupal .family-attribution{grid-template-columns:1fr 1fr}}
.rupal .family-block{text-align:center}
.rupal .family-block h3{font-family:'Cormorant',serif;font-size:clamp(1.8rem,4.6vw,2.4rem);margin:0 0 .5em;color:var(--pom)}
.rupal .family-group+.family-group{margin-top:1.3em}
.rupal .family-label{font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:#7a4b3a;margin:0 0 .25em}
.rupal .family-names{font-size:clamp(17px,4.4vw,21px);line-height:1.55;margin:0;color:#3d2228;text-wrap:balance}
.rupal .family-host{display:block;text-align:center;margin:2.2rem auto 0;font-family:'Cormorant',serif;font-size:clamp(1.15rem,3.2vw,1.4rem)}

/* Painted day thresholds (raster art replaces the SVG lintel when present). */
.rupal .day-border{display:flex;align-items:flex-start;width:min(100%,1120px);height:clamp(64px,11vw,120px);margin:0 auto clamp(.75rem,2vw,1.25rem)}
.rupal .day-border-cap{flex:none;height:100%;width:auto}
.rupal .day-border-tile{flex:1 1 auto;min-width:0;height:100%;margin:0 -1px;background:url("images/border-tile-200.webp") left top/auto 100% repeat-x}

/* Structured event facts: Date / Time / Venue, then actions. */
.rupal .fact-list{display:grid;gap:.5em 1.6em;margin:0;grid-template-columns:repeat(auto-fit,minmax(9.5rem,max-content))}
.rupal .fact-list div{min-width:0}
.rupal .fact-list dt{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;opacity:.82;margin:0}
.rupal .fact-list dd{margin:.15em 0 0;font-size:1.06rem;font-weight:600;line-height:1.35}
.rupal .fact-zone{font-weight:400;font-size:.85em;opacity:.8}
.rupal .event-subline{display:flex;flex-wrap:wrap;align-items:center;gap:.4em 1em;margin:1em 0 0;padding-top:.8em;border-top:1px solid color-mix(in srgb,currentColor 25%,transparent);font-size:1rem}
.rupal .subline-text{font-weight:600}
.rupal .event-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin-top:1.3em}
.rupal .scan-control,.rupal .text-action{display:inline-flex;align-items:center;gap:.45em;min-height:44px;padding:.35em .95em;border:1.5px solid currentColor;border-radius:999px;color:inherit;text-decoration:none;font-size:.95rem;white-space:nowrap;background:transparent}
.rupal .text-action-quiet{border-color:transparent;text-decoration:underline;text-underline-offset:3px;padding-inline:.4em}
.rupal .calendar-save{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.25rem .4rem}
.rupal .text-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.rupal .scan-control:hover,.rupal .text-action:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
.rupal .scan-control:active,.rupal .text-action:active{background:color-mix(in srgb,currentColor 18%,transparent)}

/* Event titles: one shared scale, clearly above logistics. */
.rupal .painted-scene h3,.rupal .painted-scene h4,.rupal .ceremony h3{font-family:'Cormorant',serif;font-size:clamp(2rem,5.4vw,3rem);line-height:1.05;margin:0 0 .3em;hyphens:manual;overflow-wrap:normal}
.rupal .scene-subtitle{font-size:.95rem;letter-spacing:.06em;margin:-.15em 0 .6em;opacity:.85}
.rupal .scene-copy{padding:clamp(1.25rem,4vw,2rem) clamp(1.25rem,5vw,2.5rem)}

/* Diptych: centred, real gutters, shorter intentional crop. */
.rupal .garden-diptych{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.5rem,3vw,2.5rem);max-width:1180px;margin:0 auto;padding-inline:clamp(1rem,4vw,2.5rem);align-items:stretch}
.rupal .garden-diptych .painted-scene:nth-child(2){margin-top:0}
.rupal .garden-diptych .painted-scene{flex-direction:column;gap:0;min-width:0}
.rupal .garden-diptych .painted-scene{display:flex;flex-direction:column;border-radius:10px;overflow:clip;background:color-mix(in srgb,#fff 55%,transparent)}
.rupal .garden-diptych .painted-image{aspect-ratio:4/3;object-fit:cover;object-position:50% 40%;width:100%;height:auto}
@media(min-width:880px){.rupal .garden-diptych{grid-template-columns:1fr 1fr}.rupal .garden-diptych .painted-image{aspect-ratio:5/4}}

/* Contrast: Baarat on warm paper uses dark pomegranate ink. */
.rupal .day-two .scene-procession{color:#5a1f2e}
.rupal .day-two .scene-procession .scene-copy{background:#fbf1e4;border-radius:10px}

/* Dress: centred pinned stage, one fixed painted banner below. */
.rupal .dress .section-heading{max-width:40rem;margin-inline:auto}
.rupal .dress-caption{font-family:'Cormorant',serif;font-size:1.35rem;margin-top:.5rem;color:var(--pom)}
.rupal .dress-item .dress-colours,.rupal .dress-item .dress-line{margin:.25em 0;font-size:1rem}
.rupal .dress-note{margin:1.6rem auto 0;font-style:italic;color:var(--pom)}
.rupal .dress{--dress-fit:1}
.rupal .dress-sticky{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(8px,1.6vh,18px);overflow:clip}
.rupal .dress-viewport{position:relative;width:100%;overflow:clip;padding-block:clamp(14px,4vh,40px)}
.rupal .dress-track{display:flex;gap:clamp(12px,2.4vw,36px);will-change:transform}
.rupal .dress-card{flex:0 0 auto;width:calc(min(26vw,340px,46svh * .8) * var(--dress-fit));display:grid;place-items:center}
.rupal .dress-card-art{width:100%;transform-origin:50% 60%;will-change:transform}
.rupal .dress-card img{width:100%;height:auto;display:block}
.rupal .dress-banner{position:relative;width:min(92vw,560px);display:grid;place-items:center;flex:0 0 auto}
.rupal .dress-banner-art{width:100%;height:auto;aspect-ratio:1120/240;display:block}
.rupal .dress-banner-name{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding-inline:14%;font-family:'Cormorant',serif;font-size:clamp(1.05rem,3.6vw,1.6rem);font-weight:600;color:#4b1f2b;white-space:nowrap;overflow:hidden;transition:opacity 140ms ease}
.rupal .dress-banner-name.is-leaving{opacity:0}
@media(max-width:899px){
 .rupal .dress-card{width:calc(min(56vw,300px,44svh * .8) * var(--dress-fit))}
 .rupal .dress-banner-name{font-size:clamp(.95rem,4.4vw,1.25rem)}
}
@media(prefers-reduced-motion:reduce){.rupal .dress-banner-name{transition:none}}

/* Venues: illustrated cards, no per-venue event roster. */
.rupal .venue-events{display:none}
.rupal .venue-art{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px;margin-bottom:1rem}
.rupal .venue-card .scan-control{margin-top:.9rem}

/* Share: two primary actions, quiet aligned Copy link. */
.rupal .share-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem 1rem;max-width:36rem;margin:1rem auto 0}
.rupal .share-actions>*{min-height:44px;white-space:nowrap}
@media(max-width:480px){.rupal .share-actions{flex-direction:column;align-items:stretch}.rupal .share-actions>*{width:100%;justify-content:center}}

/* Illustrated venue cards (Round 2 #12). */
.rupal .venue-art{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:6px;margin:0 0 1rem}


/* Painted gift and blessing details (Round 2 #13). */
.rupal .section-detail-art{display:block;width:min(100%,640px);height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:6px;margin:0 auto 1.4rem}


/* Painted Shiv-Parvati farewell (Round 2 #15). */
.rupal .painted-farewell{position:relative;display:grid;padding:0;overflow:hidden;background:#232a5a;color:#f6ecd9}
.rupal .painted-farewell>*{grid-area:1/1}
.rupal .farewell-art{width:100%;height:auto;min-height:420px;aspect-ratio:3/2;object-fit:cover;object-position:50% 100%}
.rupal .farewell-text{align-self:start;text-align:center;padding:clamp(2rem,7vw,4.5rem) 1.25rem 0}


/* Round 2b owner fixes. */
/* 6: dress pair a little larger, banner a little smaller. */
.rupal .dress-card{width:calc(min(30vw,380px,52svh * .8) * var(--dress-fit))}
.rupal .dress-banner{width:min(80vw,460px)}
@media(max-width:899px){.rupal .dress-card{width:calc(min(62vw,330px,48svh * .8) * var(--dress-fit))}.rupal .dress-banner{width:min(78vw,380px)}}
/* 7: equal-height venue cards side by side; address reserves rows. */
.rupal .venue-locations{align-items:stretch}
.rupal .venue-card{display:flex;flex-direction:column;height:100%}
.rupal .venue-card address{flex:1 0 auto}
.rupal .venue-card .venue-map-actions{margin-top:auto;padding-top:1rem}
/* 2: no gap between event painting and its info block. */
.rupal .painted-scene{gap:0}
.rupal .painted-scene .painted-image{margin-bottom:0;display:block}
.rupal .garden-diptych .painted-scene .scene-copy{margin-top:0}
/* 9: gift and blessings as compact side-by-side panels on laptop. */
@media(min-width:900px){.rupal .guest-board-action:not([hidden]),.rupal .blessings-panel{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);column-gap:2.5rem;align-items:center;max-width:980px;margin-inline:auto;text-align:left}.rupal .guest-board-action>.section-detail-art,.rupal .blessings-panel>.section-detail-art{grid-row:1 / span 4;width:100%;margin:0}.rupal .blessings-panel>#printed-blessings,.rupal .blessings-panel>.blessing-grid{grid-column:1 / -1;margin-top:2rem}}

.rupal .painted-scene .scene-art{margin:0;padding:0;line-height:0;align-self:stretch}
.rupal .painted-scene .scene-art img,.rupal .painted-scene .scene-art picture{display:block;margin:0}
.rupal .garden-diptych .painted-scene>.scene-copy{flex:1 1 auto}

/* 8: Saat Phere stacks on phones (template two-column grid was leaking through). */
@media(max-width:899px){.rupal .ceremony-layout{grid-template-columns:minmax(0,1fr);justify-items:center}.rupal .ceremony-art{width:min(100%,460px)}.rupal .ceremony-details{width:100%;max-width:34rem}.rupal .ceremony .event-actions{flex-direction:column;align-items:stretch}.rupal .ceremony .event-actions>*{justify-content:center}}

/* 9b: blessings laptop: heading, line and action in the right rail; wall below full width. */
@media(min-width:900px){.rupal .blessings-panel{grid-template-rows:auto auto auto 1fr}.rupal .blessings-panel>*{grid-column:2}.rupal .blessings-panel>.section-detail-art{grid-column:1;grid-row:1 / span 4;align-self:center}.rupal .blessings-panel>h2{grid-row:1;align-self:end;margin:0}.rupal .blessings-panel>p{grid-row:2;margin:.4rem 0 1.2rem}.rupal .blessings-panel>button,.rupal .blessings-panel>.button{grid-row:3;justify-self:start;width:auto;margin:0}.rupal .blessings-panel>#printed-blessings{grid-column:1 / -1;grid-row:5;margin-top:2rem}.rupal .gift-section,.rupal .blessings-section{padding-block:clamp(2.5rem,5vw,4rem)}}

