/* Cut reply (core/rsvp/220), INV-23 Cut Through (A2759), forked from INV-02's 090 (itself from core/rsvp/061): the knife cut, RS/VP cut
   out of the page over a photo, then
   the reply on pale fields. The script is unchanged: Send saves, then WhatsApp opens 4 s later (D-156). The name field is an
   ordinary field here; the script's signature mirror stays in the page, unseen, because the script measures it. */
.rs220 { --rs220-fs: min(46vw, 30svh, 300px); position: relative; padding: var(--k-ct-air) var(--k-gutter) 0; text-align: center; color: var(--k-ink); background: var(--k-light-ground); }
.rs220__cut { position: relative; height: calc(var(--rs220-fs) * 1.68); margin: 8px calc(var(--k-gutter) * -1) 22px; font-size: var(--rs220-fs); }
.rs220__cut .rs220__rv--l { display: none; }
.rs220__title { display: flex; flex-direction: column; margin: 8px 0 22px; font-size: calc(clamp(150px, 42vw, 300px) * var(--k-ct-z)); font-weight: 300; }
.rs220__title .k-ct-ink { line-height: .84; }
.rs220__s { display: block; margin: 14px 0 30px; font-size: calc(clamp(30px, 8.6vw, 40px) * var(--k-ct-z)); text-wrap: balance; }
.rs220-mine { margin: 18px auto 0; } /* under the sheet (owner: it pushed the sheet down after Send) */
.rs220-mine__t { margin-bottom: 12px; font-size: 1rem; }
.rs220__plain { margin-top: 8px; }
.rs220-form { display: grid; gap: 10px; max-width: 460px; margin: 0 auto; text-align: left; }
.rs220__ink, .rs220-yes { display: grid; gap: 10px; }
.rs220-yes[hidden] { display: none; }
.rs220-field, .rs220-choice { display: block; min-width: 0; margin: 0; padding: 16px 18px; border: 0; border-radius: 14px; background: var(--k-field); }
.rs220-field__l { display: block; margin-bottom: 10px; padding: 0; font: 400 1rem/1.3 var(--k-font-body); color: var(--k-ink); }
.rs220-field__l i { font-style: normal; font-weight: 300; color: var(--k-ink-soft); }
.rs220-choice { display: grid; grid-template-columns: 1fr 1fr; }
.rs220-choice legend { float: left; width: 100%; grid-column: 1 / -1; }
.rs220-opt { position: relative; display: grid; justify-items: center; gap: 8px; padding: 6px 0; text-align: center; cursor: pointer; font-size: .90625rem; line-height: 1.3; }
.rs220-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rs220-opt__i { width: 46px; height: 44px; fill: var(--k-ghost); transition: fill .2s; }
.rs220-opt__i--yes { fill: color-mix(in srgb, var(--c-primary) 42%, var(--k-field)); }
.rs220-opt input:checked ~ .rs220-opt__i--yes { fill: var(--c-primary); }
.rs220-opt input:checked ~ .rs220-opt__i--no { fill: var(--k-ink); }
.rs220-opt input:checked ~ .rs220-opt__t { font-weight: 400; }
.rs220-opt input:focus-visible ~ .rs220-opt__i { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.rs220-input, .rs220-sig__in { display: block; width: 100%; min-height: 40px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--k-field-line); border-radius: 0; background: transparent; color: var(--k-ink); font: 300 max(16px, 1.0625rem)/1.3 var(--k-font-body); -webkit-appearance: none; appearance: none; }
.rs220-input:focus, .rs220-sig__in:focus { outline: none; border-bottom-color: var(--k-ink); }
.rs220-input:is(select) { padding-right: 20px; background: linear-gradient(45deg, transparent 50%, var(--k-ink) 50%) right 8px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--k-ink) 50%) right 2px center / 6px 6px no-repeat; }
.rs220-input--note { resize: vertical; }
.rs220-sig { position: relative; display: block; }
.rs220-sig__ink { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
.rs220-help { padding: 0 4px; font-size: .9375rem; color: var(--k-ink-soft); }
.rs220-evs { display: grid; gap: 10px; }
.rs220-day { padding: 6px 4px 0; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.rs220-ev { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--k-field); }
.rs220-ev__n { font-weight: 400; }
.rs220-ev__d { grid-row: 2; font-size: .9375rem; color: var(--k-ink-soft); }
.rs220-ev__c { grid-column: 2; grid-row: 1 / span 2; width: auto; min-width: 104px; }
.rs220-extra { display: grid; gap: 10px; }
.rs220-late, .rs220-err { padding: 0 4px; font-size: .96875rem; }
.rs220-err { color: var(--c-primary); }
.rs220-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rs220 .rs220-send { justify-self: center; min-height: 50px; margin-top: 12px; padding: 0 56px; font-size: .875rem; }
.rs220-small { text-align: center; font-size: .875rem; color: var(--k-ink-soft); }
.rs220 .rs220-thanks { margin: 4px 0 0; text-align: center; font: 300 1.0625rem/1.5 var(--k-font-body); }
.rs220 .rs220-thanks[hidden], .rs220 .rs220-extra:empty { display: none; }
/* after Send: the chosen heart or cross and the thanks stay; the fields fold away (is-sent, is-chosen: the script's) */
.rs220 .rs220-form.is-sent .rs220-field, .rs220 .rs220-form.is-sent .rs220-send, .rs220 .rs220-form.is-sent .rs220-small, .rs220 .rs220-form.is-sent .rs220-yes,
.rs220 .rs220-form.is-sent .rs220-late, .rs220 .rs220-form.is-sent .rs220-err, .rs220 .rs220-form.is-sent .rs220-opt:not(.is-chosen), .rs220 .rs220-form.is-sent .rs220-choice > .rs220-field__l { display: none; }
.rs220 .rs220-form.is-sent .rs220-choice { grid-template-columns: 1fr; background: transparent; }
/* The card on one clock: the fields fade, then the thank-you arrives as the card eases shut (section.js, A2324) */
.rs220 .rs220-form.is-closing :is(.rs220-field, .rs220-yes, .rs220-send, .rs220-small, .rs220-extra, .rs220-opt) { opacity: 0; transition: opacity .45s ease; }
.rs220 .rs220-form.is-closing .rs220-thanks { opacity: 0; }
.rs220 .rs220-form.is-sent .rs220-thanks { animation: rs220-thanks 1.1s ease .5s backwards; }
@keyframes rs220-thanks { from { opacity: 0; } }

/* On paper, not boxes (owner on INV-16: the reply is one sheet you write on, not an app's table): the form is one ruled card, the
   fields are lines, and the guest's name is written in the script by the reply script's own signature mirror (INV-22's way). */
.rs220 .rs220-form { padding: 22px 22px 26px; border: 1px solid var(--k-rule); background: var(--k-paper) var(--k-ct-tile) 0 0 / 300px auto repeat; }
.rs220 :is(.rs220-field, .rs220-choice) { padding: 14px 0 0; border-radius: 0; background: transparent; }
.rs220 .rs220-choice { padding-top: 0; }
.rs220 :is(.rs220-input, .rs220-sig__in) { border-bottom-color: var(--k-rule); }
.rs220 .rs220-sig__in { height: 54px; min-height: 54px; padding: 12px 0 2px; font: 400 38px/40px var(--k-font-script); color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--k-ink); }
.rs220 .rs220-sig__ink { visibility: visible; display: flex; align-items: center; height: 54px; padding: 12px 0 2px; font: 400 38px/40px var(--k-font-script); color: var(--k-script-ink); }
.rs220 .rs220-ev { padding: 8px 0 4px; border-radius: 0; background: transparent; border-bottom: 1px solid var(--k-rule); }
.rs220 .rs220-opt__i--yes { fill: color-mix(in srgb, var(--c-primary) 42%, var(--k-paper)); }
html:not(.js) .rs220 .rs220__title.k-ct-sr { position: static !important; width: auto; height: auto; margin: 8px 0 22px; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
/* laptop: a spread, RS / VP cut on the left (it stays in view while the sheet goes by) and the reply sheet on the right (owner: fill
   wide screens; W1.1 board, improvement 3). With no form (no contact), the words stay centred. */
@media (min-width: 1000px) and (orientation: landscape) {
  .rs220 { --rs220-fs: min(19vw, 31svh, 300px); }
  .rs220 .rs220__cut { margin-inline: 0; }
  .rs220 .rs220__card:has(> .rs220-form) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vw; align-items: start; max-width: 1260px; margin: 0 auto; }
  .rs220 .rs220__card:has(> .rs220-form) > * { grid-column: 2; }
  .rs220 .rs220__card:has(> .rs220-form) > .rs220__side { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 10vh; }
  .rs220 .rs220-form { max-width: none; margin: 0; }
}
/* W2, 11 (A2787; the owner's W2 pick): after Send the sheet carries THANK YOU cut through it over the hero's photo, the guest's name written under it
   in the couple's colour; it takes the chosen heart's place. Sized from the sheet's width: two lines on a phone and tablet, one on a laptop. With no
   hero photo the heart stays. */
.rs220 .rs220-ty { display: none; min-width: 0; margin: 4px 0 2px; text-align: center; }
.rs220 .rs220-form.is-sent .rs220-ty { display: block; }
.rs220 .rs220-form.is-sent:has(.rs220-ty) .rs220-choice { display: none; }
.rs220 .rs220-ty__cut { position: relative; height: 1.66em; font-size: min(24vw, 120px); }
.rs220 .rs220-ty__w--l { display: none; }
.rs220 .rs220-ty__n { display: block; margin: -.04em 0 8px; font-size: calc(clamp(30px, 8.6vw, 40px) * var(--k-ct-z)); line-height: 1.1; white-space: normal; rotate: -4deg; }
.rs220 .rs220-ty__n:empty { display: none; }
@media (min-width: 1000px) and (orientation: landscape) {
  .rs220 .rs220-ty__cut { height: .86em; font-size: min(6vw, 96px); }
  .rs220 .rs220-ty__w--p { display: none; }
  .rs220 .rs220-ty__w--l { display: inline; }
}

