/*
 * Public profile advert rails
 *
 * Historical LEN's left/right advert uploader produced 226 x 452 pixel artwork.
 * These rails reserve that desktop space while campaigns are still evidence-only;
 * no old advert is silently reactivated and no blank placeholder is shown to a
 * visitor. The profile returns to one column before the rails would squeeze it.
 */
.public-current-profile .public-profile-ad-shell {
    display: grid;
    grid-template-columns: 226px minmax(0, 1200px) 226px;
    gap: 24px;
    justify-content: center;
    align-items: start;
}

.public-current-profile .public-profile-ad-rail {
    min-height: 452px;
}

.public-current-profile .public-profile-main {
    min-width: 0;
}

.public-current-profile .public-member-event-qr {
    width: 112px;
    height: 112px;
    padding: 5px;
    background: #fff;
    border: 1px solid #007bff;
    border-radius: 4px;
}

.public-current-profile .public-member-event-qr-link {
    display: inline-flex;
    flex: 0 0 auto;
}

/* The QR sits beside a short vertical action stack, preserving the compact legacy card. */
.public-current-profile .public-profile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.public-current-profile .public-profile-action-stack {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.public-current-profile .public-profile-action-stack .btn {
    display: block;
    width: 100%;
}

/* 1200 + (2 × 226) + gaps needs roughly 1,700px of usable page width. */
@media (max-width: 1720px) {
    .public-current-profile .public-profile-ad-shell {
        grid-template-columns: minmax(0, 1200px);
    }

    .public-current-profile .public-profile-ad-rail {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .public-current-profile .public-profile-actions {
        text-align: left !important;
    }

    .public-current-profile .public-profile-actions .btn {
        margin-top: 4px;
    }
}
