/* 8 Nov mobile revision (review candidate only). Loaded last.
   Artwork, verified names, date, venue and RSVP behaviour are unchanged;
   this layer only arranges them. Nothing is clipped: sections aim at one
   phone fold but grow with short screens and enlarged text. */

/* Opener: one compact group, centred in the fold (auto margins never clip
   when it is taller than the screen). "A wedding invitation" is set like
   the date line beneath the names. */
.envelope-summary__inner{margin-block:auto}
.envelope-label{font:400 11px/1.5 var(--body);letter-spacing:.06em;text-transform:uppercase;color:#79664f}
.opening-names,.type-trial-fairmont .opening-names{margin-top:6px;max-width:100%;white-space:normal;text-wrap:balance}
.opening-date{margin-top:6px}
.envelope,
.envelope-summary .envelope{width:min(62vw,calc((100svh - 230px) / 1.5),240px);margin-top:16px}
.opening-hint{margin-top:12px}

/* Couple fold: illustration, names, then exactly two lines. */
#top{padding:56px 24px 32px}
#top .couple-illustration{margin:0 auto 18px;width:min(100%,360px)}
.sketch-couple-heading{width:fit-content;max-width:100%;margin:0 auto 12px}
#top .hero__details{max-width:none;padding:0}
#top .hero__invite{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0 auto;font-size:clamp(14px,4.4vw,16px);line-height:1.5}
#top .invite-line{display:block}
/* The divider sits on the fold's lower edge, like every other section's. */
#top{position:relative}
#top .hero__details{position:static}
#top .hero__details:after{top:auto;bottom:-8px;margin:0}

/* Save the date: calendar, location, the celebration time, one calendar action. */
#celebration .generated-calendar{width:min(100%,320px);max-width:none;margin-inline:auto}
.sketch-date-venue{display:flex;align-items:center;justify-content:center;gap:8px;margin:24px auto 6px;font:400 16px/1.5 var(--body)}
.sketch-date-venue__icon{flex:none;width:22px;height:22px}
.sketch-time{margin:0 auto 4px;text-align:center;font:400 16px/1.5 var(--body)}
#celebration .cta-row{margin-top:28px}

/* One heading scale for every section title. */
#venue-title{font-size:clamp(27px,3.2vw,36px)}
.venue__art{max-width:320px;margin-inline:auto}

/* RSVP: the introduction spans exactly the form's width. */
.rsvp .rsvp__intro{width:100%;max-width:var(--rsvp-control-width,560px);margin-inline:auto}
.rsvp__intro>p:last-child{max-width:none;text-wrap:balance}
.rsvp__intro .mobile-copy-break{display:inline}
.rsvp-form__fields{margin:0;padding:0;border:0;min-inline-size:0}
/* While submissions are closed, the closed notice stays in the page (it is the
   form's description, written by sheets-rsvp.js) but is not drawn as a box;
   the button says honestly that this is a preview. Without :has support the
   previous visible notice and "Send RSVP" (disabled) remain. */
.rsvp-submit__preview{display:none}
.rsvp-form__status:not(:empty){margin-top:12px}
.rsvp-form:has(#rsvp-submit:disabled) #rsvp-notice:not([hidden]){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.rsvp-form:has(#rsvp-notice:not([hidden])) #rsvp-submit:disabled .rsvp-submit__send{display:none}
.rsvp-form:has(#rsvp-notice:not([hidden])) #rsvp-submit:disabled .rsvp-submit__preview{display:inline}
.rsvp .rsvp-form:has(#rsvp-notice:not([hidden])) #rsvp-submit:disabled{background:transparent;border:1px solid #b99c73;color:#ebca8e;-webkit-text-fill-color:#ebca8e;letter-spacing:.04em}

/* Blessings: Shri Ganesh sits where the other sections' kickers sit. */
#blessings .sacred{margin:0 auto 18px}
/* Very narrow (e.g. a phone at 200% zoom): the mantra lines beside Shri Ganesh may
   wrap between words instead of running past the screen edge. */
@media (max-width:300px){
 .prayer-lockup__left p,.prayer-lockup__right p{white-space:normal}
 /* Uppercase display titles keep whole words (no mid-word breaks) when the
    column is this narrow; body text keeps its size. */
 main h2,#venue-title{font-size:clamp(20px,11vw,27px);overflow-wrap:normal;word-break:normal;hyphens:manual}
}

/* Phones: content starts at the same kicker position in every section and the
   divider sits at each section's foot. Only the couple fold (the composed first
   view after the envelope) is a full screen; the other sections take their
   content's height (9 Nov follow-up c: forced folds left blank bands). */
@media (max-width:600px){
 #top{box-sizing:border-box}
 /* The couple fold has no kicker, so its group is centred in the fold. */
 #top{display:flex;flex-direction:column;justify-content:center}
 main>.section{padding-top:56px;padding-bottom:56px}
 main>.section>.wrap{margin-top:0;margin-bottom:0}
 .rsvp .rsvp__intro{margin-top:0}
 .blessings .sacred{margin-top:0}
 /* The verified families card, tightened (not shrunk below reading size) so
    Shri Ganesh to Dhriti's parents fit one fold at 390 x 844. */
 #blessings .families{width:100%;max-width:none;box-sizing:border-box;margin-top:28px;padding-block:24px;padding-inline:16px;gap:14px}
 #blessings .families__name{font-size:46px;line-height:1.25}
 #blessings .families__parents{margin-top:4px}
}
