/* =========================================================
   LAYOUT L2 — Paper Invitation / QA CLEAN
========================================================= */

body[data-template].layout-l2 .l2-paper-invite {
    width: min(calc(100% - 34px), 390px);
    margin: 0 auto;
    padding: 30px 28px 42px;
    background: transparent !important;
    text-align: center;
}

body[data-template].layout-l2 .l2-paper-content {
    max-width: 310px;
    margin: 0 auto;
}

body[data-template].layout-l2 .l2-kicker {
    margin: 0 auto 12px;
    color: var(--template-text, #2d2723);
    font-family: "Lato", system-ui, sans-serif;
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

body[data-template].layout-l2 .l2-kicker::after {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    margin: 8px auto 0;
    background: color-mix(in srgb, var(--template-text, #2d2723) 48%, transparent);
}

body[data-template].layout-l2 .l2-names {
    margin: 0 auto;
    color: var(--template-primary, #c85f8a);
    font-family: var(--font-title);
    font-size: clamp(2.65rem, 11vw, 3.65rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

body[data-template].layout-l2 .l2-subtitle {
    margin: 10px 0 18px;
    color: var(--template-text, #5b524c);
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.45;
}

body[data-template].layout-l2 .l2-profile-image {
    width: min(58%, 190px);
    margin: 14px auto 18px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 24px;
}

body[data-template].layout-l2 .l2-profile-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body[data-template].layout-l2 .l2-message {
    width: 90%;
    margin: 18px auto 20px;
    color: var(--template-text, #2d2723);
    font-size: 0.94rem;
    line-height: 1.52;
    font-weight: 500;
}

body[data-template].layout-l2 .l2-date-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 250px;
    margin: 24px auto 20px;
    color: var(--template-text, #2d2723);
}

body[data-template].layout-l2 .l2-date-row::before,
body[data-template].layout-l2 .l2-date-row::after {
    content: "";
    width: 100%;
    height: 2px;
    margin: 0 auto;
    background: var(--template-text, #2d2723);
}

body[data-template].layout-l2 .l2-date-row strong {
    font-family: var(--font-title);
    font-size: 1.28rem;
    font-weight: 500;
}

body[data-template].layout-l2 .l2-date-row span {
    font-size: 1rem;
    font-weight: 700;
}

body[data-template].layout-l2 .l2-locations {
    display: grid;
    gap: 13px;
    max-width: 250px;
    margin: 18px auto 0;
}

body[data-template].layout-l2 .l2-location-item small {
    display: block;
    margin-bottom: 4px;
    color: var(--template-primary, #c85f8a);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

body[data-template].layout-l2 .l2-location-item strong {
    display: block;
    color: var(--template-text, #2d2723);
    font-family: var(--font-title);
    font-size: 1.04rem;
    font-weight: 500;
    line-height: 1.22;
}

body[data-template].layout-l2 .l2-location-item span {
    display: block;
    margin-top: 2px;
    color: var(--template-text, #2d2723);
    opacity: 0.76;
    font-size: 0.86rem;
    line-height: 1.36;
}

body[data-template].layout-l2 .l2-short {
    max-width: 250px;
    margin: 28px auto 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid color-mix(in srgb, var(--template-primary, #c85f8a) 22%, transparent);
    color: var(--template-text, #2d2723);
    font-size: 0.98rem;
    line-height: 1.42;
    font-weight: 800;
}

body[data-template].layout-l2 .l2-family {
    max-width: 250px;
    margin: 24px auto 0;
}

body[data-template].layout-l2 .l2-family-item {
    margin-bottom: 13px;
}

body[data-template].layout-l2 .l2-family-item small {
    display: block;
    margin-bottom: 5px;
    color: var(--template-primary, #c85f8a);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.15;
    text-transform: uppercase;
}

body[data-template].layout-l2 .l2-family-item strong {
    display: block;
    color: var(--template-text, #2d2723);
    font-family: var(--font-title);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.22;
}

body[data-template].layout-l2 .l2-family p {
    margin: 12px auto 0;
    color: var(--template-text, #2d2723);
    font-size: 0.88rem;
    line-height: 1.45;
}

body[data-template].layout-l2 .l2-guest-box {
    display: block;
    width: min(90%, 260px);
    margin: 34px auto 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(200, 95, 138, 0.28);
    text-align: center;
}

body[data-template].layout-l2 .l2-guest-box span {
    display: block;
    margin-bottom: 8px;
    color: var(--template-primary, #c85f8a);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.20em;
    line-height: 1.15;
    text-transform: uppercase;
}

body[data-template].layout-l2 .l2-guest-box strong {
    display: block;
    color: var(--template-text, #2d2723);
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.18;
}

body[data-template].layout-l2 .l2-action {
    max-width: 270px;
    margin: 22px auto 28px;
    text-align: center;
}

body[data-template].layout-l2 .l2-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 14px;
}

body[data-template].layout-l2 .l2-countdown > div {
    padding: 0 6px;
    border-right: 1px solid color-mix(in srgb, var(--template-text, #2d2723) 42%, transparent);
}

body[data-template].layout-l2 .l2-countdown > div:last-child {
    border-right: 0;
}

body[data-template].layout-l2 .l2-countdown strong {
    display: block;
    color: var(--template-text, #2d2723);
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
}

body[data-template].layout-l2 .l2-countdown span {
    display: block;
    margin-top: 5px;
    color: var(--template-text, #2d2723);
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body[data-template].layout-l2 .l2-rsvp-button {
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--template-text, #2d2723);
    border-radius: 8px;
    background: transparent;
    color: var(--template-text, #2d2723);
    box-shadow: 0 0 18px rgba(45, 39, 35, 0.24), 0 10px 24px rgba(45, 39, 35, 0.12);
    font-family: var(--font-title);
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body[data-template].layout-l2 .l2-rsvp-note {
    margin: 10px 0 0;
    color: var(--template-text, #2d2723);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    body[data-template].layout-l2 .l2-paper-invite {
        width: 100%;
        padding: 18px 18px 20px;
    }

    body[data-template].layout-l2 .l2-paper-content {
        max-width: 272px;
    }

    body[data-template].layout-l2 .l2-names {
        font-size: clamp(2.45rem, 11vw, 3.25rem);
        line-height: 1.08;
    }

    body[data-template].layout-l2 .l2-profile-image {
        width: min(58%, 168px);
    }

    body[data-template].layout-l2 .bottom-nav.experience-menu {
        min-height: 72px;
    }
}