.cw-footer.cw-footer--gold {
    --footer-gold: #ffe0a2;
    --footer-border: #9c794a;
    --footer-inset: clamp(10px, 2.4vw, 23px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 7px 16px;
    min-height: 82px;
    margin-block-end: 16px;
    padding-block: 14px;
    padding-inline: 0;
    border: 1px solid var(--footer-border);
    border-radius: 14px;
    background: linear-gradient(110deg, #43242c, #311b28 50%, #251823);
    color: #f9edf4;
    box-shadow: inset 0 0 0 3px #b58b5330, 0 0 25px #da9d4329;
}

.cw-footer--gold::before,
.cw-footer--gold::after {
    content: "";
    position: absolute;
    inset-inline: 10px;
    inset-block-start: 4px;
    block-size: 6px;
    pointer-events: none;
    background: radial-gradient(circle, #f8d08b 0 1px, #db965b77 2px, transparent 3px) 0 center / 15px 6px repeat-x;
}

.cw-footer--gold::after { inset-block: auto 4px; }

.cw-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 var(--footer-inset);
}

.cw-footer-brand strong {
    display: block;
    color: var(--footer-gold);
    font: 700 1.65rem/.97 "Cormorant Garamond", "Times New Roman", serif;
}

.cw-footer-brand small { color: #ebc8a9; font-size: .73rem; white-space: nowrap; }

.cw-footer-emblem {
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    block-size: 37px;
    border: 1px solid #c19655;
    border-radius: 50%;
    background: radial-gradient(circle, #5f4231, #2c1722 69%);
    color: var(--footer-gold);
    font-size: 20px;
    box-shadow: inset 0 0 0 2px #47302a, inset 0 0 0 3px #b47d4170;
}

.cw-footer--gold > .cw-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 4px 7px;
    min-width: 0;
    margin-inline: var(--footer-inset);
}

.cw-footer-menu { grid-column: 1 / -1; }

.cw-footer--gold :is(.cw-footer-nav > a, .cw-footer-menu > summary, .cw-footer-panel a) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-block-size: 44px;
    padding: 5px 8px;
    border-radius: 7px;
    color: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.cw-footer--gold :is(.cw-footer-nav > a + a, .cw-footer-nav a[aria-current="page"]) { color: var(--footer-gold); }
.cw-footer--gold .cw-footer-nav a:hover { background: #ffe0a21a; color: var(--footer-gold); }

.cw-footer--gold :is(a, summary):focus-visible {
    outline: 2px solid var(--footer-gold);
    outline-offset: -2px;
}

.cw-footer--gold .cw-footer-menu > summary {
    list-style: none;
    border: 1px solid var(--footer-border);
    background: #51332e;
    color: var(--footer-gold);
    cursor: pointer;
}

.cw-footer-menu > summary::-webkit-details-marker { display: none; }
.cw-footer--gold .cw-footer-menu > summary:hover,
.cw-footer--gold .cw-footer-menu[open] > summary { background: #634433; }

.cw-footer-chevron {
    flex: 0 0 7px;
    block-size: 7px;
    margin-block-start: 4px;
    border: solid currentColor;
    border-width: 1.5px 0 0 1.5px;
    transform: rotate(45deg);
}

.cw-footer-menu[open] .cw-footer-chevron { margin-block-start: -4px; transform: rotate(225deg); }

.cw-footer-panel {
    position: absolute;
    z-index: 64;
    inset-inline-end: var(--footer-inset);
    inset-block-end: calc(100% + 9px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    inline-size: min(420px, calc(100% - 2 * var(--footer-inset)));
    max-block-size: min(250px, 65dvh, var(--cw-footer-menu-room, 250px));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--footer-border) #2b1822;
    padding: 7px;
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    background: #2b1822;
    box-shadow: 0 12px 38px #06040cbd, 0 0 20px #ffe0a224;
}

.cw-footer-menu:not([open]) .cw-footer-panel { display: none; }

.cw-footer-menu-group {
    min-width: 0;
    padding: 4px;
    border-radius: 8px;
    background: #38252a;
}

.cw-footer-menu-group > p {
    margin: 0;
    padding: 5px 6px;
    color: var(--footer-gold);
    font-size: .79rem;
    font-weight: 700;
    line-height: 1.2;
}

.cw-footer-menu-group ul { margin: 0; padding: 0; list-style: none; }

.cw-footer--gold .cw-footer-panel a {
    justify-content: space-between;
    padding-inline: 6px;
    overflow-wrap: anywhere;
    text-align: start;
}

.cw-footer-panel a::after { content: "→" / ""; color: var(--footer-gold); opacity: .8; }

@media (min-width: 660px) {
    .cw-footer.cw-footer--gold { grid-template-columns: auto minmax(0, 1fr); }
    .cw-footer-brand { justify-self: start; margin-inline-end: 0; }
    .cw-footer--gold > .cw-footer-nav {
        display: flex;
        justify-content: flex-end;
        margin-inline-start: 0;
    }
    .cw-footer--gold :is(.cw-footer-nav > a, .cw-footer-menu > summary) { padding-inline: 12px; }
    .cw-footer-menu-group { padding: 6px; }
}

@media (max-width: 360px) {
    .cw-footer-panel a::after { display: none; }
}

@media (min-width: 580px) and (max-height: 470px) {
    .cw-footer-panel {
        inset-inline: var(--footer-inset) auto;
        inline-size: min(420px, calc(100% - var(--footer-inset) - 172px - env(safe-area-inset-right, 0px)));
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cw-footer--gold:has(.cw-footer-menu[open])::before,
    .cw-footer--gold:has(.cw-footer-menu[open])::after {
        animation: cw-footer-marquee .85s ease-out;
    }

    .cw-footer-menu[open] > .cw-footer-panel { animation: cw-footer-reveal .18s ease-out both; }
}

:is(.cw-motion-paused, .pg-paused, [data-catalog-paused], body:has([data-exclusive-pause][aria-pressed="true"])) .cw-footer--gold::before,
:is(.cw-motion-paused, .pg-paused, [data-catalog-paused], body:has([data-exclusive-pause][aria-pressed="true"])) .cw-footer--gold::after,
:is(.cw-motion-paused, .pg-paused, [data-catalog-paused], body:has([data-exclusive-pause][aria-pressed="true"])) .cw-footer-panel {
    animation: none;
}

.cw-footer--gold[data-footer-hidden]::before,
.cw-footer--gold[data-footer-hidden]::after,
.cw-footer--gold[data-footer-hidden] .cw-footer-panel { animation-play-state: paused; }

@keyframes cw-footer-marquee {
    55% { filter: brightness(1.38) drop-shadow(0 0 3px #ffcf80); }
    to { background-position-x: 45px; }
}

@keyframes cw-footer-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}
