/* FFV6_LUNA_OUTLIER_TOP_PILL_CLEANUP_V1 */

/*
  Purpose:
  Remove the unnecessary top pill/glass wrapper introduced by the global Luna pass
  on the outlier public pages only.
*/

body.bw-outlier-top-pill-cleanup main > *:first-child{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  padding:0 !important;
  margin:0 0 18px !important;
}

/* If the first item is only a tiny label/pill strip, remove it completely. */
body.bw-outlier-top-pill-cleanup main > *:first-child:not(:has(h1)):not(:has(h2)):not(:has(form)):not(:has(table)):not(:has(textarea)):not(:has(video)):not(:has(img)):not(:has(.bw-card)):not(:has(.bw-panel)){
  display:none !important;
}

/* Remove old small badge/pill chrome inside the first page block without affecting real page content. */
body.bw-outlier-top-pill-cleanup main > *:first-child .pill,
body.bw-outlier-top-pill-cleanup main > *:first-child .badge,
body.bw-outlier-top-pill-cleanup main > *:first-child .kicker,
body.bw-outlier-top-pill-cleanup main > *:first-child .eyebrow,
body.bw-outlier-top-pill-cleanup main > *:first-child .bw-pill,
body.bw-outlier-top-pill-cleanup main > *:first-child .bw-badge,
body.bw-outlier-top-pill-cleanup main > *:first-child .bw-kicker,
body.bw-outlier-top-pill-cleanup main > *:first-child .bw-eyebrow,
body.bw-outlier-top-pill-cleanup main > *:first-child [class*="pill"],
body.bw-outlier-top-pill-cleanup main > *:first-child [class*="badge"],
body.bw-outlier-top-pill-cleanup main > *:first-child [class*="kicker"],
body.bw-outlier-top-pill-cleanup main > *:first-child [class*="eyebrow"]{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Keep the actual hero/header text clean and Luna-consistent after the pill wrapper is removed. */
body.bw-outlier-top-pill-cleanup main > *:first-child h1,
body.bw-outlier-top-pill-cleanup main > *:first-child h2,
body.bw-outlier-top-pill-cleanup main > *:first-child p{
  max-width:880px !important;
}

/* Avoid accidental giant blank space after the removed top pill. */
body.bw-outlier-top-pill-cleanup main > *:first-child + *{
  margin-top:0 !important;
}
