/* Reversible TOP promo panel trial. Remove the marked link in search.html to
   restore the previous catalog. No renderer, data or action behavior changes.
   :has also covers TOP promo combined with editorial badges. */
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) {
  --rs-top-panel:#202c44;
  --rs-top-panel-ink:#f8fafc;
  --rs-top-panel-muted:#c4cfdf;
  --rs-top-panel-line:#63718b;
  --rs-top-panel-gold:#f2c94c;
}

/* Photo blending and the shared TOP-card glow use the promotion's yellow. */
.search-results-page .rs-event[data-card-status="paid-top"] {
  --rs-promo-edge-strength:28%;
  border-width:1px;
  box-shadow:0 4px 12px 0 color-mix(in srgb,var(--rs-promo-color) 28%,transparent),
    0 8px 26px 0 color-mix(in srgb,var(--rs-promo-color) 22%,transparent);
}
/* Emboss only the narrow rim; its transparent centre leaves the card flat. */
.search-results-page .rs-event[data-card-status="paid-top"]::after {
  content:"";
  position:absolute;
  inset:-1px;
  z-index:2;
  box-sizing:border-box;
  border:2px ridge var(--rs-top-promo-border,#eab308);
  border-radius:inherit;
  opacity:.65;
  pointer-events:none;
}

.search-results-page .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-footer {
  margin:0 -8px -8px;
  padding:14px 16px 16px;
  border:0;
  border-radius:0 0 15px 15px;
  background:var(--rs-top-panel);
  color:var(--rs-top-panel-ink);
}
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) .rs-price strong { color:var(--rs-top-panel-ink); }
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) .rs-price span { color:var(--rs-top-panel-muted); }
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) .rs-price > svg { color:var(--rs-top-panel-gold); }
/* TOP panels keep the same single-line admission value as other cards. */
.search-results-page :is(#searchResultsList,#organizerEvents) .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-footer {
  grid-template-rows:minmax(50px,auto) 44px;
  row-gap:12px;
  padding:14px 16px;
}
.search-results-page :is(#searchResultsList,#organizerEvents) .rs-event:has(.event-status-badge.is-paid-top) .rs-price > div {
  grid-template-rows:14px auto;
  gap:4px;
}
.search-results-page :is(#searchResultsList,#organizerEvents) .rs-event:has(.event-status-badge.is-paid-top) .rs-price.is-long strong {
  max-height:none;
  font-size:16px;
  line-height:20px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) .rs-event-actions .rs-ticket-link {
  color:var(--rs-top-panel-ink);
  background:transparent;
  border-color:#8a9ab2;
}
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) .rs-ticket-link > svg:first-child { color:var(--rs-top-panel-gold); }
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) .rs-event-actions .rs-ticket-link:hover {
  background:#2b3b57;
  border-color:#bac8dc;
}
.search-results-page .rs-event:has(.event-status-badge.is-paid-top) .rs-event-actions > a:focus-visible { outline-color:#a5b4fc; }
.search-results-page .rs-event:has(.event-status-badge.is-paid-top):has(> .rs-owner-actions) > .rs-event-footer {
  margin-bottom:0;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}

@media (min-width:861px) {
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-footer {
    margin:-8px -8px -8px 0;
    padding:18px 16px 12px;
    border-left:1px solid #3c4a65;
    border-radius:0 15px 15px 0;
  }
  /* Catalogue cards reset this margin through their ID-scoped layout rule. */
  .search-results-page.rs-compact :is(#searchResultsList,#organizerEvents) .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-footer {
    margin-top:-8px;
    padding:16px 16px 12px;
  }
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top):has(> .rs-owner-actions) > .rs-event-footer {
    margin-bottom:0;
    border-bottom-right-radius:0;
  }
  /* The controls sit over this panel only in the desktop list layout. Keep
     their original light/photo treatment in the image and phone layouts. */
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-controls :is(.rs-save-icon,.rs-event-menu summary) {
    color:var(--rs-top-panel-ink);
    background:transparent;
    border-color:var(--rs-top-panel-line);
    box-shadow:none;
  }
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-controls :is(.rs-save-icon:hover,.rs-event-menu summary:hover,.rs-event-menu[open] summary) {
    background:#30415f;
    border-color:#9cacc4;
  }
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-controls .rs-save-icon.is-saved {
    color:#ff86ad;
    background:#54384f;
    border-color:#b66b91;
  }
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-controls .rs-save-icon.is-saved:hover { background:#634059; }
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-controls :is(.rs-save-icon,.rs-event-menu summary):focus-visible { outline-color:#a5b4fc; }
}
@media (min-width:641px) and (max-width:860px) {
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) .rs-badges { min-height:44px; }
  .search-results-page.rs-compact .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-footer {
    margin-left:0;
    border-top-left-radius:12px;
    border-bottom-left-radius:0;
  }
}
@media (max-width:640px) {
  .search-results-page .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-footer {
    margin:0 -7px -7px;
    padding:12px 16px 14px;
    border-radius:0 0 13px 13px;
  }
  .search-results-page .rs-event:has(.event-status-badge.is-paid-top):has(> .rs-owner-actions) > .rs-event-footer {
    margin-bottom:0;
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
  }
}
@media (forced-colors:active) {
  .search-results-page .rs-event[data-card-status="paid-top"]::after { border:1px solid CanvasText; opacity:1; }
  .search-results-page .rs-event:has(.event-status-badge.is-paid-top) {
    --rs-top-panel:Canvas;
    --rs-top-panel-ink:CanvasText;
    --rs-top-panel-muted:CanvasText;
    --rs-top-panel-gold:CanvasText;
    --rs-top-panel-line:ButtonText;
  }
  .search-results-page .rs-event:has(.event-status-badge.is-paid-top) > .rs-event-footer { border:1px solid CanvasText; }
}
