/* Black Friday / champagne & silver. Pricing page and upgrade modals.
   Remove its stylesheet link to disable the entire seasonal background.
   The hero, cards, typography and purchase controls keep their normal styles. */

.public-legacy-shell:has(.pd4-page),
.pd4-modal {
    --pd4-bf-surface:
        radial-gradient(ellipse 48rem 65rem at 0 12%, #eac47799, transparent 78%),
        radial-gradient(ellipse 42rem 70rem at 100% 39%, #eac47780, transparent 78%),
        radial-gradient(ellipse 42rem 65rem at 0 70%, #eac47780, transparent 78%),
        radial-gradient(ellipse 45rem 50rem at 100% 95%, #eac47766, transparent 78%),
        linear-gradient(100deg, #f4ecdf, #f0f2f7 45%, #f6efe3);
    --pd4-bf-ribbons: repeating-linear-gradient(
        118deg,
        transparent 0 330px,
        #bd8a3838 330px 331px,
        #e7bc6733 331px 420px,
        #ffffffb3 420px 422px,
        transparent 422px 790px
    );
}

.public-v2-page .public-legacy-shell:has(.pd4-page) {
    background: var(--pd4-bf-surface);
}

/* Broad translucent foil ribbons. Paired gold/white edges catch the light
   in the gutters and between sections, without overlaying their content. */
.public-legacy-shell .pd4-page {
    background: var(--pd4-bf-ribbons);
}

/* Quiet vertical sale tape in the gutters, behind the content wrappers. */
.public-legacy-shell .pd4-page::before,
.public-legacy-shell .pd4-page::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    background-image: url("../img/pricing-black-friday-edge.svg");
    background-repeat: repeat-y;
}

.public-legacy-shell .pd4-page::before { left: max(0px, calc((100% - 1360px) / 4)); }
.public-legacy-shell .pd4-page::after { right: max(0px, calc((100% - 1360px) / 4)); background-position: 0 320px; }

/* One tilted campaign imprint per section, in the space beside its heading.
   SVG backgrounds are decorative, never added to the accessibility tree. */
.pd4-page > .pd4-section {
    background-image: url("../img/pricing-black-friday-stamp.svg");
    background-repeat: no-repeat;
    background-size: 330px 110px;
    background-position: right max(72px, calc((100vw - 1260px) / 2)) top 32px;
}

@media (min-width: 1200px) {
    .pd4-page > .pd4-section > .pd4-wrap > :is(.mb-10, .mb-8):first-child {
        padding-right: 350px;
    }
}

@media (max-width: 1199.98px) {
    .pd4-page > .pd4-section {
        background-size: 190px 63px;
        background-position: right 24px top -5px;
    }
}

@media (max-width: 767.98px) {
    .public-legacy-shell .pd4-page::before,
    .public-legacy-shell .pd4-page::after { display: none; }
}

@media (forced-colors: active) {
    .public-legacy-shell .pd4-page::before,
    .public-legacy-shell .pd4-page::after { display: none; }
    .pd4-page > .pd4-section { background-image: none; }
}
