/* Gilded reply card · Luxe (core/rsvp/025): a reply card printed on the sheet, the column's width: a double gold keyline
   (outer foil 1.2 px, inner gold ink .6 px), underlined fields, accept and decline as two gold line toggles (the chosen
   one solid), one solid gold "Send". After the press the card closes onto the thank-you, printed under a small gilded
   arch, with an honest status line, "Open WhatsApp again" and "Change your reply". No contact: the deadline line only.
   No script: the deadline and the plain WhatsApp button. */
@property --rs025-arch-a { syntax: "<angle>"; inherits: true; initial-value: 180deg; }
.rs025 {
  --rs025-r: calc(var(--k-ga-k, 1) * 4px); --rs025-ry: clamp(56px, 16vw, 120px);
  position: relative; padding: calc(var(--k-ga-gap) / 2) 0; color: var(--k-ink); text-align: center;
}
.rs025 [hidden] { display: none !important; }
.rs025 .rs025__stage { position: relative; width: 100%; margin: 0 auto; }
.rs025 .rs025-form { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; }
/* the card: the sheet's own paper inside two gold lines */
.rs025 .rs025__card { position: relative; box-sizing: border-box; width: 100%; container-type: inline-size; border-radius: var(--rs025-r);
  padding: calc(clamp(30px, 10cqw, 56px) + var(--rs025-ry) * .55) clamp(22px, 8cqw, 48px) clamp(32px, 10cqw, 56px); }
/* the card's frame: two gold rules (1.1 and .6 px) whose tops are one arch, the keystone at the apex; it traces from the
   keystone down both sides as the card arrives */
.rs025 .rs025__frm { position: absolute; inset: -5px 0 0; pointer-events: none;
  -webkit-mask: conic-gradient(#000 var(--rs025-arch-a), transparent 0 calc(360deg - var(--rs025-arch-a)), #000 0);
  mask: conic-gradient(#000 var(--rs025-arch-a), transparent 0 calc(360deg - var(--rs025-arch-a)), #000 0); }
.rs025 .rs025__frm::before, .rs025 .rs025__frm::after { content: ""; position: absolute; inset: 5px 0 0; border: 1.1px solid #A3834A;
  border-radius: 50% 50% var(--rs025-r) var(--rs025-r) / var(--rs025-ry) var(--rs025-ry) var(--rs025-r) var(--rs025-r); }
.rs025 .rs025__frm::after { inset: 10px 5px 5px; border: .6px solid #B89A62;
  border-radius: 50% 50% calc(var(--rs025-r) * .6) calc(var(--rs025-r) * .6) / calc(var(--rs025-ry) - 5px) calc(var(--rs025-ry) - 5px) calc(var(--rs025-r) * .6) calc(var(--rs025-r) * .6); }
.rs025 .rs025__frm b { position: absolute; left: 50%; top: 1.5px; width: 7px; height: 7px; margin-left: -3.5px; background: #A3834A; rotate: 45deg; }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .rs025.k-wait .rs025__frm { --rs025-arch-a: 0deg; }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .rs025.k-wait .rs025__frm b { opacity: 0; translate: 0 -4px; }
.rs025.k-in .rs025__frm { --rs025-arch-a: 180deg; transition: --rs025-arch-a 1500ms var(--k-gild-ease) 250ms; }
.rs025.k-in .rs025__frm b { transition: opacity 300ms ease, translate 400ms var(--k-print-ease); }
/* a spray in the card's top-right corner, outside the arch's shoulder; it drifts up with the scroll (near), never into the
   gilded arch above */
.rs025 .rs025__spray { position: absolute; z-index: 2; right: -6%; top: 0; width: min(18vw, 120px); aspect-ratio: var(--k-ga-ar-spray-tl, .9816);
  background: var(--k-ga-art-spray-tl) center / 100% 100% no-repeat; scale: -1 1; pointer-events: none;
  translate: 0 calc(var(--rs025-dz, 0) * -31px); filter: drop-shadow(0 8px 12px rgb(66 46 18 / .2)); }
.rs025 .rs025__by { margin: 0; font: 600 clamp(10.5px, 3.2cqw, 13.5px)/1.7 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft); }
.rs025 .rs025__by b { font-weight: 600; color: var(--k-ink); }

/* the fields (rs008's names kept): an underlined name, the reply as two toggles, guests, celebrations, note */
.rs025 .rs025-name { display: block; margin: clamp(18px, 6cqw, 30px) 0 0; }
.rs025 .rs025-input--name { box-sizing: border-box; display: block; width: 100%; min-height: 44px; margin: 0; padding: .3em .2em; border: 0; border-bottom: 1px solid #B89A62;
  border-radius: 0; background: transparent; text-align: center; outline: none;
  font: 500 18px/1.3 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink); }
.rs025 .rs025-input--name::placeholder { color: var(--k-ink-soft); opacity: 1; }
.rs025 .rs025-input--name:focus-visible { border-bottom-color: var(--k-gold-ink); box-shadow: 0 1px 0 var(--k-gold-ink); }
.rs025 .rs025__opts { display: flex; flex-direction: column; align-items: stretch; gap: clamp(12px, 3.6cqw, 18px); margin-top: clamp(18px, 5.5cqw, 28px); }
.rs025 .rs025-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.rs025 .rs025-opt { position: relative; display: flex; align-items: center; gap: clamp(9px, 2.8cqw, 13px); cursor: pointer;
  font: 600 clamp(11px, 3.3cqw, 13.5px)/1.25 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink); }
.rs025 .rs025-opt__in { position: absolute; left: 0; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; }
/* accept / decline: k-btn--line toggles, the chosen one k-btn--solid */
.rs025 .rs025-opt--tog { justify-content: center; min-height: 48px; padding: 6px 10px; border: 1px solid var(--k-line); border-radius: 2px;
  font-size: clamp(10.5px, 3cqw, 13px); letter-spacing: .1em; text-align: center; color: var(--k-ink-soft); background: transparent;
  transition: background-color .2s, color .2s, border-color .2s; }
/* the chosen answer is filled with gold leaf, laid from left to right; unchosen it is bare at once */
.rs025 .rs025-opt--tog { isolation: isolate; }
.rs025 .rs025-opt--tog::after { content: ""; position: absolute; z-index: -1; inset: 0; background: #84632A; pointer-events: none;
  -webkit-mask: linear-gradient(100deg, #000 42%, transparent 58%) 100% 0 / 280% 100% no-repeat; mask: linear-gradient(100deg, #000 42%, transparent 58%) 100% 0 / 280% 100% no-repeat; }
.rs025 .rs025-opt--tog:has(:checked) { border-color: #84632A; color: #FBF8F1; transition: color 560ms var(--k-gild-ease, ease), border-color 560ms var(--k-gild-ease, ease); }
.rs025 .rs025-opt--tog:has(:checked)::after { -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: -webkit-mask-position 560ms var(--k-gild-ease, ease), mask-position 560ms var(--k-gild-ease, ease); }
html.kjy-lite .rs025 .rs025-opt--tog, html.kjy-lite .rs025 .rs025-opt--tog::after, html.motion-reduce .rs025 .rs025-opt--tog, html.motion-reduce .rs025 .rs025-opt--tog::after { transition: none; }
/* narrow cards: each choice stays on one line */
@container (max-width: 420px) { .rs025 .rs025-opt--tog { white-space: nowrap; letter-spacing: .05em; padding: 6px 4px; } }
.rs025 .rs025-opt__dot { flex: none; box-sizing: border-box; width: clamp(14px, 3.8cqw, 17px); aspect-ratio: 1; border: 1px solid var(--k-gold-ink); border-radius: 50%; }
.rs025 .rs025-opt__dot--box { border-radius: 2px; }
.rs025 .rs025-opt--guests { justify-content: center; }
.rs025 .rs025-input--guests { -webkit-appearance: none; appearance: none; margin: 0 0 0 -.15em; padding: 0 1.25em 0 .35em; border: 0; border-bottom: 1px solid #B89A62;
  border-radius: 0; background-color: transparent; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--k-gold-ink) 50%), linear-gradient(135deg, var(--k-gold-ink) 50%, transparent 50%);
  background-position: calc(100% - .6em) 58%, calc(100% - .3em) 58%; background-size: .3em .3em; background-repeat: no-repeat;
  min-height: 44px; font: 500 16px/1.25 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink); } /* 16px: iOS zooms into a smaller field; 44 px: the touch target */
.rs025 .rs025-input--guests:focus-visible { outline: 2px solid var(--k-gold-ink); outline-offset: 2px; }
.rs025 .rs025-opt__d { display: block; margin-top: .25em; font: italic 500 clamp(14px, 3.9cqw, 16px)/1.25 var(--k-font-body); font-variant-numeric: lining-nums; letter-spacing: 0; text-transform: none; color: var(--k-ink-soft); }
.rs025 .rs025-field { display: block; margin: clamp(22px, 6.5cqw, 32px) 0 0; }
.rs025 .rs025-field__l { display: block; margin: 0 0 .8em; font: 600 clamp(10px, 2.8cqw, 12.5px)/1.5 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .18em; text-transform: uppercase; color: var(--k-ink-soft); }
.rs025 .rs025-field__l i { font-style: normal; letter-spacing: .1em; }
.rs025 .rs025-input--note { box-sizing: border-box; display: block; width: 100%; min-height: 4.4em; margin: 0; padding: .45em .7em; border: 1px solid #B89A62; border-radius: 2px;
  background: transparent; resize: vertical; font: italic 500 18px/1.4 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink); }
.rs025 .rs025-input--note:focus-visible { outline: 2px solid var(--k-gold-ink); outline-offset: 2px; }

/* the reply core's parts, in this card's gold */
.rs025 .rs025-evs { display: block; width: 100%; margin: clamp(18px, 5.5cqw, 26px) 0 0; text-align: left; }
.rs025 .rs025-help { margin: 0 0 clamp(10px, 3cqw, 14px); text-align: center; font: italic 500 clamp(14px, 3.9cqw, 16px)/1.3 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink-soft); }
.rs025 .rs025__evlist { display: grid; width: min(100%, 480px); margin-inline: auto; gap: clamp(8px, 2.4cqw, 12px); }
.rs025 .rs025-ev { display: flex; align-items: center; gap: clamp(9px, 2.8cqw, 13px);
  font: 600 clamp(11px, 3.3cqw, 13.5px)/1.25 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .14em; text-transform: uppercase; color: var(--k-ink); }
.rs025 .rs025-ev__n { flex: 1 1 auto; min-width: 0; text-align: left; }
.rs025 .rs025-ev.is-on .rs025-ev__f { background: linear-gradient(var(--k-gold-ink), var(--k-gold-ink)) center / 54% 54% no-repeat; }
.rs025 .rs025-ev__c { flex: none; width: auto; letter-spacing: 0; text-transform: none; }
.rs025 .rs025-extra:empty { display: none; }
.rs025 .rs025-input--q { box-sizing: border-box; display: block; width: 100%; min-height: 44px; margin: 0; padding: .3em .2em; border: 0; border-bottom: 1px solid #B89A62;
  border-radius: 0; background: transparent; text-align: center; outline: none; font: 500 16px/1.3 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink); }
.rs025 .rs025-input--q:focus-visible { border-bottom-color: var(--k-gold-ink); box-shadow: 0 1px 0 var(--k-gold-ink); }
.rs025 select.rs025-input--q { -webkit-appearance: none; appearance: none; cursor: pointer; }
.rs025 .rs025-late, .rs025 .rs025-err { margin: clamp(14px, 4cqw, 20px) 0 0; text-align: center; font: italic 500 clamp(15px, 4.2cqw, 17px)/1.35 var(--k-font-body); font-variant-numeric: lining-nums; }
.rs025 .rs025-late { color: var(--k-gold-ink); }
.rs025 .rs025-err { color: #8B2E2E; }
.rs025 .rs025-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rs025 .rs025-mine__t { margin: clamp(12px, 4cqw, 20px) auto 0; max-inline-size: 24em; font: italic 500 clamp(15px, 4.2cqw, 17px)/1.35 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink); }
.rs025 .rs025-mine__t:empty { display: none; }
.rs025 .rs025-mine__b { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; margin: 4px 0 0; }

/* the send: one solid gold button, and the house line under it */
.rs025 .rs025-send { min-width: 180px; }
.rs025 .rs025__go { margin: clamp(24px, 7cqw, 34px) 0 0; }
.rs025 .rs025__small { margin: .7em auto 0; max-inline-size: 22em; font: italic 500 clamp(15px, 4.2cqw, 17px)/1.35 var(--k-font-body); font-variant-numeric: lining-nums; color: var(--k-ink-soft); }
/* after the press: thank you, the status line, a way back into WhatsApp (a blocked pop-up) and the ways to change the reply */
.rs025 .rs025__done { padding: clamp(6px, 2cqw, 12px) 0; }
.rs025 .rs025__thanks { margin: 0 auto; max-inline-size: 20em; font: 400 clamp(30px, 9cqw, 42px)/1.2 var(--k-font-script); font-variant-numeric: lining-nums; color: var(--k-gold-ink); text-wrap: balance; }
.rs025 .rs025__thanks-sub { margin: .7em auto 0; max-inline-size: 24em; font: 600 clamp(10px, 2.9cqw, 12.5px)/1.6 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .16em; text-transform: uppercase; color: var(--k-ink-soft); }
.rs025 .rs025__done-go { margin: clamp(18px, 6cqw, 28px) 0 0; }
.rs025 .rs025-again { margin: 8px 0 0; min-height: 44px; padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font: 600 clamp(11px, 3cqw, 12.5px)/1 var(--k-font-display); font-variant-numeric: lining-nums; letter-spacing: .2em; text-transform: uppercase; color: var(--k-gold-ink);
  text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 1px; }
.rs025 .rs025-again:focus-visible { outline: 2px solid var(--k-gold-ink); outline-offset: 2px; }
/* no script (and reduced motion), or no contact: the deadline on the sheet; with a contact, the plain WhatsApp button */
.rs025 .rs025__by--linen { margin: 0 auto; max-inline-size: 30em; padding: 0 20px; }
.rs025 .rs025__plain-go { margin: clamp(18px, 4svh, 28px) 0 0; padding: 0 20px; }
.rs025 .rs025__card.is-shake { animation: rs025-shake 240ms ease-in-out; }
@keyframes rs025-shake { 0%, 100% { transform: translateX(0); } 12.5%, 62.5% { transform: translateX(-4px); } 37.5%, 87.5% { transform: translateX(4px); } }
html.kjy-lite .rs025 *, html.kjy-lite .rs025 *::before, html.kjy-lite .rs025 *::after,
html.motion-reduce .rs025 *, html.motion-reduce .rs025 *::before, html.motion-reduce .rs025 *::after { animation: none !important; }

/* on computers the sheet's column is about 90 % wide (skin); the reply card keeps its measure, centred */
@media (min-aspect-ratio: 1/1) and (min-width: 1000px) and (hover: hover) and (pointer: fine) { .rs025 .rs025__stage { width: min(100%, var(--k-measure)); } }

/* the gilded arch above the card (the skin draws it; a width of its own for other skins) */
.rs025 .k-aj { width: var(--k-aj-w, min(210px, 58%)); }
/* the card closes (section.js: is-closing, then is-thanks): the fields fade, a small gilded arch draws, the thank-you
   rises through it in gold leaf and the lines under it print one by one */
.rs025.is-closing .rs025__fields { opacity: 0; transition: opacity 100ms ease; }
/* the accept and decline toggles get the double rule too; the chosen one an ivory inner rule; focus still wins */
.rs025 .rs025-opt--tog { outline: 1px solid #B89A62; outline-offset: -5px; }
.rs025 .rs025-opt--tog:has(:checked) { outline-color: rgb(251 248 241 / .55); }
.rs025 .rs025-opt--tog:has(:focus-visible) { outline: 2px solid #84632A; outline-offset: 3px; }
.rs025.is-sending .rs025-again { pointer-events: none; }
.rs025 .rs025__arch { display: block; width: calc(var(--k-ga-k, 1) * 28px); height: auto; margin: 0 auto clamp(8px, 2.4cqw, 12px); overflow: visible; }
.rs025 .rs025__arch path { fill: none; stroke: #A3834A; stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1; }
.rs025 .rs025__arch .rs025__key { fill: #A3834A; stroke: none; }
.rs025.is-thanks .rs025__leg { animation: rs025-leg 600ms cubic-bezier(.45, 0, .25, 1) both; }
.rs025.is-thanks .rs025__key { animation: rs025-key 420ms cubic-bezier(.3, 1.4, .5, 1) 600ms both; }
.rs025.is-thanks .rs025__thanks { animation: rs025-rise 900ms cubic-bezier(.16, 1, .3, 1) 0ms both, rs025-gild 1100ms cubic-bezier(.45, 0, .25, 1) 200ms both;
  -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-image: linear-gradient(100deg, #000 42%, transparent 58%);
  -webkit-mask-size: 280% 100%; mask-size: 280% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.rs025.is-thanks .rs025__done > p:not(.rs025__thanks) { animation: rs025-print 600ms cubic-bezier(.2, .7, .1, 1) calc(300ms + var(--rs025-i, 0) * 80ms) both; }
@keyframes rs025-leg { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rs025-key { from { opacity: 0; translate: 0 -14px; } 40% { opacity: 1; } }
@keyframes rs025-rise { from { clip-path: inset(100% -20% -30% -20% round 50% 50% 0 0 / 2.4em 2.4em 0 0); translate: 0 .5em; opacity: 0; }
  to { clip-path: inset(-40% -20% -30% -20% round 50% 50% 0 0 / 2.4em 2.4em 0 0); translate: 0 0; } }
@keyframes rs025-gild { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes rs025-print { from { opacity: 0; translate: 0 .42em; } }
