/* The Roanlight demo badge.
   Sits on every page of every demo site, identical in all five, so a visitor
   always knows this is a sample rather than a live practice and always has one
   click back to the gallery. Deliberately neutral: it belongs to Roanlight,
   not to the template it is sitting on, so it takes no colour from the host
   site and must not be restyled by it. */

.rl-badge {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  padding: 0.5rem 0.85rem 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 22, 28, 0.92);
  backdrop-filter: saturate(1.3) blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);

  color: #F1EFEA;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;

  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
    background-color 200ms ease;
}

.rl-badge:hover,
.rl-badge:focus-visible {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(18, 22, 28, 0.98);
}

/* The Roanlight lamp, the one mark the badge carries over from the parent site. */
.rl-badge-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #E9A13B;
  box-shadow: 0 0 0 3px rgba(233, 161, 59, 0.18);
  flex: none;
}

/* Collapsed until hover, so the badge reads as a label first and a control
   second. Width rather than display, so it can animate. */
.rl-badge-back {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  color: #E9A13B;
  transition: max-width 240ms cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 160ms ease, margin-left 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.rl-badge:hover .rl-badge-back,
.rl-badge:focus-visible .rl-badge-back {
  max-width: 6rem;
  opacity: 1;
  margin-left: 0.1rem;
}

.rl-badge-back::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.7rem;
  margin-right: 0.55rem;
  vertical-align: -0.1em;
  background: rgba(255, 255, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .rl-badge,
  .rl-badge-back {
    transition: none;
  }
  .rl-badge:hover,
  .rl-badge:focus-visible {
    transform: translateX(-50%);
  }
}

@media print {
  .rl-badge {
    display: none;
  }
}
