/* ============================================================
   SOLD-OUT party tile = look "E Midnight + stamp" (approved by Josh 2026-11-20). Loaded after css/tiles-v2.css
   (includes/site-header.php). Made from the mockup's so.css (Drive BallDrop-Live/research/sold-out-tile-2026-11-20/build/so.css):
   its shared block + the E block, with the mockup switcher prefix body[data-so="e"] removed; looks A-D + the switcher are not shipped.
   C's graphite card (perforated line kept, not torn) + a rose rubber stamp "SOLD OUT" on the stub. The flyer stays full colour,
   nothing is printed over it. Hover: same lift, a graphite rim instead of the orange glow (orange = buyable).
   Markup (rule: includes/tile-soldout.php, Josh 2026-11-25): li.list-item.is-soldout (templates/filter.event-listing.php,
   templates/event-listing-random.php) or, in the homepage rows, li.tile-list.is-soldout (templates/event-listing-filters.php);
   the price line prints <span class="so-label">Sold out</span>; the Offer keeps its price as a meta and availability
   stays InStock (Josh 2026-11-25). Where: party-type pages, homepage grid, /new-york-new-years, homepage rows; always LAST in the list or row.
   ============================================================ */

/* ---------- shared ---------- */
#wrapper ul:not(.articles) li.list-item.is-soldout .price b,
#wrapper #footer-top li.tile-list.is-soldout .price b { display: none !important; }
#wrapper ul:not(.articles) li.list-item.is-soldout .so-label,
#wrapper #footer-top li.tile-list.is-soldout .so-label {
    display: inline-flex; align-items: center; white-space: nowrap;
    font: 700 15px/1 'Roboto Condensed', 'Arial Narrow', sans-serif; text-transform: uppercase;
}
/* sold out never glows orange: the rim and the open date chip go graphite */
@media (hover: hover) and (pointer: fine) {
    #wrapper ul:not(.articles) li.list-item.is-soldout:hover,
    #wrapper #footer-top li.tile-list.is-soldout:hover {
        filter: drop-shadow(0 0 1px rgb(23 20 31 / .7)) drop-shadow(0 22px 26px rgb(14 12 20 / .24));
    }
    #wrapper ul:not(.articles) li.list-item.is-soldout > a::after,
    #wrapper #footer-top li.tile-list.is-soldout > a::after { border-color: #17141f; }
    #wrapper ul:not(.articles) li.list-item.is-soldout > a:hover .highlight,
    #wrapper #footer-top li.tile-list.is-soldout > a:hover .highlight,
    #wrapper ul:not(.articles) li.list-item.is-soldout > a:focus-visible .highlight,
    #wrapper #footer-top li.tile-list.is-soldout > a:focus-visible .highlight { background: #17141f none !important; }
}
#wrapper ul:not(.articles) li.list-item.is-soldout > a:hover .price::after,
#wrapper #footer-top li.tile-list.is-soldout > a:hover .price::after { background-color: #4a4553; }

/* ---------- E  Midnight + stamp (Josh 11-20: "show me midnight + stamp") ----------
   C's graphite card (perforated line kept, not torn) + the rose rubber stamp "SOLD OUT" on the stub. Flyer full colour. */
#wrapper ul:not(.articles) li.list-item.is-soldout > a,
#wrapper #footer-top li.tile-list.is-soldout > a,
#wrapper ul:not(.articles) li.list-item.is-soldout > a:hover,
#wrapper #footer-top li.tile-list.is-soldout > a:hover { background: #17141f !important; color: #fff; }
#wrapper ul:not(.articles) li.list-item.is-soldout .event-info h3,
#wrapper #footer-top li.tile-list.is-soldout .event-info h3 { color: #fff !important; }
#wrapper ul:not(.articles) li.list-item.is-soldout .event-info h5,
#wrapper #footer-top li.tile-list.is-soldout .event-info h5 { color: #a9a3b3 !important; }
#wrapper ul:not(.articles) li.list-item.is-soldout .event-info h5::before,
#wrapper #footer-top li.tile-list.is-soldout .event-info h5::before { background: #7d7788; }
#wrapper ul:not(.articles) li.list-item.is-soldout .event-info p.tagline,
#wrapper #footer-top li.tile-list.is-soldout .event-info p.tagline { color: #cfcad6 !important; }
#wrapper ul:not(.articles) li.list-item.is-soldout .price,
#wrapper #footer-top li.tile-list.is-soldout .price {
    background: linear-gradient(90deg, #3a3542 50%, #0000 0) 13px 0 / 9px 1.5px repeat-x !important;
}
#wrapper ul:not(.articles) li.list-item.is-soldout .price::before,
#wrapper #footer-top li.tile-list.is-soldout .price::before { background: #6f6879; }
#wrapper ul:not(.articles) li.list-item.is-soldout .price::after,
#wrapper #footer-top li.tile-list.is-soldout .price::after { background-color: #2f2b38; }
#wrapper ul:not(.articles) li.list-item.is-soldout .so-label,
#wrapper #footer-top li.tile-list.is-soldout .so-label {
    margin-left: 4px; padding: 6px 10px 5px; letter-spacing: .16em; color: #ff5c93;
    border: 2px solid currentColor; border-radius: 4px;
    box-shadow: inset 0 0 0 2px #17141f, inset 0 0 0 3px rgb(255 92 147 / .55);
    transform: rotate(-4deg); transform-origin: left center;
    -webkit-mask: radial-gradient(circle at 18% 30%, #000c 0 1.2px, #0000 1.6px) 0 0 / 9px 7px,
                  linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: radial-gradient(circle at 18% 30%, #000c 0 1.2px, #0000 1.6px) 0 0 / 9px 7px exclude,
                  linear-gradient(#000 0 0);
}
#wrapper ul:not(.articles) li.list-item.is-soldout > a:hover .so-label,
#wrapper #footer-top li.tile-list.is-soldout > a:hover .so-label { color: #ff7aa8; }

/* ---------- phones: the 2-up tiles are ~165px wide ---------- */
@media all and (max-width: 480px) {
    #wrapper ul:not(.articles) li.list-item.is-soldout .so-label,
    #wrapper #footer-top li.tile-list.is-soldout .so-label { font-size: 12.5px; }
    #wrapper ul:not(.articles) li.list-item.is-soldout .so-label,
    #wrapper #footer-top li.tile-list.is-soldout .so-label { margin-left: 0; padding: 5px 7px 4px; letter-spacing: .12em;
        -webkit-mask: none; mask: none; }   /* at 12px the ink grain eats the letters */
}
