/* Approved artwork stays at its native aspect ratio. All four corners share
   one scale; only plain rails and narrow curtain stems can extend. */
.wishlist-divider {
    position: relative;
    container-type: inline-size;
    width: 100%;
    max-width: none;
    margin: 0 0 clamp(28px, 4vw, 56px);
}
.wishlist-divider__link {
    --corner: min(50vw, clamp(210px, 30vw, 440px));
    --u: calc(var(--corner) / 1254);
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: calc(var(--u) * 2220);
    padding: calc(var(--corner) * .63) calc(var(--corner) * .22) calc(var(--corner) * .53);
    overflow: hidden;
    color: #684611;
    background: transparent;
    text-decoration: none;
}
@supports (width: 1cqw) {
    .wishlist-divider__link { --corner: min(50cqw, clamp(210px, 30cqw, 440px)); }
}
/* On Donate, the top gold rail replaces the header's visual dividing line.
   Share its scale with the header clearance so the ornaments stay in front
   without covering any navigation controls. Other pages keep their layout. */
body#top.page-donate {
    --wishlist-corner: min(50vw, clamp(210px, 30vw, 440px));
    --wishlist-header-overlap: calc(var(--wishlist-corner) * 347 / 1254 + 1px);
    --wishlist-raise: clamp(24px, 5vw, 72px);
}
/* The controls own a separate foreground layer; the header background stays
   behind the raised ornaments. Keep container queries on the control wrapper. */
body#top.page-donate .site-header {
    container-type: normal;
    z-index: auto !important;
    isolation: auto !important;
    pointer-events: none;
}
body#top.page-donate .site-header__layout-container {
    display: block !important;
    container: rescue-header / inline-size;
    position: relative;
    z-index: 30;
    pointer-events: none;
}
/* Interactive descendants must not inherit the transparent layer's hit behavior. */
body#top.page-donate .site-header a,
body#top.page-donate .site-header button,
body#top.page-donate .site-header input,
body#top.page-donate .site-header select,
body#top.page-donate .site-header textarea,
body#top.page-donate .site-header summary {
    pointer-events: auto !important;
}
body#top.page-donate .site-header__inner.jm-header-section-layout {
    padding-bottom: max(0px, calc(var(--wishlist-header-overlap) - .25rem - var(--wishlist-raise))) !important;
}
body#top.page-donate .site-header__bottom-divider {
    position: absolute !important;
    inset: auto 0 0 !important;
    z-index: 1 !important;
}
body#top.page-donate > main {
    display: flow-root;
    position: static !important;
    z-index: auto !important;
    isolation: auto !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
}
body#top.page-donate .wishlist-divider {
    position: relative;
    z-index: 20;
    margin-top: calc(-1 * var(--wishlist-header-overlap));
}
body#top.page-donate .wishlist-divider__link {
    --corner: var(--wishlist-corner);
}
.wishlist-divider__garden,
.wishlist-divider__corner,
.wishlist-divider__stem,
.wishlist-divider__rail {
    position: absolute;
    display: block;
    max-width: none;
    pointer-events: none;
    user-select: none;
}
.wishlist-divider__garden {
    z-index: 0;
    /* End under the inner edges of the gold rails and inside both curtain
       stems. The opaque artwork hides the overlap; no garden can escape
       above, below or outside the drapery as the shared scale changes. */
    top: calc(var(--u) * 366);
    bottom: calc(var(--u) * 210);
    left: calc(var(--u) * 115);
    right: calc(var(--u) * 114);
    width: calc(100% - var(--u) * 229);
    height: calc(100% - var(--u) * 576);
    object-fit: cover;
    object-position: center;
}
.wishlist-divider__link > picture { display: contents; }
.wishlist-divider__corner {
    z-index: 2;
    width: var(--corner);
    height: var(--corner);
    object-fit: contain;
}
.wishlist-divider__corner--top-left {
    z-index: 3;
    left: 0;
    top: var(--u);
}
.wishlist-divider__corner--top-right {
    z-index: 3;
    right: 0;
    top: 0;
}
.wishlist-divider__corner--bottom-left {
    left: calc(var(--u) * 2);
    bottom: calc(var(--u) * 6);
}
.wishlist-divider__corner--bottom-right {
    right: calc(var(--u) * 22);
    bottom: calc(var(--u) * 6);
}
.wishlist-divider__stem {
    z-index: 1;
    top: calc(var(--u) * 960);
    width: var(--corner);
    height: max(calc(var(--u) * 160), calc(100% - var(--u) * 2060));
    overflow: hidden;
}
.wishlist-divider__stem--left { left: calc(var(--u) * 2); }
.wishlist-divider__stem--right { right: calc(var(--u) * 22); }
.wishlist-divider__rail {
    z-index: 4;
    left: calc(var(--corner) * .68);
    width: calc(100% - var(--corner) * 1.36);
    overflow: hidden;
}
.wishlist-divider__rail--top {
    top: calc(var(--u) * 323);
    height: calc(var(--u) * 48);
}
.wishlist-divider__rail--bottom {
    bottom: calc(var(--u) * 159);
    height: calc(var(--u) * 58);
}
.wishlist-divider__content {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 1.5vw, 22px);
    width: min(100%, 900px);
    min-width: 0;
    text-align: center;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
/* The dark shading belongs to the letters; the bright gold bloom is a
   separate layer, so hover light never washes out the readable gold fill. */
.wishlist-divider__copy {
    --gold-line: 1.48em;
    position: relative;
    display: block;
    max-width: 100%;
    isolation: isolate;
    z-index: 1;
}
/* Feathered black shading follows each group of letters, keeping the
   richly illustrated garden visible rather than putting copy in a box. */
.wishlist-divider__copy::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -.3em -.65em;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgb(0 0 0 / 66%) 0%, rgb(0 0 0 / 54%) 51%, transparent 88%);
    filter: blur(12px);
    pointer-events: none;
}
.wishlist-divider__text {
    position: relative;
    z-index: 2;
    display: block;
    color: #e5b943;
    text-shadow: 0 1px 1px #000, 0 0 3px #000, 0 0 7px #000;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .wishlist-divider__text {
        background-image: linear-gradient(180deg, #fff1ac 0%, #efc755 18%, #bc841d 40%, #ffe796 49%, #dfb13c 65%, #a66b10 85%, #f5d064 100%);
        background-size: 100% var(--gold-line);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: .25px #795014;
        text-shadow: none;
        filter: drop-shadow(0 1px .6px #000)
                drop-shadow(0 0 2px #000)
                drop-shadow(0 0 5px rgb(0 0 0 / 95%))
                drop-shadow(0 0 9px rgb(0 0 0 / 78%));
    }
}
.wishlist-divider__glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
    user-select: none;
    color: #ffe67b;
    -webkit-text-stroke: 4px #ffcc30;
    text-shadow: 0 0 14px #fff1a0, 0 0 34px #ffcc21, 0 0 62px #ffab00;
    background: radial-gradient(ellipse at center, rgb(255 221 93 / 78%) 0%, rgb(255 190 25 / 46%) 41%, transparent 82%);
    border-radius: 45%;
    box-shadow: 0 0 32px 9px rgb(255 187 25 / 40%);
    filter: blur(9px);
    opacity: 0;
    transition: opacity .18s ease;
}
.wishlist-divider__title {
    --gold-line: 1.12em;
    font-family: "Pinyon Script", "Snell Roundhand", "Palatino Linotype", Georgia, serif;
    font-size: clamp(2.15rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.12;
    text-wrap: balance;
}
.wishlist-divider__details {
    max-width: 820px;
    font-size: clamp(1.08rem, 2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.48;
    text-wrap: pretty;
}
.wishlist-divider__cta {
    --gold-line: 1.3em;
    font-size: clamp(1.13rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}
@media (hover: hover) {
    .wishlist-divider__copy:hover .wishlist-divider__glow { opacity: 1; }
}
.wishlist-divider__link:focus-visible {
    outline: 3px solid #214f97;
    outline-offset: -4px;
}
.wishlist-divider__link:focus-visible .wishlist-divider__glow { opacity: 1; }
.wishlist-divider__link:focus-visible .wishlist-divider__cta .wishlist-divider__text {
    text-decoration: underline;
    text-underline-offset: .2em;
}
.wishlist-divider__snow {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
/* A separate control never changes the whole-artwork wishlist link. */
.wishlist-divider__snow-toggle {
    position: absolute;
    z-index: 7;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    min-height: 28px;
    padding: 3px 12px;
    border: 1px solid #9c742b;
    border-radius: 999px;
    background: #fff9e9;
    color: #38250b;
    font: 600 12px/1.4 Georgia, serif;
    cursor: pointer;
}
.wishlist-divider__snow-toggle[hidden] { display: none; }
.wishlist-divider__snow-toggle:focus-visible { outline: 3px solid #214f97; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .wishlist-divider__glow { transition: none; }
    .wishlist-divider__snow, .wishlist-divider__snow-toggle { display: none; }
}
@media (forced-colors: active) {
    .wishlist-divider__text {
        background: none;
        color: LinkText;
        -webkit-text-fill-color: currentColor;
        -webkit-text-stroke: 0;
        text-shadow: none;
        filter: none;
    }
    .wishlist-divider__glow, .wishlist-divider__snow, .wishlist-divider__snow-toggle { display: none; }
    .wishlist-divider__cta { text-decoration: underline; }
}
