/* Loaded after refine.css to retain the original editorial styling. */
.invitation-page .rsvp-form-shell { display:block; }
.rsvp-field { border:0; padding:22px 0; margin:0; border-bottom:1px solid rgba(21,43,45,.22); min-width:0; }
.rsvp-legend { display:block; width:100%; margin-bottom:16px; font:600 10px/1.6 var(--sans,Arial,sans-serif); letter-spacing:.12em; color:#536d68; }
.rsvp-choices { display:flex; flex-wrap:wrap; gap:12px 22px; }
.rsvp-choice { display:inline-flex; align-items:center; gap:9px; cursor:pointer; font:400 14px/1.8 var(--kr,serif); }
.rsvp-choice input { width:17px; height:17px; margin:0; accent-color:#216e68; }
.rsvp-name,.rsvp-guests { display:block; width:100%; min-height:43px; background:transparent; border:0; border-bottom:1px solid #506e68; border-radius:0; color:#152b2d; font:400 17px/1.6 var(--kr,serif); padding:7px 2px; }
.rsvp-name:focus,.rsvp-guests:focus { outline:0; border-bottom:2px solid #287e75; }
.rsvp-guests { max-width:110px; }
.rsvp-form-shell .rsvp-action:disabled { opacity:.5; cursor:wait; }
.rsvp-status { margin:14px 0 0; color:#23665f; font:400 12px/1.8 var(--kr,serif); min-height:21px; word-break:keep-all; }
.rsvp-status.is-error { color:#a63e36; }
.rsvp-edit-hint { font:400 12px/1.8 var(--kr,serif); color:#4a706a; padding:12px 0 0; }
.rsvp-success { border-top:1px solid rgba(21,43,45,.22); padding-top:17px; margin-top:17px; }
.rsvp-success p { font:400 12px/1.8 var(--kr,serif); margin:0 0 9px; }
.rsvp-success a { color:#1e635d; font:500 13px/1.8 var(--kr,serif); overflow-wrap:anywhere; }
.rsvp-copy-link { margin-top:10px; padding:9px 12px; background:transparent; color:#143f3c; border:1px solid #5c827c; font:400 12px var(--kr,serif); cursor:pointer; }
.rsvp-field[hidden],.rsvp-success[hidden],.rsvp-edit-hint[hidden] { display:none!important; }
@media(max-width:700px) { .rsvp-field { padding:19px 0; } .rsvp-choices { gap:9px 14px; } .rsvp-choice { font-size:13px; } }

/* Keep the photo-album CTA typography aligned with the editorial headings. */
.invitation-page .atlas-entry-cta > span:first-child {
  font-family: var(--display, var(--serif, Georgia, serif));
  font-weight: 400;
  letter-spacing: -.035em;
  text-transform: none;
}
/* Single-choice square checkboxes; "3+" reveals exact headcount input. */
.rsvp-count-choices .rsvp-choice input { accent-color:#216e68; }
.rsvp-more-guests { margin-top:18px; }
.rsvp-more-guests[hidden] { display:none!important; }
.rsvp-more-label { display:block; font:400 13px/1.7 var(--kr,serif); margin-bottom:8px; }


/* Final editorial polish — The Day / RSVP / Album */
/* The WHERE row already has a top rule: don't frame it with another bottom rule. */
.invitation-page .day-section .detail:last-of-type {
  border-bottom: 0;
  padding-bottom: 12px;
}
/* Reduce the unused gap between venue information and the location map. */
.invitation-page .day-section > .venue-map { margin-top: clamp(44px, 5vw, 66px); }

/* Use spacing, not horizontal rules, to organize the RSVP field groups. */
.invitation-page .rsvp-form-shell .rsvp-field {
  border: 0;
  border-bottom: 0;
  padding-top: 21px;
  padding-bottom: 8px;
}
.invitation-page .rsvp-form-shell .rsvp-name,
.invitation-page .rsvp-form-shell .rsvp-guests {
  border: 0;
  border-bottom: 0;
  background: rgba(219,236,232,.47);
  padding: 9px 12px;
  min-height: 46px;
}
.invitation-page .rsvp-form-shell .rsvp-name:focus-visible,
.invitation-page .rsvp-form-shell .rsvp-guests:focus-visible {
  outline: 2px solid #287e75;
  outline-offset: 2px;
  border: 0;
}

/* A deliberate editorial title rather than a thin floating label. */
.invitation-page .atlas-entry-cta > span:first-child {
  font-family: var(--serif, Georgia, serif);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(27px, 3.45vw, 45px);
  line-height: 1.12;
  letter-spacing: .025em;
  text-transform: uppercase;
}
@media (max-width:700px) {
  .invitation-page .day-section > .venue-map { margin-top: 43px; }
  .invitation-page .day-section .detail:last-of-type { padding-bottom: 6px; }
  .invitation-page .atlas-entry-cta > span:first-child {
    font-size: clamp(23px, 6.9vw, 32px);
    letter-spacing: .015em;
  }
  .invitation-page .rsvp-form-shell .rsvp-field { padding-top: 19px; padding-bottom: 7px; }
}

/* V5: Day detail and RSVP editorial spacing */
.invitation-page .day-section .dress-code-detail { border-top:1px solid var(--hair); padding-top:26px; padding-bottom:8px; }
.invitation-page .day-section .dress-code-copy { font:400 clamp(13px,1.3vw,16px)/1.95 var(--kr,serif); color:var(--ink); word-break:keep-all; }
.invitation-page .day-section .detail:last-of-type { border-bottom:0; }
.invitation-page .rsvp-form-shell .rsvp-field { padding-top:26px; padding-bottom:17px; }
.invitation-page .rsvp-form-shell .rsvp-field + .rsvp-field { margin-top:8px; }
.invitation-page .rsvp-form-shell .rsvp-legend { margin-bottom:13px; }
/* Album CTA uses the invitation's own display face and italic, not bold UI lettering. */
/* span.album-cta-type matches the specificity of the older "span:first-child" rules above
   (uppercase Bodoni 600), and comes later, so the headline face actually applies. */
.invitation-page .atlas-entry-cta > span.album-cta-type {
  font-family:var(--display,var(--serif,Georgia,serif));
  font-style:normal; font-weight:400; text-transform:none; letter-spacing:-.02em; font-synthesis:none;
  font-size:clamp(32px,3.9vw,50px); line-height:1.05; white-space:nowrap;
}
/* Same treatment as the main headlines (refine.css): Relationship of Melodrame, upright, no faux slant. */
.invitation-page .atlas-entry-cta > .album-cta-type i {font-family:inherit; font-style:normal; font-weight:400; font-synthesis:none;}
@media(max-width:700px){
 .invitation-page .rsvp-form-shell .rsvp-field {padding-top:24px;padding-bottom:15px;}
 .invitation-page .rsvp-form-shell .rsvp-field + .rsvp-field {margin-top:6px;}
 .invitation-page .atlas-entry-cta > span.album-cta-type {font-size:clamp(31px,8.6vw,40px); line-height:1.08; letter-spacing:-.02em;}
 .invitation-page .day-section .dress-code-detail {padding-top:23px;}
}

/* Choice groups: more air above; half the gap between legend and controls. */
.invitation-page .rsvp-form-shell .rsvp-field--choice { padding-top: 35px; }
.invitation-page .rsvp-form-shell .rsvp-field--choice > .rsvp-legend { margin-bottom: 6.5px; }
@media (max-width:700px) {
  .invitation-page .rsvp-form-shell .rsvp-field--choice { padding-top: 31px; }
}

/* RSVP spacing normalization — append to the END of rsvp.css.
   Four fields: 12px between heading and control, 28px between groups.
   This is intentionally scoped to the invitation RSVP form. */
.invitation-page .rsvp-form-shell .rsvp-field,
.invitation-page .rsvp-form-shell .rsvp-field--choice {
  box-sizing: border-box;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.invitation-page .rsvp-form-shell .rsvp-field + .rsvp-field {
  margin-top: 28px;
}

.invitation-page .rsvp-form-shell .rsvp-legend,
.invitation-page .rsvp-form-shell .rsvp-field--choice > .rsvp-legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
  line-height: 1.6;
}

.invitation-page .rsvp-form-shell .rsvp-choices {
  margin: 0;
  padding: 0;
}

.invitation-page .rsvp-form-shell .rsvp-choice {
  align-items: center;
}

.invitation-page .rsvp-form-shell .rsvp-choice input {
  margin: 0;
  flex: 0 0 auto;
}

/* RSVP existing-response notice spacing, scoped to the invitation only.
   Append this block to the end of rsvp.css. */
.invitation-page .rsvp-form-shell .rsvp-edit-hint {
  margin: 0;
  padding: 0;
}

/* Exactly 24px from the notice's bottom to the first field's top.
   Hidden notice reserves no space and does not affect a new RSVP. */
.invitation-page .rsvp-form-shell .rsvp-edit-hint:not([hidden]) + .rsvp-field {
  margin-top: 24px;
}
