/* Disclosure markers for partner links, premium profiles and paid lead forms */
.disclosure {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bs-secondary-color);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.disclosure:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Superscript star directly after a partner link or button. It takes the text color
   of its context, so it stays readable in dark mode and on colored bars; the padding
   enlarges the touch target without moving the star */
.disclosure--partner {
  margin: -.375rem -.375rem -.375rem 0;
  padding: .375rem;
  color: inherit;
  font-size: 1em;
  font-weight: 700;
  vertical-align: super;
}

/* Partner button: the star sits in the top right corner inside the button area */
.disclosure-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.disclosure-wrap > .btn {
  flex-grow: 1;
  padding-right: 1.5rem;
}

.disclosure-wrap > .disclosure--partner {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: .25rem .5rem;
  color: var(--bs-white);
  line-height: 1;
  vertical-align: baseline;
}

/* Anchor nav pill: same placement, in the muted pill text color */
.disclosure-wrap > .course-anchor-nav__pill {
  padding-right: 1.5rem;
}

.disclosure-wrap > .course-anchor-nav__pill + .disclosure--partner {
  top: 50%;
  padding: .25rem .5rem;
  color: var(--color-text-muted, #666);
  transform: translateY(-50%);
}

.disclosure--premium,
.disclosure--ad {
  padding: .1875rem .5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 50rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}

/* Badge placed over a card that is a link as a whole */
.disclosure-overlay {
  position: absolute;
  top: .4rem;
  left: calc(var(--bs-gutter-x, 1.5rem) * .5 + .4rem);
  z-index: 2;
}

.disclosure-popover {
  --bs-popover-max-width: 18rem;
  font-size: .875rem;
}
