/* Custom changes for Siddhi & Siddarth. Loaded last so these rules win. */

/* Invitation card: Jain mangal shloka, styled like the hero blessing */
.floral-invitation .inv-card .inv-mangal{
  margin:0;
  color:#720106;
  font:600 clamp(.95rem,2.4vw,1.1rem)/1.9 var(--serif);
  letter-spacing:.01em;
  text-wrap:balance;
}

/* "with heavenly blessings of …" + grandmother's request */
.floral-invitation .inv-card .inv-request-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.6rem;
  max-width:36rem;
}
.floral-invitation .inv-card .inv-heavenly{
  margin:0;
  color:#6b1020;
  font:italic 500 clamp(1.1rem,2.8vw,1.35rem)/1.4 var(--serif);
  text-wrap:balance;
}
.floral-invitation .inv-card .inv-request{
  margin:0;
  color:#6b1020;
  font:500 clamp(1.15rem,3vw,1.45rem)/1.45 var(--serif);
  text-wrap:balance;
}

/* Names with the parents' line under each */
.floral-invitation .inv-names .inv-person{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.35rem;
}
.floral-invitation .inv-names .inv-person__parents{
  color:#6b1020;
  font:600 clamp(.95rem,2.4vw,1.1rem)/1.5 var(--serif);
  letter-spacing:.02em;
  text-wrap:balance;
}
.floral-invitation .inv-names .inv-names__amp{
  font-size:.6em;
  margin-block:.15em;
}

/* Phones: keep the card's normal spacing; shrink the shloka and venue so
   they fit between the corner garlands, with Jaipur on its own line. */
@media (max-width: 600px){
  .floral-invitation .inv-card .inv-mangal{
    font-size:clamp(.74rem,3.5vw,.86rem);
    line-height:1.8;
  }
  .floral-invitation .inv-card .inv-detail__main{
    font-size:clamp(.66rem,3vw,.76rem);
  }
  .floral-clay .floral-invitation .inv-card{padding-block:3.5rem}
  .floral-clay .floral-invitation .inv-card .inv-card__inner{margin-block:1.25rem}
  .floral-invitation .inv-card .inv-venue-comma{display:none}
  .floral-invitation .inv-card .inv-venue-city{display:block}
}

/* Envelope letter: Ganesha in place of the small diamond ornament */
.stationery-letter-ganesha{
  display:block;
  width:clamp(26px,10cqw,58px);
  height:auto;
}
/* Lift the message so the text stays above the envelope's front edge */
.stationery-letter .stationery-letter-message{
  top:8%;
  gap:clamp(5px,2cqw,11px);
}

/* Events hidden for now (remove the `hidden` attribute in index.html to show again) */
.floral-invitation .ec-card[hidden],
.floral-invitation .floral-event-nav a[hidden]{display:none!important}

/* Baraat Swagat card — palette: bg #FFF1D6, heading #803B28,
   supporting text #765943, decorative accents #A67C42 */
.floral-invitation .ec-card[data-event-type="baraat"] .ec-event-name{color:#803B28}
.floral-invitation .ec-card[data-event-type="baraat"] .ec-preamble,
.floral-invitation .ec-card[data-event-type="baraat"] .ec-description,
.floral-invitation .ec-card[data-event-type="baraat"] .ec-detail-label,
.floral-invitation .ec-card[data-event-type="baraat"] .ec-detail-value{color:#765943}
.floral-invitation .ec-card[data-event-type="baraat"] .ec-description{opacity:.9}
.floral-clay .floral-invitation .ec-card[data-event-type="baraat"] .ec-icon-wrap{
  color:#A67C42;
  border-color:color-mix(in srgb, #A67C42 40%, transparent);
}
/* Its corner art is wider than the template's tall garlands: bottom corners
   match the other cards' height, top corners roughly their area */
.floral-clay .floral-invitation .ec-card[data-event-type="baraat"] .ec-corner{
  aspect-ratio:auto;
  width:clamp(125px,15%,170px);
}
.floral-clay .floral-invitation .ec-card[data-event-type="baraat"] .ec-corner--bl,
.floral-clay .floral-invitation .ec-card[data-event-type="baraat"] .ec-corner--br{
  width:clamp(110px,13.5%,150px);
}
.floral-invitation .ec-card[data-event-type="baraat"] .ec-description{text-wrap:balance}
/* Wide screens: the heading sits at the left, so drop it below the top-left flowers */
@media (min-width: 768px){
  .floral-invitation .ec-card[data-event-type="baraat"] .ec-title-section{padding-top:5.75rem}
}

/* ---------- Family members section (replaces "Our Story") ---------- */
.our-story--families .story-header{grid-template-columns:1fr}
.our-story--families .story-intro{text-align:center;padding:1.5rem .35rem 0}
.our-story--families .story-intro-heart{justify-content:center}
.our-story--families h2{white-space:normal}

.our-story--families .family-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.75rem 1rem;
  margin-top:1.75rem;
  text-align:center;
}
.our-story--families .family-group h3{
  margin:0 0 .6rem;
  color:var(--story-green);
  font:700 clamp(1.1rem,2.6vw,1.3rem)/1.4 var(--serif);
}
/* small ornament under each group title */
.our-story--families .family-group h3::after{
  content:"";
  display:block;
  width:3rem;
  height:1px;
  margin:.45rem auto 0;
  background:linear-gradient(90deg,#0000,#caa762,#0000);
}
.our-story--families .family-names{
  list-style:none;
  margin:0;
  padding:0;
  color:#4a4436;
  font:500 clamp(.95rem,2.3vw,1.05rem)/1.85 var(--serif);
}
.our-story--families .family-groups--kids{
  grid-template-columns:1fr;
  margin-top:2.25rem;
  padding-top:2rem;
  border-top:1px solid #caa76240;
}
.our-story--families .family-verse{
  margin:0 0 .5rem;
  color:#7a5a2e;
  font:italic 500 clamp(.95rem,2.3vw,1.05rem)/1.7 var(--serif);
}
.our-story--families .family-kids{
  margin:0 auto;
  max-width:34rem;
  color:#4a4436;
  font:500 clamp(.95rem,2.3vw,1.05rem)/1.75 var(--serif);
  text-wrap:balance;
}
@media (min-width:640px){
  .our-story--families .family-groups{gap:2.25rem 3rem;max-width:44rem;margin-inline:auto}
  .our-story--families .family-groups--kids{grid-template-columns:1fr;gap:1.75rem}
}
/* Keep the last lines clear of the bottom corner flowers */
.our-story--families{padding-bottom:clamp(4rem,14vw,5rem)}
/* Two name columns on phones: slightly smaller text so longer names fit */
@media (max-width:480px){
  .our-story--families .family-groups:not(.family-groups--kids) .family-names{font-size:.88rem;line-height:1.75}
  .our-story--families .family-groups:not(.family-groups--kids) .family-group h3{font-size:1.02rem}
}

/* Engagement card — palette: bg #FBEAF0, heading #963F62,
   supporting text #795363, decorative accents #B78A65 */
.floral-invitation .ec-card[data-event-type="engagement"] .ec-event-name{color:#963F62}
.floral-invitation .ec-card[data-event-type="engagement"] .ec-preamble,
.floral-invitation .ec-card[data-event-type="engagement"] .ec-description,
.floral-invitation .ec-card[data-event-type="engagement"] .ec-detail-label,
.floral-invitation .ec-card[data-event-type="engagement"] .ec-detail-value{color:#795363}
.floral-invitation .ec-card[data-event-type="engagement"] .ec-description{opacity:.9}
.floral-clay .floral-invitation .ec-card[data-event-type="engagement"] .ec-icon-wrap{
  color:#B78A65;
  border-color:color-mix(in srgb, #B78A65 40%, transparent);
}
/* Wide L-shaped corners: sized to cover about the same area as the other cards' garlands */
.floral-clay .floral-invitation .ec-card[data-event-type="engagement"] .ec-corner{
  aspect-ratio:auto;
  width:clamp(140px,17%,190px);
}
.floral-clay .floral-invitation .ec-card[data-event-type="engagement"] .ec-corner--bl,
.floral-clay .floral-invitation .ec-card[data-event-type="engagement"] .ec-corner--br{
  width:clamp(130px,16%,175px);
}
@media (min-width: 768px){
  .floral-invitation .ec-card[data-event-type="engagement"] .ec-title-section{padding-top:5.75rem}
}

/* Jain emblem above the mangal shloka */
.floral-invitation .inv-card .inv-emblem{
  display:block;
  width:clamp(2.6rem,6vw,3.4rem);
  height:auto;
  margin:0 auto -.75rem;   /* sit close to the shloka (card uses a 1.5rem gap) */
}

/* Invitation card: minimal space above the Jain emblem (all screen sizes) */
.floral-clay .floral-invitation .inv-card{padding-top:1.25rem}
.floral-clay .floral-invitation .inv-card .inv-card__inner{margin-top:0}
/* Phones: Engagement illustration is taller than the others, so show it a little smaller */
@media (max-width: 767px){
  .floral-invitation .ec-card[data-event-type="engagement"] .ec-characters{
    width:80%;
    margin-inline:auto;
  }
}

/* Smaller gap between the last card and the closing ••• line */
.floral-invitation .floral-content{padding-bottom:2rem}

/* ---------- Venue: royal Rajasthani stationery card ---------- */
.floral-invitation .venue-royal{
  --venue-bg:#E8EEE8;
  --venue-gold:#C9A773;
  --venue-burgundy:#8D3048;
  --venue-brown:#553327;
  --venue-muted:#826B5A;
  position:relative;
  isolation:isolate;
  background:var(--venue-bg);
  border:0;
  border-radius:1.5rem;
  box-shadow:var(--clay-card-shadow);
  padding:clamp(2.25rem,6vw,3.5rem) clamp(1.25rem,5vw,3rem);
  text-align:center;
}
.floral-invitation .venue-royal__inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}

.floral-invitation .venue-royal__haveli{width:clamp(78px,20vw,112px);height:auto;color:var(--venue-gold);margin-bottom:.35rem}
.floral-invitation .venue-royal__title{
  margin:0;color:var(--venue-burgundy);
  font:400 clamp(2.9rem,9vw,4.25rem)/1.05 Allura,cursive;letter-spacing:.01em;
}
.floral-invitation .venue-royal__divider{width:min(13rem,70%);height:auto;color:var(--venue-gold);margin:.5rem 0 1.15rem}
.floral-invitation .venue-royal__name{
  margin:0;color:var(--venue-brown);text-wrap:balance;
  font:500 clamp(1.45rem,4.6vw,2rem)/1.2 var(--serif);
}
.floral-invitation .venue-royal__city{
  margin:.35rem 0 0;color:var(--venue-muted);
  font:italic 500 clamp(1rem,2.6vw,1.12rem)/1.5 var(--serif);letter-spacing:.02em;
}
.floral-invitation .venue-royal__dates{
  display:inline-flex;align-items:center;gap:.5rem;
  margin:1.1rem 0 1.6rem;color:var(--venue-brown);
  font:600 clamp(1rem,2.6vw,1.12rem)/1.4 var(--serif);letter-spacing:.03em;
}
.floral-invitation .venue-royal__date-icon{width:1.05rem;height:1.05rem;color:var(--venue-gold);flex-shrink:0}

/* lightweight outlined pill buttons */
.floral-invitation .venue-royal__actions{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:.75rem;width:100%;
}
.floral-invitation .venue-royal__actions>*{flex:1 1 12.5rem;max-width:16rem}
.floral-invitation .venue-btn{
  display:flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:44px;width:100%;padding:.6rem 1.25rem;box-sizing:border-box;
  border:1px solid var(--venue-burgundy);border-radius:999px;background:transparent;
  color:var(--venue-burgundy);text-decoration:none;cursor:pointer;
  font:600 .98rem/1.2 var(--serif);letter-spacing:.02em;text-transform:none;
  transition:background-color .25s ease,color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.floral-invitation .venue-btn__icon{width:1rem;height:1rem;flex-shrink:0}
.floral-invitation .venue-btn:hover{background:color-mix(in srgb, var(--venue-burgundy) 7%, transparent);transform:translateY(-1px)}
.floral-invitation .venue-btn:active{transform:scale(.97);background:color-mix(in srgb, var(--venue-burgundy) 12%, transparent)}
.floral-invitation .venue-btn:focus-visible{outline:2px solid var(--venue-burgundy);outline-offset:3px}

.floral-invitation .venue-calendar{position:relative}
.floral-invitation .venue-calendar summary{list-style:none}
.floral-invitation .venue-calendar summary::-webkit-details-marker{display:none}
.floral-invitation .venue-calendar[open]>summary{background:color-mix(in srgb, var(--venue-burgundy) 7%, transparent)}
.floral-invitation .venue-calendar__options{
  margin:.5rem auto 0;padding:.35rem 1rem;max-width:15rem;text-align:left;
  background:#fffaf3;border:1px solid color-mix(in srgb, var(--venue-gold) 70%, transparent);border-radius:.6rem;
}
.floral-invitation .venue-calendar__options a{
  display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-height:44px;
  color:var(--venue-brown);font:500 .98rem/1.3 var(--serif);text-decoration:none;
}
.floral-invitation .venue-calendar__options a+a{border-top:1px solid color-mix(in srgb, var(--venue-gold) 35%, transparent)}
.floral-invitation .venue-calendar__options a:hover{color:var(--venue-burgundy)}

/* scroll reveal (same fade-and-rise as the rest of the site) */
.venue-reveal-ready .venue-royal [data-venue-reveal]{opacity:0;translate:0 14px;transition:opacity .7s cubic-bezier(.22,1,.36,1),translate .7s cubic-bezier(.22,1,.36,1)}
.venue-reveal-ready .venue-royal.is-visible [data-venue-reveal]{opacity:1;translate:0 0}
.venue-reveal-ready .venue-royal.is-visible [data-venue-reveal]:nth-child(2){transition-delay:.08s}
.venue-reveal-ready .venue-royal.is-visible [data-venue-reveal]:nth-child(3){transition-delay:.14s}
.venue-reveal-ready .venue-royal.is-visible [data-venue-reveal]:nth-child(4){transition-delay:.2s}
.venue-reveal-ready .venue-royal.is-visible [data-venue-reveal]:nth-child(5){transition-delay:.26s}
.venue-reveal-ready .venue-royal.is-visible [data-venue-reveal]:nth-child(6){transition-delay:.32s}
.venue-reveal-ready .venue-royal.is-visible [data-venue-reveal]:nth-child(7){transition-delay:.4s}
@media (prefers-reduced-motion: reduce){
  .floral-invitation .venue-btn{transition:none}
  .floral-invitation .venue-btn:hover,.floral-invitation .venue-btn:active{transform:none}
}

/* Event cards no longer have buttons: keep the last detail row clear of the bottom corner flowers */
.floral-invitation .ec-card .ec-details-section{padding-bottom:7rem}
.floral-invitation .ec-card .ec-details{margin-bottom:0}
/* Phones: event cards have no buttons, so trim the space under the details */
@media (max-width: 767px){
  .floral-invitation .ec-card .ec-details-section{padding-bottom:3rem}
}

/* ---------- Language button: styled exactly like the music button, stacked just above it ---------- */
.music-player.lang-player[data-astro-cid-3d5edsf5]{
  bottom:calc(max(16px, env(safe-area-inset-bottom)) + 46px + 10px);
  z-index:50;
}
/* not shown on the envelope screen; appears once the invitation is opened */
html[data-invitation-entrance] .music-player.lang-player[data-astro-cid-3d5edsf5],
html.intro-lock .music-player.lang-player[data-astro-cid-3d5edsf5]{display:none}
.lang-toggle__mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;flex-shrink:0;
  font:700 17px/1 "Kohinoor Devanagari","Noto Sans Devanagari","Manrope",system-ui,sans-serif;
}
.lang-toggle__mark:not([lang="hi"]){font-family:"Cormorant Garamond",Georgia,serif;font-size:19px}
.lang-toggle__label{font:700 13px/1.4 "Kohinoor Devanagari","Noto Sans Devanagari",var(--sans),sans-serif;letter-spacing:.02em}
.lang-toggle__label:not([lang="hi"]){font:700 12px/1.4 var(--sans)}
@media (max-width:640px){
  .music-player.lang-player[data-astro-cid-3d5edsf5]{bottom:calc(max(12px, env(safe-area-inset-bottom)) + 44px + 8px)}
  .lang-toggle__label{display:none}
  .lang-toggle__mark{width:auto;height:auto;font-size:20px}
  .lang-toggle__mark:not([lang="hi"]){font-size:22px}
}

/* ---------- Hindi mode typography ---------- */
html[lang="hi"] [data-hi]{
  font-family:"Tiro Devanagari Hindi","Kohinoor Devanagari","Noto Serif Devanagari","Noto Sans Devanagari",serif;
  letter-spacing:normal;
  text-transform:none;
}
/* script-font headings: Devanagari glyphs are much larger than Allura's, so scale them down */
html[lang="hi"] .hero-names-title [data-hi]{font-size:.62em;line-height:1.35}
html[lang="hi"] .ec-event-name [data-hi]{font-size:.72em;line-height:1.3}
html[lang="hi"] .inv-names [data-hi].inv-person__name{font-size:.72em;line-height:1.35}
html[lang="hi"] .inv-names [data-hi].inv-names__amp{font-size:.45em}
html[lang="hi"] .venue-royal__title[data-hi]{font-size:clamp(2rem,6vw,2.8rem);line-height:1.3}
html[lang="hi"] .our-story--families h2[data-hi]{font-size:clamp(1.7rem,4.6vw,2.4rem);line-height:1.35}
html[lang="hi"] .stationery-heading strong[data-hi]{font-size:clamp(1.9rem,5vw,2.7rem);line-height:1.35}
html[lang="hi"] .stationery-heading span[data-hi],
html[lang="hi"] .stationery-hint [data-hi]{font-size:13px}
html[lang="hi"] .ec-preamble[data-hi],
html[lang="hi"] .floral-section-label[data-hi],
html[lang="hi"] .story-eyebrow[data-hi]{letter-spacing:.06em}
html[lang="hi"] .ec-detail-label[data-hi]{font-size:.8rem}
html[lang="hi"] .countdown-label[data-hi]{font-size:.85em}
html[lang="hi"] .countdown-heading{
  font-family:"Tiro Devanagari Hindi","Kohinoor Devanagari","Noto Serif Devanagari",serif;
  letter-spacing:.02em;text-transform:none;font-size:1rem;
}

/* Desktop hero: pull the names/details and the couple illustration in towards the centre */
@media (min-width:1024px){
  .floral-invitation .floral-hero-grid{
    grid-template-columns:minmax(0,38rem) minmax(0,32rem);
    justify-content:center;
    column-gap:clamp(0rem,2vw,2.5rem);
  }
  .floral-invitation .floral-hero-portrait{padding-inline:0}
}

/* Desktop event cards: illustration stays at the right edge (as in the original);
   only the text column is moved in towards the centre (168px from the card edge at full width) */
@media (min-width:1024px){
  .floral-invitation .ec-card .ec-title-section,
  .floral-invitation .ec-card .ec-details-section{
    padding-left:clamp(72px, calc((100vw - 1024px) * .4 + 72px), 168px);
  }
}

/* Our Families: प्रतिष्ठान (top) and प्रेषक (bottom) — single centred column */
.our-story--families .family-block{
  max-width:30rem;
  margin:1.75rem auto 0;
  text-align:center;
}
.our-story--families .family-block__entry{
  margin:0 0 .9rem;
  color:#4a4436;
  font:500 clamp(.95rem,2.3vw,1.05rem)/1.75 var(--serif);
}
.our-story--families .family-block__entry:last-child{margin-bottom:0}
.our-story--families .family-block__phone{color:#6b5a45}
.our-story--families .family-block__phone a{color:inherit;text-decoration:none;font-variant-numeric:lining-nums;letter-spacing:.02em}
.our-story--families .family-block__phone a:hover{text-decoration:underline}
.our-story--families .family-block--bottom{
  margin-top:2.25rem;
  padding-top:2rem;
  border-top:1px solid #caa76240;
  max-width:none;
}
.our-story--families .family-block__entry{text-wrap:balance}
/* Hindi banner: संग as a small accent between the names (like the English &), larger tagline */
html[lang="hi"] .hero-names-title .hero-names-amp[data-hi]{font-size:.34em;line-height:1.6}
html[lang="hi"] .hero-preamble[data-hi]{font-size:clamp(1rem,2.6vw,1.15rem);letter-spacing:.02em}

/* Invitation card — Hindi-only lines (from the printed card); hidden in English */
html:not([lang="hi"]) .inv-hi-only{display:none}
.floral-invitation .inv-card .inv-couplet{
  margin:0;color:#6b1020;
  font:600 clamp(.95rem,2.6vw,1.1rem)/1.8 "Kohinoor Devanagari","Noto Sans Devanagari",var(--serif);
  text-wrap:balance;
}
.floral-invitation .inv-card .inv-closing{
  margin:0;color:#6b1020;
  font:500 clamp(1.05rem,2.8vw,1.25rem)/1.5 "Kohinoor Devanagari","Noto Sans Devanagari",var(--serif);
  text-wrap:balance;max-width:34rem;
}
/* Hindi parents/residence lines read better slightly smaller and balanced */
html[lang="hi"] .inv-names .inv-person__parents[data-hi]{text-wrap:balance;line-height:1.6}
/* Hindi card: smaller blessing + Kastur Devi lines (they are longer than the English ones) */
html[lang="hi"] .floral-invitation .inv-card .inv-heavenly[data-hi]{font-size:clamp(.95rem,2.4vw,1.08rem);line-height:1.6;text-wrap:balance}
html[lang="hi"] .floral-invitation .inv-card .inv-request[data-hi]{font-size:clamp(.98rem,2.5vw,1.12rem);line-height:1.65}
/* Hindi card: parents/residence and closing line slightly smaller */
html[lang="hi"] .floral-invitation .inv-names .inv-person__parents[data-hi]{font-size:clamp(.86rem,2.2vw,.98rem)}
html[lang="hi"] .floral-invitation .inv-card .inv-closing{font-size:clamp(.95rem,2.5vw,1.1rem)}
/* Hindi: smaller Celebrations heading */
html[lang="hi"] .floral-invitation #celebrations-title[data-hi]{font-size:clamp(1.6rem,6.4vw,2.4rem);line-height:1.35}
/* Parents' note label: keep "WITH LOVE & BLESSINGS" tidy on phones */
@media (max-width:480px){
  .floral-invitation .note-shell .floral-section-label{letter-spacing:.22em;font-size:.78rem}
}
