.rsvp-shell {
    min-height: 100svh;
    padding: 1rem;
    color: var(--ink, #3f4740);
    background:
        radial-gradient(circle at 100% 0%, rgb(203 221 225 / 58%), transparent 25rem),
        radial-gradient(circle at 0% 50%, rgb(135 155 130 / 10%), transparent 28rem),
        var(--cream, #fbf7ef);
}

.rsvp-nav,
.rsvp-event-card,
.rsvp-welcome,
.rsvp-layout,
.rsvp-page-alert,
.rsvp-locked-note,
.rsvp-empty,
.rsvp-shell > .rsvp-success {
    width: min(100%, 78rem);
    margin-right: auto;
    margin-left: auto;
}

.rsvp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 0.8rem;
}

.rsvp-nav strong {
    display: block;
    margin-top: 0.15rem;
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.rsvp-eyebrow {
    color: var(--sage-deep, #586c56);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rsvp-secondary-button,
.rsvp-primary-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.rsvp-secondary-button {
    padding: 0.65rem 0.9rem;
    border: 1px solid #bcc1bd;
    color: var(--ink, #3f4740);
    background: rgb(255 253 249 / 75%);
}

.rsvp-secondary-button:hover,
.rsvp-secondary-button:focus-visible {
    border-color: var(--sage-deep, #586c56);
    color: var(--sage-deep, #586c56);
    background: white;
}

.rsvp-event-card {
    display: grid;
    margin-bottom: 1rem;
    padding: 1.4rem;
    border: 1px solid rgb(183 185 184 / 65%);
    border-radius: 1.25rem;
    background: var(--warm-white, #fffdf9);
    box-shadow: 0 1rem 3rem rgb(63 71 64 / 7%);
    gap: 1rem;
}

.rsvp-event-main h1 {
    margin: 0.55rem 0 0.45rem;
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 10vw, 3.6rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
}

.rsvp-event-date,
.rsvp-event-end {
    margin: 0;
    color: #566159;
    font-size: 0.9rem;
    font-weight: 700;
}

.rsvp-event-end {
    margin-top: 0.15rem;
    color: #778079;
    font-size: 0.78rem;
    font-weight: 500;
}

.rsvp-event-location {
    display: flex;
    align-items: flex-start;
    margin: 0.75rem 0 0;
    color: #6e786f;
    gap: 0.45rem;
    font-size: 0.84rem;
}

.rsvp-event-location > span:last-child,
.rsvp-event-location strong,
.rsvp-event-location small {
    display: block;
}

.rsvp-event-location strong {
    color: #536057;
}

.rsvp-event-description {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #e3e5e3;
    color: #6d776f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.65;
    white-space: pre-line;
}

.rsvp-welcome {
    margin-bottom: 1rem;
    padding: 0.6rem 0.5rem 0.8rem;
    text-align: center;
}

.rsvp-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ice-blue-deep, #7999a1);
    gap: 0.7rem;
}

.rsvp-ornament span {
    width: 2.6rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b7b9b8);
}

.rsvp-ornament span:last-child {
    background: linear-gradient(90deg, #b7b9b8, transparent);
}

.rsvp-ornament i {
    font-style: normal;
}

.rsvp-welcome h2 {
    margin: 0.65rem 0 0.4rem;
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 7vw, 2rem);
    font-weight: 400;
}

.rsvp-welcome p {
    max-width: 36rem;
    margin: 0 auto;
    color: #6f7971;
    font-size: 0.88rem;
    line-height: 1.55;
}

.rsvp-success {
    margin-bottom: 1rem;
    border-color: rgb(135 155 130 / 45%);
    color: var(--sage-deep, #586c56);
    background: rgb(135 155 130 / 15%);
}

.rsvp-page-alert,
.rsvp-locked-note {
    margin-bottom: 1rem;
}

.rsvp-locked-note {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid rgb(121 153 161 / 45%);
    border-radius: 0.9rem;
    color: #53666a;
    background: rgb(203 221 225 / 42%);
    gap: 0.75rem;
}

.rsvp-locked-note > span {
    font-size: 1.2rem;
}

.rsvp-locked-note strong,
.rsvp-locked-note p {
    display: block;
}

.rsvp-locked-note p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
}

.rsvp-layout {
    display: grid;
    gap: 1rem;
}

.rsvp-responses {
    display: grid;
    gap: 1rem;
}

.rsvp-person-card,
.rsvp-summary,
.rsvp-empty {
    padding: 1.2rem;
    border: 1px solid rgb(183 185 184 / 65%);
    border-radius: 1.2rem;
    background: var(--warm-white, #fffdf9);
    box-shadow: 0 1rem 3rem rgb(63 71 64 / 7%);
}

.rsvp-person-card {
    min-width: 0;
    margin: 0;
}

.rsvp-person-card[disabled] {
    opacity: 0.82;
}

.rsvp-person-heading {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3e5e3;
    gap: 0.75rem;
}

.rsvp-avatar {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--sage-deep, #586c56);
    background: rgb(203 221 225 / 48%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.rsvp-person-heading > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.rsvp-person-heading h2 {
    margin: 0;
    overflow: hidden;
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 400;
    text-overflow: ellipsis;
}

.rsvp-person-heading p {
    margin: 0.1rem 0 0;
    color: #7d857f;
    font-size: 0.72rem;
}

.rsvp-child-badge {
    flex: 0 0 auto;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: #60757a;
    background: rgb(203 221 225 / 52%);
    font-size: 0.68rem;
    font-weight: 750;
}

.rsvp-person-errors {
    margin: 1rem 0 0;
}

.rsvp-person-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.rsvp-status-picker,
.rsvp-question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rsvp-status-picker {
    margin-top: 1.1rem;
}

.rsvp-status-picker > legend,
.rsvp-question > legend,
.rsvp-notes > label {
    float: none;
    width: auto;
    margin: 0 0 0.55rem;
    color: #4f5951;
    font-size: 0.88rem;
    font-weight: 750;
}

.rsvp-status-options {
    display: grid;
    gap: 0.5rem;
}

.rsvp-status-option {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    padding: 0.65rem 0.8rem;
    border: 1px solid #dfe2df;
    border-radius: 0.8rem;
    color: #626c64;
    cursor: pointer;
    background: #fcfbf7;
    gap: 0.55rem;
}

.rsvp-status-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.rsvp-status-option > span {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #7a837c;
    background: #eceeec;
    font-size: 0.86rem;
    font-weight: 800;
}

.rsvp-status-option strong {
    font-size: 0.84rem;
}

.rsvp-status-option.is-selected {
    border-color: rgb(135 155 130 / 68%);
    color: var(--sage-deep, #586c56);
    background: rgb(135 155 130 / 10%);
}

.rsvp-status-option.is-accepted.is-selected > span {
    color: white;
    background: var(--sage-deep, #586c56);
}

.rsvp-status-option.is-declined.is-selected {
    border-color: rgb(166 119 111 / 45%);
    color: #7a514b;
    background: rgb(166 119 111 / 9%);
}

.rsvp-status-option.is-declined.is-selected > span {
    color: white;
    background: #9b6a62;
}

.rsvp-status-option.is-pending.is-selected {
    border-color: rgb(121 153 161 / 55%);
    color: #536a70;
    background: rgb(203 221 225 / 34%);
}

.rsvp-status-option.is-pending.is-selected > span {
    color: white;
    background: var(--ice-blue-deep, #7999a1);
}

.rsvp-questions {
    margin-top: 1.35rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #fcfaf5;
}

.rsvp-questions.is-inactive {
    border: 1px dashed #d9ddda;
}

.rsvp-questions-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    gap: 0.65rem;
}

.rsvp-questions-heading h3 {
    margin: 0;
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 400;
}

.rsvp-questions-heading > span {
    color: #7b847d;
    font-size: 0.68rem;
    text-align: right;
}

.rsvp-question + .rsvp-question {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e3e5e3;
}

.rsvp-question > legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rsvp-required {
    padding: 0.24rem 0.45rem;
    border-radius: 999px;
    color: #6b554e;
    background: #f1e3dc;
    font-size: 0.62rem;
    font-weight: 750;
}

.rsvp-question > p {
    margin: -0.3rem 0 0.6rem;
    color: #7a837b;
    font-size: 0.75rem;
    line-height: 1.45;
}

.rsvp-question .form-control,
.rsvp-notes .form-control {
    border-color: #c9cdca;
    border-radius: 0.72rem;
    color: var(--ink, #3f4740);
    background: #fffefa;
    resize: vertical;
}

.rsvp-choice-list {
    display: grid;
    gap: 0.45rem;
}

.rsvp-choice-list > label {
    display: flex;
    min-height: 3rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border: 1px solid #dfe2df;
    border-radius: 0.72rem;
    cursor: pointer;
    background: #fffefa;
    gap: 0.65rem;
}

.rsvp-choice-list > label:has(input:checked) {
    border-color: rgb(135 155 130 / 65%);
    color: var(--sage-deep, #586c56);
    background: rgb(135 155 130 / 10%);
}

.rsvp-choice-list .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    margin: 0;
    border-color: #adb5af;
}

.rsvp-choice-list .form-check-input:checked {
    border-color: var(--sage-deep, #586c56);
    background-color: var(--sage-deep, #586c56);
}

.rsvp-choice-list > label span {
    font-size: 0.84rem;
    font-weight: 600;
}

.rsvp-choice-list.is-boolean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsvp-clear-answer {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0.25rem;
    border: 0;
    border-radius: 0.3rem;
    color: #69756c;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.rsvp-clear-answer:disabled {
    opacity: 0.42;
}

.rsvp-field-error {
    margin-top: 0.4rem;
    color: #b02a37;
    font-size: 0.78rem;
}

.rsvp-notes {
    margin-top: 1.2rem;
}

.rsvp-notes > label {
    display: block;
}

.rsvp-notes > label span {
    color: #858d87;
    font-size: 0.72rem;
    font-weight: 500;
}

.rsvp-summary h2 {
    margin: 0.3rem 0 1rem;
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 400;
}

.rsvp-summary-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.rsvp-summary-counts > div {
    padding: 0.8rem 0.35rem;
    border-radius: 0.75rem;
    text-align: center;
}

.rsvp-summary-counts .is-accepted {
    background: rgb(135 155 130 / 14%);
}

.rsvp-summary-counts .is-declined {
    background: rgb(166 119 111 / 10%);
}

.rsvp-summary-counts .is-pending {
    background: rgb(203 221 225 / 38%);
}

.rsvp-summary-counts strong,
.rsvp-summary-counts span {
    display: block;
}

.rsvp-summary-counts strong {
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
}

.rsvp-summary-counts span {
    margin-top: 0.28rem;
    color: #747d76;
    font-size: 0.66rem;
    font-weight: 700;
}

.rsvp-deadline {
    margin: 0.9rem 0 1rem;
    padding: 0.8rem;
    border: 1px solid rgb(121 153 161 / 35%);
    border-radius: 0.75rem;
    color: #53666a;
    background: rgb(203 221 225 / 25%);
}

.rsvp-deadline span,
.rsvp-deadline strong {
    display: block;
}

.rsvp-deadline span {
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rsvp-deadline strong {
    font-size: 0.78rem;
}

.rsvp-primary-button {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--sage-deep, #586c56);
    color: white;
    background: var(--sage-deep, #586c56);
    gap: 0.5rem;
}

.rsvp-primary-button:hover,
.rsvp-primary-button:focus-visible {
    color: white;
    background: #485c47;
}

.rsvp-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.rsvp-saving {
    margin: 0.6rem 0 0;
    color: #6e7970;
    font-size: 0.72rem;
    text-align: center;
}

.rsvp-empty {
    padding: 3rem 1.25rem;
    color: #727c74;
    text-align: center;
}

.rsvp-empty > span {
    display: inline-grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border-radius: 50%;
    color: var(--ice-blue-deep, #7999a1);
    background: rgb(203 221 225 / 42%);
    font-size: 1.5rem;
}

.rsvp-empty h2 {
    margin: 1rem 0 0.4rem;
    color: var(--sage-deep, #586c56);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.rsvp-empty p {
    max-width: 31rem;
    margin: 0 auto;
    font-size: 0.86rem;
    line-height: 1.55;
}

.rsvp-status-option:focus-within,
.rsvp-choice-list > label:focus-within,
.rsvp-question .form-control:focus,
.rsvp-notes .form-control:focus,
.rsvp-clear-answer:focus-visible,
.rsvp-primary-button:focus-visible,
.rsvp-secondary-button:focus-visible {
    border-color: var(--ice-blue-deep, #7999a1);
    outline: 3px solid rgb(121 153 161 / 28%);
    outline-offset: 2px;
    box-shadow: none;
}

@media (min-width: 576px) {
    .rsvp-shell {
        padding: 1.5rem;
    }

    .rsvp-event-card,
    .rsvp-person-card,
    .rsvp-summary {
        padding: 1.6rem;
    }

    .rsvp-status-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rsvp-status-option {
        justify-content: center;
    }

    .rsvp-choice-list:not(.is-boolean) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .rsvp-event-card {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.75fr);
        align-items: center;
        gap: 2rem;
    }

    .rsvp-event-description {
        padding: 0 0 0 2rem;
        border-top: 0;
        border-left: 1px solid #e3e5e3;
    }
}

@media (min-width: 992px) {
    .rsvp-shell {
        padding: 2.5rem;
    }

    .rsvp-nav {
        margin-bottom: 2rem;
    }

    .rsvp-layout {
        grid-template-columns: minmax(0, 1fr) 19rem;
        align-items: start;
        gap: 1.5rem;
    }

    .rsvp-summary {
        position: sticky;
        top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsvp-shell *,
    .rsvp-shell *::before,
    .rsvp-shell *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
