/* Align the heading with the practical guide; keep the compact form centered. */
main>.rsvp-section.section{padding-block:clamp(32px,4vw,48px)}
.rsvp-section.section>.wrap.rsvp-layout{max-width:1040px;grid-template-columns:minmax(0,1fr);gap:22px;margin-inline:auto}
.rsvp-section .rsvp-intro{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 16px;align-items:center;padding:0;min-height:0;text-align:left}
.rsvp-section .rsvp-intro h2{grid-column:1;grid-row:1;font-size:clamp(2.2rem,3.6vw,3.4rem);line-height:1.12;white-space:normal;margin:0}
.rsvp-section .rsvp-intro>.section-sketch{position:static;grid-column:2;grid-row:1;justify-self:start;width:50px;height:54px;transform:rotate(-8deg)}
.rsvp-section .rsvp-card{max-width:none;width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
/* Events are the primary action; personal details support the selection. */
#rsvp-form{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:32px;align-items:start}
.rsvp-event-choices,.rsvp-response-fields{min-width:0}
.rsvp-card .rsvp-event-list{border:0;padding:0;margin:0;min-width:0}
.rsvp-section .rsvp-intro>p{grid-column:1/-1;grid-row:2;margin:6px 0 0;max-width:none;font-size:1rem;line-height:1.5;color:var(--muted)}
.rsvp-days{border-top:1px solid #a38c6a45}
.rsvp-day{display:grid;grid-template-columns:106px minmax(0,1fr);gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #a38c6a45}
.rsvp-day-date{display:flex;flex-direction:column;gap:4px}
.rsvp-day-date time{font-size:.875rem;line-height:1.4;font-weight:500}
.rsvp-day-status{font-size:.875rem;line-height:1.4;color:var(--muted)}
.rsvp-day-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rsvp-card .rsvp-event-chip{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:52px;margin:0;padding:10px 12px;border:1px solid #a38c6a50;border-radius:9px;background:transparent;cursor:pointer}
.rsvp-event-chip:has(input:checked){background:var(--selected-surface);border-color:var(--olive);color:var(--ink)}
.rsvp-event-chip:has(input:focus-visible),.rsvp-decline:focus-within{outline:2px solid var(--olive);outline-offset:3px}
.rsvp-event-chip input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.rsvp-event-chip .event-option-copy{min-width:0}
.rsvp-event-chip .event-option-name{font-size:1rem;line-height:1.3;font-weight:400;overflow-wrap:anywhere}
.rsvp-event-check{flex-shrink:0;display:grid;place-items:center;width:20px;height:20px;border:1px solid #a38c6a65;border-radius:50%}
.rsvp-event-check svg{width:16px;height:16px;fill:none;stroke:var(--ivory);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.rsvp-event-chip:has(input:checked) .rsvp-event-check{background:var(--olive);border-color:var(--olive)}
.rsvp-event-chip:has(input:checked) .rsvp-event-check svg{opacity:1}
.rsvp-decline input{width:18px;height:18px;flex-shrink:0;accent-color:var(--olive)}
.rsvp-card .rsvp-decline{display:flex;align-items:center;gap:10px;min-height:44px;margin:12px 0 0;padding:8px 0;font-size:1rem;line-height:1.4;cursor:pointer}
.rsvp-decline input{margin:0}
.rsvp-selection-count{font-size:.875rem;color:var(--muted);line-height:1.4;margin:6px 0 0}
.rsvp-response-fields{border-left:1px solid #a38c6a40;padding-left:28px;display:flex;flex-direction:column;gap:14px}
.rsvp-contact-fields,#attending-fields,.rsvp-optional-fields{display:flex;flex-direction:column;gap:12px}
.rsvp-card :is(.rsvp-contact-fields,#attending-fields,.rsvp-optional-fields)>label{min-width:0;margin:0;line-height:1.4;font-size:1rem}
.rsvp-card input:not([type=radio]):not([type=checkbox]),.rsvp-card select,.rsvp-card textarea{min-height:44px;font-size:1rem;padding:10px 12px;margin-top:6px}
.rsvp-card textarea{min-height:72px;resize:vertical;line-height:1.5}
.rsvp-optional{border-top:1px solid #a38c6a40;padding-top:4px}
.rsvp-optional>summary{font-size:1rem;line-height:1.4;cursor:pointer;min-height:44px;padding:12px 0;color:var(--muted)}
.rsvp-optional>summary:focus-visible{outline:2px solid var(--olive);outline-offset:3px}
.rsvp-optional-fields{padding:4px 0 8px}
.rsvp-card .form-submit{width:100%;min-height:46px;margin-top:0;padding:12px 18px;font-size:1rem}
.rsvp-response-fields>:is(.form-error,.form-note){margin:0}
.rsvp-card .rsvp-success{align-items:center;text-align:center;padding-block:20px}
.rsvp-success h3{font-size:1.8rem}
@media(hover:hover) and (pointer:fine){.rsvp-event-chip:hover{border-color:var(--ochre)}}
@media(max-width:900px){#rsvp-form{column-gap:22px}.rsvp-response-fields{padding-left:20px}.rsvp-day-options{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 .rsvp-section.section>.wrap.rsvp-layout{gap:18px}
 .rsvp-section .rsvp-card{padding:0}
 .rsvp-section .rsvp-intro{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}
 .rsvp-section .rsvp-intro h2{font-size:clamp(2rem,8vw,2.65rem)}
 .rsvp-section .rsvp-intro>.section-sketch{width:32px;height:34px}
 #rsvp-form{grid-template-columns:minmax(0,1fr);gap:22px}
 .rsvp-day{grid-template-columns:minmax(0,1fr);gap:8px;padding-block:12px}
 .rsvp-day-date{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
 .rsvp-day-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rsvp-card .rsvp-event-chip{padding:10px 8px;gap:7px}
 .rsvp-response-fields{border-left:0;border-top:1px solid #a38c6a40;padding:18px 0 0}
 .rsvp-card .rsvp-success{padding-block:12px}
}
@media(max-width:360px){.rsvp-day-options{grid-template-columns:minmax(0,1fr)}}

.rsvp-section>.wrap.rsvp-title-wrap{--overview-scale:.86;zoom:var(--overview-scale);width:calc(100% - 2 * var(--page-gutter));max-width:1180px;margin:0 auto 22px}
@media(max-width:900px){.rsvp-section>.wrap.rsvp-title-wrap{--overview-scale:.92}}
@media(max-width:700px){.rsvp-section>.wrap.rsvp-title-wrap{margin-bottom:18px}}
@supports not (zoom:1){.rsvp-section>.wrap.rsvp-title-wrap{--overview-scale:1}}

/* Related day/date tones make the week's plans easier to distinguish. */
.rsvp-day{--plan-tint:#787f6610;--plan-selected:#787f6628;--plan-edge:#787f66}
.rsvp-day[data-rsvp-day="21"]{--plan-tint:#e7cc5d24;--plan-selected:#e7cc5d50;--plan-edge:#bda33a}
.rsvp-day[data-rsvp-day="22"]{--plan-tint:#a38c6a1a;--plan-selected:#a38c6a38;--plan-edge:#a38c6a}
.rsvp-day[data-rsvp-day="23"]{--plan-tint:#787f6614;--plan-selected:#787f6633;--plan-edge:#787f66}
.rsvp-day[data-rsvp-day="24"]{--plan-tint:#d6993920;--plan-selected:#d6993940;--plan-edge:#d69939}
.rsvp-day[data-rsvp-day="25"]{--plan-tint:#e8e5de80;--plan-selected:#a38c6a2b;--plan-edge:#9b998d}
.rsvp-day-date{border-left:3px solid var(--plan-edge);padding-left:9px}
.rsvp-card .rsvp-event-chip{background:var(--plan-tint);border-color:color-mix(in srgb,var(--plan-edge) 45%,transparent)}
.rsvp-card .rsvp-event-chip:has(input:checked){background:var(--plan-selected);border-color:var(--olive);box-shadow:inset 0 0 0 1px var(--olive)}
.rsvp-event-chip .event-option-copy{display:flex;flex-direction:column;gap:5px}
.rsvp-event-chip .event-option-time{display:flex;flex-direction:column;gap:2px;font-size:.875rem;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}
.rsvp-event-chip .event-option-time>span{display:block}
@media(hover:hover) and (pointer:fine){.rsvp-card .rsvp-event-chip:hover{border-color:var(--plan-edge)}.rsvp-card .rsvp-event-chip:has(input:checked):hover{border-color:var(--olive)}}

.rsvp-selection-count:empty{display:none}
