/* By Night — Yellow 5 / #FFD85A.
 * Load after existing public styles. Opt-in: body[data-bn-brand="yellow5"].
 * Colours only: no sizing, layout, image, logo or functional-status changes.
 */
body[data-bn-brand="yellow5"],
body[data-bn-brand="yellow5"] :is(.media-detail-shell, .detail-page, .marrakech-primary-nav, .bn-google-consent) {
  --bn-brand-yellow: #FFD85A;
  --bn-brand-night: #0B1020;
  --pink: #FFD85A !important;
  --gold: #FFD85A !important;
  --city-accent: #FFD85A !important;
  --city-accent-soft: #FFD85A !important;
  --action-active-bg: #FFD85A !important;
  --action-active-border: #FFD85A !important;
  --action-active-text: #0B1020 !important;
  --action-gold: #FFD85A !important;
  --action-gold-soft: rgba(255, 216, 90, .14) !important;
  --home-action-active: #FFD85A !important;
  --home-action-reserve: #FFD85A !important;
  --hp-gold: #FFD85A !important;
  --ft-gold: #FFD85A !important;
  --ft-gold-bright: #FFD85A !important;
  --news-gold: #FFD85A !important;
}

html body[data-bn-brand="yellow5"] {
  background-color: #0B1020 !important;
}

/* Plain public legal/privacy/maintenance pages, outside the full site shell. */
html body[data-bn-brand="yellow5"]:where(:not(.marrakech-phase1):not(.bynight-unified-v1)) a:where(:not(.button):not([role="button"]):not([href*="wa.me"]):not([href*="whatsapp.com"])) {
  color: #FFD85A !important;
  text-decoration-color: currentColor;
}

/* Solid brand surfaces. Disabled/unavailable actions retain their state colours. */
html body[data-bn-brand="yellow5"] :is(
  .button.primary:not([data-home-action]),
  .event-sheet-cta,
  .media-detail-shell[data-detail-type="event"] .event-sheet-top-button--book,
  .detail-page .event-sheet-top-button--book,
  .media-detail-shell[data-detail-type="venue"] .venue-sheet-hero-actions .venue-sheet-book,
  .media-detail-shell[data-detail-type="venue"] .venue-sheet-primary-actions .venue-sheet-book,
  .detail-page .venue-sheet-hero-actions .venue-sheet-book,
  .detail-page .venue-sheet-primary-actions .venue-sheet-book,
  .venue-sheet-agenda-filters button.active,
  .venue-sheet-agenda-filters button:hover,
  .events-date-shortcuts button.active,
  .events-date-shortcuts button:hover,
  .magazine-kind-tabs button.active,
  .magazine-kind-tabs button:hover,
  .magazine-view-switch button.active,
  .events-empty-premium button,
  .magazine-empty-premium button,
  .events-featured-kicker,
  .event-featured-pill,
  .magazine-lead-badge,
  .magazine-story-featured
):not([data-reservation-enabled="0"]):not([disabled]):not([aria-disabled="true"]) {
  background: #FFD85A !important;
  color: #0B1020 !important;
  border-color: #FFD85A !important;
  text-shadow: none !important;
}

/* Guide sectors and Agenda dates share the same selected steel control finish. */
html body.marrakech-phase1[data-bn-brand="yellow5"] :is([data-home-section="guide"] .home-guide-filter-areas [data-guide-area-filter], [data-home-section="events"] .home-events-filter-group--date [data-event-date-filter])[aria-pressed="true"],
html body.marrakech-phase1[data-bn-brand="yellow5"] :is([data-home-section="guide"] .home-guide-filter-areas [data-guide-area-filter], [data-home-section="events"] .home-events-filter-group--date [data-event-date-filter]):active {
  background: #FFD85A !important;
  color: #0B1020 !important;
  border-color: #FFD85A !important;
  text-shadow: none !important;
  box-shadow: 0 0 14px rgba(255, 216, 90, .16) !important;
}

html body.marrakech-phase1[data-bn-brand="yellow5"] :is([data-home-section="guide"] .home-guide-filter-areas [data-guide-area-filter], [data-home-section="events"] .home-events-filter-group--date [data-event-date-filter])[aria-pressed="true"]::before,
html body.marrakech-phase1[data-bn-brand="yellow5"] :is([data-home-section="guide"] .home-guide-filter-areas [data-guide-area-filter], [data-home-section="events"] .home-events-filter-group--date [data-event-date-filter]):active::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)) !important;
  border-color: rgba(255, 255, 255, .18) !important;
  box-shadow: none !important;
}

html body.marrakech-phase1[data-bn-brand="yellow5"] :is([data-home-section="guide"] .home-guide-filter-areas [data-guide-area-filter], [data-home-section="events"] .home-events-filter-group--date [data-event-date-filter])[aria-pressed="true"]::after,
html body.marrakech-phase1[data-bn-brand="yellow5"] :is([data-home-section="guide"] .home-guide-filter-areas [data-guide-area-filter], [data-home-section="events"] .home-events-filter-group--date [data-event-date-filter]):active::after {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Preserve navigation icons and their source assets; change only accent/glow. */
html body[data-bn-brand="yellow5"] .marrakech-primary-nav .button::after {
  content: none !important;
  display: none !important;
}

html body[data-bn-brand="yellow5"] .marrakech-primary-nav .button[aria-current]:not([aria-current="false"]) .home-action-icon {
  filter: drop-shadow(0 0 6px rgba(255, 216, 90, .32)) !important;
}

html body.bynight-unified-v1[data-bn-brand="yellow5"] .home-public-empty-link {
  background: rgba(255, 216, 90, .12) !important;
  color: #FFD85A !important;
  border-color: rgba(255, 216, 90, .32) !important;
}

html body.bynight-unified-v1[data-bn-brand="yellow5"] .home-public-empty-link:hover {
  background: rgba(255, 216, 90, .20) !important;
  color: #FFD85A !important;
}

/* Brand-coloured labels and text links. No blanket icon/image recolouring. */
html body[data-bn-brand="yellow5"] :is(
  .text-link,
  .event-card-link,
  .events-featured-date span,
  .events-search-field span,
  .events-day-date span,
  .magazine-story-meta,
  .magazine-story-footer > a,
  .premium-detail-eyebrow span,
  .detail-kicker,
  .premium-detail-date-block span,
  .premium-map-card a,
  .event-sheet-date span,
  .event-sheet-map > a,
  .venue-sheet-profile-groups h3,
  .venue-sheet-meta i,
  .venue-sheet-panel > header small,
  .venue-sheet-agenda-list time
) {
  color: #FFD85A !important;
  text-decoration-color: currentColor;
}

/* Cookie/consent UI: leave functional green checks and other statuses intact. */
html body[data-bn-brand="yellow5"] .bn-google-consent {
  border-color: rgba(255, 216, 90, .45) !important;
}

html body[data-bn-brand="yellow5"] .bn-google-consent .bn-google-consent-actions [data-bn-consent="granted"],
html body[data-bn-brand="yellow5"] .bn-google-consent button[data-bn-consent="granted"],
html body[data-bn-brand="yellow5"] .bn-google-consent[data-bn-view="details"] .bn-google-consent-actions [data-bn-consent="granted"],
html body[data-bn-brand="yellow5"] .bn-google-consent[data-bn-view="details"] button[data-bn-consent="granted"] {
  background: #FFD85A !important;
  border-color: #FFD85A !important;
  color: #0B1020 !important;
  text-shadow: none !important;
}

html body[data-bn-brand="yellow5"] .bn-cookie-details > a {
  color: #FFD85A !important;
  border-color: rgba(255, 216, 90, .35) !important;
  text-decoration-color: currentColor;
}

html body[data-bn-brand="yellow5"] .bn-cookie-details-item {
  border-color: rgba(255, 216, 90, .24) !important;
}

html body[data-bn-brand="yellow5"] .bn-consent-secondary button:hover {
  background: rgba(255, 216, 90, .12) !important;
  color: #FFD85A !important;
  border-color: rgba(255, 216, 90, .45) !important;
}
