/* The Constellation at the top of /browse (NEV-3279). It sits on the plum hero. */
.browse-constellation { position: relative; z-index: 1; margin: 0 auto; max-width: 1100px; padding: 0 16px; text-align: center; }
.browse-constellation .bc-line { color: #d9d2e0; margin: 0 0 4px; }
.bc-sky { display: block; width: 100%; height: auto; overflow: visible; } /* an outer star's label is not cut off */
.bc-star { cursor: pointer; transition: opacity .2s; }
.bc-star[data-kind="specialty"] { --bc: #B26BE0; }
.bc-star[data-kind="drug"] { --bc: #FF8A3D; }
.bc-star[data-kind="drg"] { --bc: #F0509F; }
.bc-star[data-kind="apc"] { --bc: #6FB7FF; }
.bc-star .bc-hit { fill: transparent; }
.bc-star .bc-dot { fill: var(--bc); }
.bc-star .bc-halo { fill: var(--bc); opacity: .13; }
.bc-star text { font: 600 11px Inter, system-ui, sans-serif; fill: #efe6f5; pointer-events: none; display: none;
  paint-order: stroke; stroke: #22092b; stroke-width: 3px; stroke-linejoin: round; } /* a label stays readable over a neighbouring star */
.bc-star[data-rank="0"] text, .bc-star:hover text, .bc-star:focus text, .bc-star.is-on text { display: block; }
.bc-star:hover .bc-halo, .bc-star:focus .bc-halo, .bc-star.is-on .bc-halo { opacity: .38; }
.bc-star:hover .bc-dot, .bc-star:focus .bc-dot, .bc-star.is-on .bc-dot { stroke: #fff; stroke-width: 2; }
.bc-star:focus { outline: none; }
/* one star picked, or one kind lit: the rest fall back */
.browse-constellation[data-picked] .bc-star:not(.is-on) { opacity: .2; }
.browse-constellation[data-picked] .bc-star[data-rank="0"]:not(.is-on) text { display: none; }
.browse-constellation[data-lit="specialty"] .bc-star:not([data-kind="specialty"]),
.browse-constellation[data-lit="drug"] .bc-star:not([data-kind="drug"]),
.browse-constellation[data-lit="drg"] .bc-star:not([data-kind="drg"]),
.browse-constellation[data-lit="apc"] .bc-star:not([data-kind="apc"]) { opacity: .16; }
.browse-constellation[data-lit="specialty"] .bc-star[data-kind="specialty"] text,
.browse-constellation[data-lit="drug"] .bc-star[data-kind="drug"] text,
.browse-constellation[data-lit="drg"] .bc-star[data-kind="drg"] text,
.browse-constellation[data-lit="apc"] .bc-star[data-kind="apc"] text { display: block; }
.browse-constellation[data-lit="specialty"] .bc-star:not([data-kind="specialty"]):not(:hover) text,
.browse-constellation[data-lit="drug"] .bc-star:not([data-kind="drug"]):not(:hover) text,
.browse-constellation[data-lit="drg"] .bc-star:not([data-kind="drg"]):not(:hover) text,
.browse-constellation[data-lit="apc"] .bc-star:not([data-kind="apc"]):not(:hover) text { display: none; }
.browse-constellation[data-lit] .bc-star:not([data-rank="0"]):not([data-rank="1"]):not([data-rank="2"]):not([data-rank="3"]):not([data-rank="4"]):not([data-rank="5"]):not([data-rank="6"]):not([data-rank="7"]):not(.is-on):not(:hover) text { display: none; }
/* the star in hand is never dimmed, whichever kind is lit */
.browse-constellation .bc-star.is-on, .browse-constellation .bc-star:hover, .browse-constellation .bc-star:focus { opacity: 1; }
/* the hero's own decorative spiral gives way to the drawing */
.reports-hero:has(.browse-constellation) .reports-hero-art { display: none; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 12px; }
.bc-chips[hidden], .bc-panel[hidden], .bc-open[hidden] { display: none; }
.bc-chip { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font: inherit; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.bc-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bc-chip[data-kind="specialty"] i { background: #B26BE0; }
.bc-chip[data-kind="drug"] i { background: #FF8A3D; }
.bc-chip[data-kind="drg"] i { background: #F0509F; }
.bc-chip[data-kind="apc"] i { background: #6FB7FF; }
.bc-chip[aria-pressed="true"] { background: #fff; color: #1c1a22; border-color: #fff; }
.bc-panel { min-height: 74px; max-width: 640px; margin: 0 auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; text-align: left; color: #fff; }
.bc-eyebrow { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #cdbfd8; }
.bc-panel b { display: block; font-size: 17px; line-height: 1.25; }
.bc-figure { font-size: 14px; color: #e6dcec; font-variant-numeric: tabular-nums; }
.bc-open { flex: none; border-radius: 8px; background: linear-gradient(90deg, #A62E7E, #FF7A19); color: #fff; font-weight: 600;
  padding: 10px 16px; white-space: nowrap; text-decoration: none; }
/* with the who-bills-it buttons the row can run out of room: the buttons then drop under the words */
.bc-panel { flex-wrap: wrap; }
.bc-panel > div:first-child { flex: 1 1 260px; min-width: 0; }
.bc-acts { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 auto; justify-content: flex-end; }
.bc-acts [data-bc-who] { display: contents; }
.bc-open--who { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
@media (max-width: 640px) {
  .bc-acts { justify-content: stretch; }
  .bc-acts .bc-open { flex: 1; }
  .browse-constellation { padding: 0 8px; }
  .bc-panel { flex-direction: column; align-items: stretch; }
  .bc-open { text-align: center; }
  .bc-star text { font-size: 15px; }
  /* The drawing keeps a width a finger can use and scrolls sideways inside its own box; the page never does. */
  .bc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bc-sky { width: 660px; max-width: none; }
}
/* The logo's look (NEV-3669, the BROWSE_LOGO_SKY switch): the signed mark at the spiral's centre, and the four kinds
   in colours taken from the logo's gradient. The mark's dots keep the signed kit's ramp (#5B1E6D → #D33C8D → #FF7A19,
   brand/logo/README.md: the dots are never recoloured); the stars' four colours are sampled from it. Off, none of this matches. */
.browse-constellation[data-logo-sky] .bc-star[data-kind="specialty"] { --bc: #A35BC4; }
.browse-constellation[data-logo-sky] .bc-star[data-kind="drg"] { --bc: #D33C8D; }
.browse-constellation[data-logo-sky] .bc-star[data-kind="apc"] { --bc: #F25A55; }
.browse-constellation[data-logo-sky] .bc-star[data-kind="drug"] { --bc: #FF8A2A; }
.browse-constellation[data-logo-sky] .bc-chip[data-kind="specialty"] i { background: #A35BC4; }
.browse-constellation[data-logo-sky] .bc-chip[data-kind="drg"] i { background: #D33C8D; }
.browse-constellation[data-logo-sky] .bc-chip[data-kind="apc"] i { background: #F25A55; }
.browse-constellation[data-logo-sky] .bc-chip[data-kind="drug"] i { background: #FF8A2A; }
.bc-mark circle { opacity: .55; transition: opacity 1s; } /* the fill is on the group in the template, as in favicon.svg */
/* as the stars leave, the mark shows at full strength at once, then fades back to the spiral's eye */
.browse-constellation[data-opening] .bc-mark circle { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .bc-mark circle { transition: none; } }
