:root {
    --primary-background: #585744;
    --secondary-background: #DDDAC8;
    --accent-olive: #6C6954;
    --dark-details: #474735;
    --neutral-accent: #BEBAA9;
    --muted-taupe: #989584;
    --charcoal: var(--dark-details);
    --dusty-blue: var(--muted-taupe);
    --olive: var(--accent-olive);
    --walnut: var(--primary-background);
    --ivory: var(--secondary-background);
    --white: #fff;
    --line: rgba(108, 105, 84, .22);
    --shadow: 0 18px 54px rgba(71, 71, 53, .11);
    --shadow-soft: 0 12px 36px rgba(71, 71, 53, .09);
    --radius: 14px;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    color: var(--walnut);
    background: var(--ivory);
    font-family: "Poppins", "Lato", system-ui, -apple-system, sans-serif;
    letter-spacing: 0;
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

iframe {
    width: 100%;
}

.page-loader {
    align-items: center;
    background: var(--secondary-background);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 1;
    position: fixed;
    transition: opacity .38s ease, visibility .38s ease;
    visibility: visible;
    z-index: 3000;
}

.page-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.page-loader-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

.page-loader-monogram {
    animation: page-loader-pulse 1.45s ease-in-out infinite;
    display: block;
    height: clamp(92px, 18vw, 150px);
    object-fit: contain;
    width: clamp(92px, 18vw, 150px);
}

.page-loader-label {
    color: var(--dark-details);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.page-loader-dots {
    display: flex;
    gap: 6px;
}

.page-loader-dots i {
    animation: page-loader-dot 1.1s ease-in-out infinite;
    background: var(--accent-olive);
    border-radius: 50%;
    height: 6px;
    width: 6px;
}

.page-loader-dots i:nth-child(2) {
    animation-delay: .16s;
}

.page-loader-dots i:nth-child(3) {
    animation-delay: .32s;
}

@keyframes page-loader-pulse {
    0%, 100% { opacity: .72; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes page-loader-dot {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .page-loader-monogram,
    .page-loader-dots i {
        animation: none;
        transition: none;
    }
}

a {
    color: var(--dusty-blue);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:hover {
    color: var(--olive);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    color: var(--charcoal);
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-weight: 700;
}

.navbar {
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid rgba(108, 105, 84, .14);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 32px rgba(71, 71, 53, .06);
}

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: .08em;
}

.nav-link {
    color: var(--charcoal);
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--olive);
}

.btn {
    border-radius: 999px;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    padding-inline: 1.2rem;
    transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(71, 71, 53, .13);
}

.btn-primary {
    --bs-btn-bg: var(--olive);
    --bs-btn-border-color: var(--olive);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--dusty-blue);
    --bs-btn-hover-border-color: var(--dusty-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--charcoal);
    --bs-btn-active-border-color: var(--charcoal);
}

.btn-secondary {
    --bs-btn-bg: var(--walnut);
    --bs-btn-border-color: var(--walnut);
    --bs-btn-hover-bg: var(--charcoal);
    --bs-btn-hover-border-color: var(--charcoal);
}

.btn-outline-secondary {
    --bs-btn-color: var(--walnut);
    --bs-btn-border-color: rgba(71, 71, 53, .42);
    --bs-btn-hover-bg: var(--walnut);
    --bs-btn-hover-border-color: var(--walnut);
    --bs-btn-hover-color: #fff;
}

.form-control,
.form-select {
    color: var(--charcoal);
    border-color: rgba(108, 105, 84, .24);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--olive);
    box-shadow: 0 0 0 .2rem rgba(108, 105, 84, .14);
}

.form-label {
    color: var(--walnut);
    font-weight: 600;
}

.unlock-body {
    min-height: 100vh;
    background-color: var(--ivory);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.unlock-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.unlock-card {
    position: relative;
    width: min(100%, 440px);
    display: grid;
    gap: 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(190, 186, 169, .72);
    border-radius: 16px;
    box-shadow: 0 24px 76px rgba(71, 71, 53, .22);
    padding: 34px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.unlock-card::before,
.thank-you-panel::before,
.rsvp-panel::before {
    content: "";
    position: absolute;
    inset: 14px;
    pointer-events: none;
    border: 1px solid rgba(108, 105, 84, .16);
    border-radius: 12px;
}

.admin-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(152, 149, 132, .24), transparent 32%),
        var(--ivory);
}

.admin-login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.unlock-logo {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 1px solid rgba(108, 105, 84, .24);
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, var(--secondary-background));
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .48), var(--shadow-soft);
    overflow: hidden;
}

.unlock-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unlock-logo span {
    color: var(--olive);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
}

.hero {
    position: relative;
    min-height: calc(100vh - 66px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(0deg, rgba(221, 218, 200, .95), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: clamp(48px, 8vh, 80px);
    padding-bottom: clamp(72px, 12vh, 112px);
}

.hero-copy {
    width: min(100%, 920px);
    color: #fff;
    animation: fadeInUp .7s ease both;
}

.hero h1 {
    color: #fff;
    font-size: clamp(3.5rem, 8vw, 7.4rem);
    line-height: .9;
    margin-bottom: 24px;
    text-shadow: 0 18px 46px rgba(71, 71, 53, .24);
}

.hero h1.couple-name {
    white-space: nowrap;
    max-width: 100%;
    font-size: clamp(2rem, 7.8vw, 6.2rem);
    line-height: clamp(.92, 1vw, 1);
    letter-spacing: -.02em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .76rem;
    font-weight: 700;
    color: var(--olive);
}

.hero .eyebrow {
    color: rgba(255, 255, 255, .84);
    font-size: clamp(.7rem, .55rem + .35vw, .9rem);
    letter-spacing: clamp(.09em, .07em + .12vw, .16em);
    text-wrap: balance;
}

.wedding-meta,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.wedding-meta span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #fff;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}

.invitation-page {
    position: relative;
    min-height: calc(100svh - 66px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(190, 186, 169, .48), transparent 32%),
        radial-gradient(circle at 88% 88%, rgba(108, 105, 84, .16), transparent 36%),
        var(--secondary-background);
}

.invitation-page::before,
.invitation-page::after {
    content: "";
    position: absolute;
    width: clamp(180px, 26vw, 380px);
    aspect-ratio: 1;
    border: 1px solid rgba(108, 105, 84, .18);
    border-radius: 50%;
    pointer-events: none;
}

.invitation-page::before {
    top: -14%;
    left: -8%;
}

.invitation-page::after {
    right: -10%;
    bottom: -20%;
}

.invitation-page-content {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    padding-top: clamp(64px, 10vh, 112px);
    padding-bottom: clamp(64px, 10vh, 112px);
    text-align: center;
}

.invitation-message {
    width: min(100%, 68ch);
    margin: 0 auto clamp(36px, 6vh, 64px);
    color: var(--dark-details);
    font-size: clamp(1rem, 1.1vw + .7rem, 1.35rem);
    line-height: 1.75;
    text-wrap: pretty;
}

.invitation-date {
    margin: 0;
    color: var(--primary-background);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.5rem, 5.8vw, 5.4rem);
    font-weight: 700;
    line-height: 1;
    text-wrap: balance;
}

.invitation-countdown {
    width: min(100%, 620px);
    margin: clamp(28px, 4.5vh, 48px) auto 0;
}

.invitation-countdown .countdown-grid {
    gap: clamp(8px, 1.4vw, 16px);
}

.invitation-countdown .countdown-grid div {
    min-width: 0;
    padding: clamp(12px, 1.8vw, 18px) 8px;
    background: rgba(255, 255, 255, .32);
    border-color: rgba(108, 105, 84, .24);
}

.invitation-countdown .countdown-grid strong {
    font-size: clamp(1.45rem, 2.7vw, 2.25rem);
}

.btn-outline-olive {
    --bs-btn-color: var(--primary-background);
    --bs-btn-border-color: var(--accent-olive);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--accent-olive);
    --bs-btn-hover-border-color: var(--accent-olive);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-background);
    --bs-btn-active-border-color: var(--primary-background);
}

.details-page {
    min-height: calc(100svh - 66px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 5vh, 62px) 0;
    scroll-margin-top: 66px;
    background:
        linear-gradient(rgba(255, 255, 255, .58), rgba(255, 255, 255, .58)),
        var(--secondary-background);
}

.details-heading {
    text-align: center;
}

.details-heading .eyebrow {
    margin-bottom: clamp(12px, 1.8vh, 18px);
    color: var(--primary-background);
    font-size: clamp(.68rem, .54rem + .25vw, .82rem);
    letter-spacing: .28em;
}

.details-heading h2 {
    margin: 0;
    color: var(--dark-details);
    font-size: clamp(3.1rem, 7.2vw, 6.8rem);
    font-weight: 600;
    line-height: .85;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.details-date {
    margin: clamp(16px, 2.5vh, 24px) 0 0;
    color: var(--muted-taupe);
    font-size: clamp(.78rem, .45vw + .7rem, .98rem);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-wrap: balance;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(28px, 4vh, 42px);
    padding: 0;
    border: 1px solid rgba(108, 105, 84, .26);
}

.details-event {
    min-width: 0;
    min-height: clamp(300px, 34vh, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 4vw, 50px) clamp(24px, 5vw, 68px);
    text-align: center;
}

.details-event + .details-event {
    border-left: 1px solid rgba(108, 105, 84, .26);
}

.details-number {
    margin-bottom: clamp(18px, 2.5vh, 26px);
    color: var(--accent-olive);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
}

.details-event h3 {
    margin: 0 0 clamp(22px, 3vh, 30px);
    color: var(--dark-details);
    font-size: clamp(2.5rem, 4.3vw, 4.3rem);
    font-weight: 600;
    line-height: .9;
}

.details-time {
    margin: 0 0 10px;
    color: var(--muted-taupe);
    font-size: clamp(.84rem, .45vw + .75rem, 1.02rem);
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.details-venue {
    width: min(100%, 34ch);
    min-height: 3.2em;
    margin: 0;
    color: var(--dark-details);
    font-size: clamp(.92rem, .5vw + .8rem, 1.12rem);
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.details-map {
    margin-top: clamp(22px, 3vh, 30px);
    color: var(--primary-background);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.details-map:hover,
.details-map:focus {
    color: var(--accent-olive);
}

.details-map span {
    display: inline-block;
    margin-left: 5px;
    font-size: 1.2em;
    transition: transform .2s ease;
}

.details-map:hover span,
.details-map:focus span {
    transform: translate(3px, -3px);
}

.details-rsvp {
    margin-top: clamp(24px, 3.5vh, 34px);
    text-align: center;
}

.section-heading {
    width: min(100%, 820px);
    margin: 0 auto clamp(34px, 5vh, 54px);
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-heading h2 {
    margin: 0;
    color: var(--primary-background);
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: .88;
    text-wrap: balance;
}

.section-heading > p:last-child {
    width: min(100%, 62ch);
    margin: 20px auto 0;
    color: var(--muted-taupe);
    line-height: 1.7;
}

.timeline-page {
    min-height: calc(100svh - 66px);
    display: flex;
    align-items: center;
    overflow: hidden;
    scroll-margin-top: 66px;
    background: var(--primary-background);
}

.timeline-page-content {
    padding-top: clamp(64px, 9vh, 104px);
    padding-bottom: clamp(64px, 9vh, 104px);
}

.section-heading-light h2 {
    color: var(--secondary-background);
}

.section-heading-light .eyebrow,
.section-heading-light > p:last-child {
    color: var(--neutral-accent);
}

.wedding-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(221, 218, 200, .28);
    border-left: 1px solid rgba(221, 218, 200, .18);
}

.timeline-event {
    position: relative;
    min-height: 230px;
    padding: 34px 22px 28px;
    border-right: 1px solid rgba(221, 218, 200, .18);
    border-bottom: 1px solid rgba(221, 218, 200, .18);
}

.timeline-event time {
    display: block;
    margin-bottom: 38px;
    color: var(--neutral-accent);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.timeline-marker {
    position: absolute;
    top: -5px;
    left: 22px;
    width: 9px;
    height: 9px;
    background: var(--secondary-background);
    border-radius: 50%;
}

.timeline-event h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
    line-height: 1;
}

.timeline-event p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: .9rem;
    line-height: 1.55;
}

.dress-code-page {
    min-height: calc(100svh - 66px);
    display: flex;
    align-items: center;
    scroll-margin-top: 66px;
    background:
        radial-gradient(circle at 8% 12%, rgba(108, 105, 84, .15), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(152, 149, 132, .2), transparent 30%),
        var(--secondary-background);
}

.dress-code-content {
    padding-top: clamp(64px, 9vh, 104px);
    padding-bottom: clamp(64px, 9vh, 104px);
}

.dress-code-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(108, 105, 84, .25);
}

.attire-card {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 64px);
    background: rgba(255, 255, 255, .35);
}

.attire-card + .attire-card {
    border-left: 1px solid rgba(108, 105, 84, .25);
}

.attire-number {
    position: absolute;
    top: 22px;
    right: 26px;
    color: rgba(108, 105, 84, .3);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
}

.attire-card h3 {
    margin: 0 0 14px;
    color: var(--primary-background);
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    line-height: .9;
}

.attire-card p {
    width: min(100%, 44ch);
    margin: 0;
    color: var(--dark-details);
    line-height: 1.7;
}

.dress-palette {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 30px;
    margin-top: 34px;
}

.dress-palette span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--dark-details);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dress-palette i {
    width: 28px;
    height: 28px;
    display: block;
    background: var(--swatch);
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(71, 71, 53, .15);
}

.dress-note {
    margin: 24px 0 0;
    color: var(--muted-taupe);
    font-size: .9rem;
    font-style: italic;
    text-align: center;
}

.story-page {
    position: relative;
    min-height: calc(100svh - 66px);
    display: flex;
    align-items: center;
    overflow: hidden;
    scroll-margin-top: 66px;
    background:
        linear-gradient(135deg, rgba(71, 71, 53, .22), transparent 48%),
        var(--primary-background);
}

.story-page::before {
    content: "SJ";
    position: absolute;
    right: clamp(-24px, 2vw, 28px);
    bottom: clamp(-54px, -3vw, -20px);
    color: rgba(221, 218, 200, .055);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(13rem, 32vw, 31rem);
    font-weight: 700;
    line-height: .7;
    pointer-events: none;
    user-select: none;
}

.story-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(71, 71, 53, .82), rgba(71, 71, 53, .58) 55%, rgba(71, 71, 53, .72));
    pointer-events: none;
}

.story-floating-photos {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.story-floating-photos img {
    --story-rotate: 0deg;
    position: absolute;
    width: auto;
    height: auto;
    max-width: clamp(165px, 20vw, 300px);
    max-height: clamp(190px, 34vh, 340px);
    border: clamp(5px, .6vw, 9px) solid rgba(221, 218, 200, .8);
    border-radius: 4px;
    opacity: .58;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .26);
    animation: story-photo-float 9s ease-in-out infinite alternate;
    will-change: transform;
}

.story-floating-photos img:nth-child(1) {
    --story-rotate: -7deg;
    top: 4%;
    left: 2%;
    animation-duration: 8.5s;
}

.story-floating-photos img:nth-child(2) {
    --story-rotate: 6deg;
    top: 5%;
    right: 2%;
    animation-duration: 10.5s;
    animation-delay: -3s;
}

.story-floating-photos img:nth-child(3) {
    --story-rotate: 5deg;
    top: 38%;
    left: 3%;
    animation-duration: 11.5s;
    animation-delay: -6s;
}

.story-floating-photos img:nth-child(4) {
    --story-rotate: -5deg;
    top: 39%;
    right: 3%;
    animation-duration: 9.5s;
    animation-delay: -4s;
}

.story-floating-photos img:nth-child(5) {
    --story-rotate: 7deg;
    bottom: 4%;
    left: 2%;
    animation-duration: 12s;
    animation-delay: -7s;
}

.story-floating-photos img:nth-child(6) {
    --story-rotate: -6deg;
    right: 2%;
    bottom: 4%;
    animation-duration: 10s;
    animation-delay: -2s;
}

@keyframes story-photo-float {
    0% {
        transform: translate3d(-7px, 5px, 0) rotate(var(--story-rotate));
    }

    50% {
        transform: translate3d(6px, -10px, 0) rotate(calc(var(--story-rotate) + 1deg));
    }

    100% {
        transform: translate3d(11px, 7px, 0) rotate(calc(var(--story-rotate) - 1deg));
    }
}

.story-page-content {
    position: relative;
    z-index: 3;
    width: min(100%, 980px);
    padding-top: clamp(72px, 11vh, 126px);
    padding-bottom: clamp(72px, 11vh, 126px);
}

.story-eyebrow {
    margin-bottom: 18px;
    color: var(--neutral-accent);
}

.story-title {
    margin: 0 0 clamp(28px, 5vh, 48px);
    color: var(--secondary-background);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: .9;
}

.story-copy {
    width: min(100%, 76ch);
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, .72vw + .82rem, 1.28rem);
    line-height: 1.82;
    text-wrap: pretty;
}

.faq-page {
    min-height: calc(100svh - 66px);
    display: flex;
    align-items: center;
    scroll-margin-top: 66px;
    background: #f7f5ee;
}

.faq-page-content {
    padding-top: clamp(64px, 9vh, 104px);
    padding-bottom: clamp(64px, 9vh, 104px);
}

.faq-list {
    width: min(100%, 940px);
    margin: 0 auto;
    border-top: 1px solid rgba(108, 105, 84, .28);
}

.faq-list details {
    border-bottom: 1px solid rgba(108, 105, 84, .28);
}

.faq-list summary {
    position: relative;
    padding: 22px 50px 22px 0;
    color: var(--dark-details);
    cursor: pointer;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    color: var(--accent-olive);
    font-family: "Poppins", sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details > p {
    width: min(100%, 72ch);
    margin: -4px 0 14px;
    color: var(--muted-taupe);
    line-height: 1.7;
}

.faq-list details > a {
    display: inline-block;
    margin: 0 0 20px;
    color: var(--primary-background);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.faq-list details > p .faq-inline-link {
    color: var(--primary-background);
    font-weight: 700;
    text-decoration: none;
}

.faq-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 20px;
}

.faq-contact-links a {
    color: var(--primary-background);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.gift-information {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 34px;
    padding: clamp(24px, 4vw, 38px);
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(108, 105, 84, .2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.gift-information h2 {
    margin: 0 0 8px;
    color: var(--primary-background);
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.gift-information p:last-child {
    color: var(--dark-details);
    line-height: 1.7;
}

.gift-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--accent-olive);
    border-radius: 50%;
    font-size: 1.25rem;
}

.section-pad {
    padding-top: 72px;
    padding-bottom: 72px;
}

.detail-panel,
.rsvp-panel,
.thank-you-panel,
.auth-panel,
.admin-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(108, 105, 84, .14);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 30px;
}

.detail-panel,
.admin-card {
    overflow: hidden;
}

.detail-panel::after,
.music-panel::after,
.admin-card::after {
    content: "\f4d8";
    position: absolute;
    right: 18px;
    bottom: 12px;
    color: rgba(108, 105, 84, .09);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 3.6rem;
    pointer-events: none;
}

.detail-panel h2,
.admin-card h2 {
    font-size: 1.45rem;
}

.detail-icon,
.thank-icon,
.invitation-person i {
    color: var(--olive);
}

.detail-icon,
.thank-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.countdown-grid div {
    background: rgba(190, 186, 169, .52);
    border: 1px solid rgba(108, 105, 84, .16);
    padding: 16px 10px;
    text-align: center;
    border-radius: 12px;
}

.countdown-grid strong {
    display: block;
    color: var(--charcoal);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.countdown-grid span {
    color: var(--walnut);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.music-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px 24px;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(108, 105, 84, .14);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 26px;
    overflow: hidden;
}

.music-copy h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.music-copy p:last-child {
    color: var(--walnut);
    margin-bottom: 0;
}

.spotify-frame-wrap {
    grid-column: 1 / -1;
    min-height: 152px;
}

.spotify-frame-wrap iframe {
    display: block;
}

.page-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(221, 218, 200, .88)),
        var(--ivory);
    border-bottom: 1px solid rgba(108, 105, 84, .14);
    padding: 64px 0;
    overflow: hidden;
}

.page-hero::after {
    content: "\f06c";
    position: absolute;
    right: max(24px, 8vw);
    top: 28px;
    color: rgba(108, 105, 84, .12);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 7rem;
    transform: rotate(-18deg);
}

.page-hero h1,
.thank-you-panel h1,
.auth-panel h1,
.admin-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.lookup-form .input-group {
    box-shadow: var(--shadow-soft);
}

.lookup-form .form-control {
    border-color: rgba(108, 105, 84, .18);
}

.invitation-list,
.invitation-checklist {
    display: grid;
    gap: 10px;
}

.invitation-person,
.invitation-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid rgba(108, 105, 84, .16);
    background: rgba(190, 186, 169, .38);
    border-radius: 12px;
    padding: 11px 13px;
}

.invitation-check {
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.invitation-check:hover {
    border-color: rgba(108, 105, 84, .34);
    background: rgba(190, 186, 169, .55);
    transform: translateY(-1px);
}

.invitation-check-with-dietary {
    align-items: stretch;
    cursor: default;
    flex-direction: column;
}

.invitation-check-main {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.attendance-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.attendance-choice .btn {
    border-width: 1px;
    font-weight: 600;
    padding: 10px 12px;
}

.attendance-attending {
    border-color: var(--olive);
    color: var(--olive);
}

.attendance-not-attending {
    border-color: var(--dusty-blue);
    color: var(--charcoal);
}

.btn-check:checked + .attendance-attending {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
}

.btn-check:checked + .attendance-not-attending {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: #fff;
}

.dietary-field,
.companion-name-field {
    margin-left: 28px;
}

.dietary-field .form-label,
.companion-name-field .form-label {
    font-size: .86rem;
    margin-bottom: 4px;
}

.companion-name-field {
    padding-bottom: 2px;
}

.invitation-check input[type="checkbox"] {
    flex: 0 0 auto;
}

.form-check-input:checked {
    background-color: var(--olive);
    border-color: var(--olive);
}

.invitation-person span,
.invitation-check span {
    color: var(--charcoal);
    font-weight: 600;
}

.invitation-person small,
.invitation-check small {
    color: var(--dusty-blue);
    margin-left: auto;
}

.thank-you-panel,
.auth-panel {
    max-width: 700px;
}

.thank-you-panel {
    border: 1px solid var(--olive);
}

.thank-icon {
    color: var(--olive);
}

.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, .86);
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 66px);
}

.admin-sidebar {
    background: var(--charcoal);
    border-right: 1px solid rgba(221, 218, 200, .28);
    padding: 28px 18px;
}

.admin-sidebar h2 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.admin-nav {
    display: block;
}

.admin-sidebar a {
    display: block;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--olive);
    color: #fff;
}

.admin-content {
    min-width: 0;
    padding: 34px;
}

.admin-content > .d-flex:first-child {
    min-width: 0;
}

.table-responsive.admin-card {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

.admin-responsive-table {
    margin-bottom: 0;
}

.admin-row-actions {
    white-space: nowrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    background: #fff;
    border: 1px solid rgba(108, 105, 84, .14);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.metric-card span {
    display: block;
    color: var(--walnut);
    font-size: .86rem;
    font-weight: 600;
}

.metric-card strong {
    display: block;
    color: var(--charcoal);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.3rem;
    line-height: 1;
    margin-top: 8px;
}

.seating-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}

.seating-floor-card {
    padding: 0;
}

.seating-floor-card::after,
.seating-sidebar-card::after {
    display: none;
}

.seating-floor-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(108, 105, 84, .16);
}

.seating-floor-toolbar strong,
.seating-floor-toolbar small {
    display: block;
}

.seating-floor-toolbar small {
    color: var(--walnut);
    margin-top: 3px;
}

.seating-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px 0 10px;
    border-radius: 50%;
}

.seating-status-dot:first-child {
    margin-left: 0;
}

.seating-status-dot.confirmed {
    background: var(--olive);
}

.seating-status-dot.pending {
    background: var(--neutral-accent);
}

.seating-save-status {
    min-height: 20px;
    color: var(--olive);
    font-size: .82rem;
    font-weight: 700;
}

.seating-floor {
    position: relative;
    min-height: 650px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #fbfaf5;
    background-image:
        linear-gradient(rgba(108, 105, 84, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 105, 84, .08) 1px, transparent 1px),
        linear-gradient(rgba(108, 105, 84, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 105, 84, .035) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
    border-bottom: 1px solid rgba(108, 105, 84, .16);
    touch-action: none;
}

.seating-stage-label {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    min-width: 210px;
    padding: 10px 20px;
    color: #fff;
    background: var(--charcoal);
    border-radius: 4px 4px 18px 18px;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.seating-stage-label i {
    margin-right: 7px;
}

.seating-dance-floor {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 34%;
    height: 27%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    color: rgba(71, 71, 53, .42);
    border: 2px dashed rgba(108, 105, 84, .22);
    border-radius: 50%;
    background: rgba(221, 218, 200, .25);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    pointer-events: none;
}

.seating-table {
    position: absolute;
    z-index: 3;
    width: 360px;
    height: 110px;
    transform: translate(-50%, -50%) rotate(var(--table-rotation, 0deg));
    padding: 0;
    color: var(--charcoal);
    background: transparent;
    border: 0;
    overflow: visible;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.seating-table:active,
.seating-table.is-dragging {
    z-index: 12;
    cursor: grabbing;
}

.seating-table:focus-visible .seating-table-surface {
    outline: 3px solid rgba(108, 105, 84, .34);
    outline-offset: 4px;
}

.seating-table-surface {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 1px;
    padding: 14px;
    color: var(--charcoal);
    background: var(--table-color, #e8e5d7);
    border: 2px solid var(--olive);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(71, 71, 53, .16);
    text-align: center;
}

.seating-table-surface strong {
    display: block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
    line-height: 1.05;
    white-space: nowrap;
}

.seating-table-surface small {
    color: var(--walnut);
    font-size: .72rem;
}

.seating-table-oval {
    min-width: 150px;
    min-height: 90px;
}

.seating-table-rectangle {
    min-width: 220px;
    min-height: 70px;
}

.seating-table-oval .seating-table-surface {
    border-radius: 48%;
}

.seating-table-rectangle .seating-table-surface {
    border-radius: 14px;
}

.seating-seat {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 88px;
    height: 56px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    color: var(--walnut);
    cursor: pointer;
    pointer-events: auto;
    transition: filter .16s ease, opacity .16s ease;
}

.seating-seat[draggable="true"] {
    cursor: grab;
}

.seating-seat.is-drop-target {
    filter: drop-shadow(0 0 7px rgba(71, 71, 53, .7));
}

.seating-seat.is-drop-target .seating-chair-avatar {
    outline: 3px solid var(--olive);
    outline-offset: 3px;
    opacity: 1;
    filter: none;
}

.seating-seat.is-being-dragged,
.seating-person-row.is-being-dragged {
    opacity: .42;
}

.seating-chair-avatar {
    position: relative;
    width: 34px;
    height: 34px;
    display: block;
    overflow: hidden;
    background: #d9d5c4;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(71, 71, 53, .2);
}

.seating-chair-head {
    position: absolute;
    left: 50%;
    top: 5px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%);
    background: #efc39f;
    border-radius: 50%;
    box-shadow: 0 -3px 0 1px #474735;
}

.seating-chair-body {
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 22px;
    height: 12px;
    transform: translateX(-50%);
    background: var(--neutral-accent);
    border-radius: 11px 11px 5px 5px;
}

.seating-seat.is-confirmed .seating-chair-avatar {
    background: #7f8b75;
}

.seating-seat.is-confirmed .seating-chair-body {
    background: var(--charcoal);
}

.seating-seat.is-pending .seating-chair-avatar {
    background: #c8bca4;
}

.seating-seat:not(.is-assigned) .seating-chair-avatar {
    opacity: .42;
    filter: grayscale(1);
}

.seating-chair-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--charcoal);
    font-size: .61rem;
    font-weight: 700;
    line-height: 1.08;
    text-align: left;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.seating-seat:not(.is-assigned) .seating-chair-name {
    color: rgba(71, 71, 53, .58);
    font-weight: 600;
}

.seating-rotate-handle,
.seating-resize-handle {
    position: absolute;
    z-index: 8;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--charcoal);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(71, 71, 53, .25);
    font-size: .66rem;
    pointer-events: auto;
}

.seating-rotate-handle {
    left: -15px;
    top: auto;
    bottom: -15px;
    transform: none;
    cursor: grab;
}

.seating-rotate-handle::after {
    display: none;
}

.seating-resize-handle {
    right: -15px;
    bottom: -15px;
    cursor: nwse-resize;
}

.seating-table.is-dragging .seating-rotate-handle,
.seating-table.is-dragging .seating-resize-handle {
    opacity: .65;
}

.seating-empty-state {
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 4;
    transform: translate(-50%, -50%);
    width: min(320px, 72%);
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 28px;
    color: var(--charcoal);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(108, 105, 84, .2);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.seating-empty-state i {
    color: var(--olive);
    font-size: 1.8rem;
}

.seating-empty-state span {
    color: var(--walnut);
    font-size: .86rem;
}

.seating-floor-help {
    padding: 13px 20px;
    color: var(--walnut);
    background: rgba(221, 218, 200, .42);
    font-size: .82rem;
}

.seating-floor-help i {
    margin-right: 6px;
}

.seating-sidebar-card {
    padding: 22px;
}

.seating-unassigned-list {
    max-height: 680px;
    overflow: auto;
    padding-right: 4px;
    border-radius: 10px;
    transition: background .16s ease, box-shadow .16s ease;
}

.seating-unassigned-list.is-drop-target {
    background: rgba(190, 186, 169, .28);
    box-shadow: inset 0 0 0 2px var(--olive);
}

.seating-person-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(108, 105, 84, .12);
    cursor: grab;
    user-select: none;
}

.seating-person-row:hover {
    background: rgba(221, 218, 200, .26);
}

.seating-person-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--olive);
    border-radius: 50%;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.seating-person-row strong,
.seating-person-row small {
    display: block;
}

.seating-person-row strong {
    overflow: hidden;
    color: var(--charcoal);
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seating-person-row small {
    color: var(--walnut);
    font-size: .72rem;
}

.seating-complete {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 34px 12px;
    color: var(--olive);
    text-align: center;
}

.seating-complete i {
    font-size: 2rem;
}

.seating-seat-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.seating-seat-field {
    padding: 12px;
    background: rgba(221, 218, 200, .32);
    border: 1px solid rgba(108, 105, 84, .12);
    border-radius: 10px;
}

.seating-seat-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--charcoal);
    font-size: .78rem;
    font-weight: 700;
}

.table {
    color: var(--walnut);
    margin-bottom: 0;
}

.table thead th {
    color: var(--charcoal);
    background: rgba(221, 218, 200, .82);
    border-bottom-color: rgba(108, 105, 84, .18);
}

.table td,
.table th {
    border-color: rgba(108, 105, 84, .13);
}

.list-group-item {
    border-color: rgba(108, 105, 84, .14);
}

.list-group-item-action:hover {
    background: rgba(190, 186, 169, .42);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .wedding-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-floating-photos img {
        max-width: clamp(130px, 21vw, 185px);
        max-height: 28vh;
        opacity: .5;
    }

    .story-floating-photos img:nth-child(odd) {
        left: -4%;
    }

    .story-floating-photos img:nth-child(even) {
        right: -4%;
    }

    .admin-shell {
        grid-template-columns: 1fr;
        max-width: 100vw;
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(221, 218, 200, .28);
        max-width: 100vw;
        min-width: 0;
        overflow: hidden;
        padding: 14px 18px 12px;
        position: relative;
        top: auto;
        width: 100%;
        z-index: 1015;
    }

    .admin-sidebar h2 {
        font-size: 1rem;
        letter-spacing: .08em;
        margin: 0 0 10px;
        text-transform: uppercase;
    }

    .admin-nav {
        display: flex;
        gap: 8px;
        margin-inline: -18px;
        max-width: calc(100vw + 18px);
        min-width: 0;
        overflow-x: auto;
        padding: 0 18px 2px;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-sidebar .admin-nav a {
        align-items: center;
        display: inline-flex;
        flex: 0 0 auto;
        min-height: 42px;
        padding: 9px 14px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-content {
        max-width: 100vw;
        min-width: 0;
        width: 100%;
    }

    .seating-workspace {
        grid-template-columns: 1fr;
    }

    .seating-sidebar-card {
        order: 2;
    }

    .seating-unassigned-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
        max-height: 380px;
    }

    .music-panel {
        grid-template-columns: 1fr;
    }

}

@media (min-width: 768px) and (max-width: 1199px) {
    .seating-table {
        transform: translate(-50%, -50%) rotate(var(--table-rotation, 0deg)) scale(.78);
    }
}

@media (max-width: 820px) {
    .navbar > .container {
        flex-wrap: wrap;
    }

    .navbar-brand {
        font-size: clamp(1.05rem, 5.2vw, 1.28rem);
        letter-spacing: .04em;
        max-width: calc(100% - 66px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-toggler {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 44px;
        min-width: 48px;
    }

    .navbar-collapse {
        border-top: 1px solid rgba(108, 105, 84, .14);
        margin-top: 10px;
        padding: 8px 0 10px;
        width: 100%;
    }

    .navbar-nav .nav-link {
        align-items: center;
        display: flex;
        min-height: 46px;
        padding-inline: 6px;
    }

    .admin-content {
        padding: 22px 18px 30px;
    }

    .admin-content > .d-flex.justify-content-between {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .admin-content > .d-flex.justify-content-between > form,
    .admin-content > .d-flex.justify-content-between > .btn,
    .admin-content > .d-flex.justify-content-between > button {
        width: 100%;
    }

    .admin-content > .d-flex.justify-content-between > form .btn {
        width: 100%;
    }

    .admin-responsive-table,
    .admin-responsive-table tbody,
    .admin-responsive-table tr,
    .admin-responsive-table td {
        display: block;
        width: 100%;
    }

    .admin-responsive-table thead {
        display: none;
    }

    .admin-responsive-table tbody {
        display: grid;
        gap: 14px;
    }

    .admin-responsive-table tbody tr {
        background: #fff;
        border: 1px solid rgba(108, 105, 84, .18);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(71, 71, 53, .06);
        overflow: hidden;
        padding: 8px 14px;
    }

    .admin-responsive-table tbody td {
        align-items: start;
        border-bottom: 1px solid rgba(108, 105, 84, .12);
        display: grid;
        gap: 14px;
        grid-template-columns: minmax(86px, 32%) minmax(0, 1fr);
        padding: 11px 0;
        text-align: left !important;
        white-space: normal;
        word-break: break-word;
    }

    .admin-responsive-table tbody td:last-child {
        border-bottom: 0;
    }

    .admin-responsive-table tbody td::before {
        color: var(--muted-taupe);
        content: attr(data-label);
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .08em;
        line-height: 1.5;
        text-transform: uppercase;
    }

    .admin-responsive-table .admin-row-actions {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 13px;
    }

    .admin-responsive-table .admin-row-actions::before {
        flex: 0 0 100%;
    }

    .admin-responsive-table .admin-row-actions .btn {
        align-items: center;
        display: inline-flex;
        flex: 1 1 92px;
        justify-content: center;
        min-height: 42px;
    }

    .table-responsive.admin-card {
        overflow: visible;
    }

    .modal-dialog {
        margin: .5rem;
    }

    .modal-content {
        max-height: calc(100dvh - 1rem);
    }

    .modal-body {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }

    .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .modal-footer > *,
    .modal-footer > .d-flex,
    .modal-footer .btn {
        width: 100%;
    }

    .modal-footer > .d-flex {
        flex-direction: column-reverse;
    }

    .form-control,
    .form-select,
    .input-group-text {
        font-size: 16px;
        min-height: 46px;
    }

    textarea.form-control {
        min-height: 104px;
    }

    .btn:not(.btn-sm),
    .form-check-input,
    summary {
        touch-action: manipulation;
    }

    .btn:not(.btn-sm) {
        min-height: 44px;
    }

    canvas {
        height: auto !important;
        min-height: 220px;
    }

    .seating-floor {
        min-height: 560px;
        aspect-ratio: auto;
    }

    .seating-table {
        transform: translate(-50%, -50%) rotate(var(--table-rotation, 0deg)) scale(.78);
    }

    .seating-floor-toolbar {
        align-items: flex-start;
        padding: 15px;
    }

    .seating-floor-help {
        padding: 12px 15px;
    }

    .seating-seat-editor,
    .seating-unassigned-list {
        grid-template-columns: 1fr;
    }

    .seating-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dress-code-layout {
        grid-template-columns: 1fr;
    }

    .attire-card {
        min-height: 220px;
    }

    .attire-card + .attire-card {
        border-top: 1px solid rgba(108, 105, 84, .25);
        border-left: 0;
    }

    .story-floating-photos img {
        max-width: clamp(112px, 25vw, 150px);
        max-height: 24vh;
        opacity: .44;
    }

    .story-floating-photos img:nth-child(odd) {
        left: -9%;
    }

    .story-floating-photos img:nth-child(even) {
        right: -9%;
    }

    .details-page {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .details-heading .eyebrow {
        margin-bottom: 8px;
    }

    .details-date {
        margin-top: 10px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .details-event {
        min-height: 210px;
        padding: 22px 20px;
    }

    .details-event + .details-event {
        border-top: 1px solid rgba(108, 105, 84, .26);
        border-left: 0;
    }

    .details-venue {
        min-height: 0;
    }

    .details-number {
        margin-bottom: 10px;
    }

    .details-event h3 {
        margin-bottom: 14px;
    }

    .details-map {
        margin-top: 14px;
    }

    .details-rsvp {
        margin-top: 18px;
    }
}

@media (max-width: 575px) {
    .timeline-page,
    .dress-code-page,
    .faq-page {
        min-height: 0;
        align-items: flex-start;
    }

    .timeline-page-content,
    .dress-code-content,
    .faq-page-content {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .section-heading > p:last-child {
        margin-top: 16px;
        font-size: .94rem;
    }

    .wedding-timeline {
        position: relative;
        grid-template-columns: 1fr;
        border-top: 0;
        border-left: 1px solid rgba(221, 218, 200, .28);
        margin-left: 8px;
    }

    .timeline-event {
        min-height: 0;
        padding: 20px 18px 24px 28px;
        border-right: 0;
    }

    .timeline-event time {
        margin-bottom: 8px;
    }

    .timeline-marker {
        top: 25px;
        left: -5px;
    }

    .timeline-event h3 {
        font-size: 1.8rem;
    }

    .attire-card {
        min-height: 0;
        padding: 34px 24px;
    }

    .dress-palette {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .faq-list summary {
        padding-top: 18px;
        padding-bottom: 18px;
        font-size: 1.25rem;
    }

    .gift-information {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero {
        min-height: max(700px, calc(100svh - 66px));
        background-attachment: scroll;
        background-position: 62% center;
    }

    .hero-content {
        padding-top: 44px;
        padding-bottom: 76px;
    }

    .hero h1.couple-name {
        font-size: clamp(1.9rem, 9.5vw, 3.2rem);
        margin-bottom: 18px;
    }

    .invitation-page-content {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .invitation-message {
        margin-bottom: 34px;
        font-size: clamp(.96rem, 4vw, 1.05rem);
        line-height: 1.65;
    }

    .invitation-date {
        font-size: clamp(2.35rem, 13vw, 3.35rem);
    }

    .details-page {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .details-heading h2 {
        font-size: clamp(2.35rem, 12vw, 3rem);
    }

    .details-date {
        line-height: 1.4;
    }

    .details-grid {
        margin-top: 18px;
    }

    .details-event {
        min-height: 200px;
        padding: 18px 18px;
    }

    .details-event h3 {
        margin-bottom: 12px;
        font-size: clamp(2.1rem, 10vw, 2.8rem);
    }

    .details-rsvp .btn {
        width: 100%;
    }

    .story-page-content {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .story-title {
        margin-bottom: 28px;
        font-size: clamp(3rem, 17vw, 4.5rem);
    }

    .story-copy {
        font-size: clamp(.95rem, 3.9vw, 1.04rem);
        line-height: 1.7;
    }

    .story-page::after {
        background: rgba(71, 71, 53, .74);
    }

    .story-floating-photos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        align-items: center;
        padding: 20px 0;
    }

    .story-floating-photos img {
        position: relative;
        width: auto;
        max-width: min(31vw, 118px);
        max-height: min(22svh, 150px);
        border-width: 4px;
        opacity: .38;
    }

    .story-floating-photos img:nth-child(n) {
        inset: auto;
    }

    .story-floating-photos img:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin-left: -24px;
    }

    .story-floating-photos img:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-right: -24px;
    }

    .story-floating-photos img:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin-left: -28px;
    }

    .story-floating-photos img:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin-right: -28px;
    }

    .story-floating-photos img:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        margin-left: -24px;
    }

    .story-floating-photos img:nth-child(6) {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        margin-right: -24px;
    }

    .wedding-meta,
    .hero-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .wedding-meta span {
        padding: 8px 11px;
        font-size: clamp(.78rem, 3.4vw, .9rem);
    }

    .countdown-grid,
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .invitation-countdown {
        margin-top: 24px;
    }

    .invitation-countdown .countdown-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .invitation-countdown .countdown-grid div {
        padding: 10px 3px;
        border-radius: 9px;
    }

    .invitation-countdown .countdown-grid strong {
        font-size: clamp(1.1rem, 7vw, 1.5rem);
    }

    .invitation-countdown .countdown-grid span {
        font-size: .58rem;
        letter-spacing: .05em;
    }

    .admin-content,
    .detail-panel,
    .rsvp-panel,
    .thank-you-panel,
    .auth-panel,
    .admin-card {
        padding: 20px;
    }

    .admin-content {
        padding: 18px 12px 28px;
    }

    .admin-sidebar {
        padding-inline: 12px;
    }

    .admin-nav {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .admin-content h1 {
        font-size: clamp(2.3rem, 12vw, 3rem);
    }

    .admin-content > .d-flex:first-child .d-flex.flex-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .admin-content > .d-flex:first-child .d-flex.flex-wrap .btn:first-child {
        grid-column: 1 / -1;
    }

    .admin-card {
        border-radius: 12px;
    }

    .metric-grid {
        gap: 10px;
    }

    .metric-card {
        min-width: 0;
        padding: 15px 13px;
    }

    .metric-card span {
        font-size: .78rem;
        line-height: 1.35;
    }

    .metric-card strong {
        font-size: 2rem;
    }

    .dietary-field,
    .companion-name-field {
        margin-left: 0;
    }

    .rsvp-panel .btn[type="submit"],
    .thank-you-panel .btn,
    .auth-panel .btn,
    .detail-panel > .btn {
        width: 100%;
    }

    .unlock-card {
        padding: 28px;
    }

    .lookup-form .input-group {
        display: grid;
        gap: 10px;
    }

    .lookup-form .input-group > .form-control,
    .lookup-form .input-group > .btn {
        width: 100%;
        border-radius: 12px !important;
    }
}

@media (max-width: 420px) {
    .attendance-choice {
        grid-template-columns: 1fr;
    }

    .countdown-grid,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-responsive-table tbody td {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .seating-table {
        transform: translate(-50%, -50%) rotate(var(--table-rotation, 0deg)) scale(.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-floating-photos img {
        animation: none;
        transform: rotate(var(--story-rotate));
    }
}

@media print {
    nav,
    .admin-sidebar,
    .site-footer,
    .btn {
        display: none !important;
    }

    .admin-shell {
        display: block;
    }

    .seating-metrics,
    .seating-sidebar-card,
    .seating-floor-help,
    .seating-rotate-handle,
    .seating-resize-handle {
        display: none !important;
    }

    .seating-workspace {
        display: block;
    }

    .seating-floor {
        min-height: 720px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
