/* ==============================================================
   Dirty Lab cross-promo — floating bottom bar.
   Shared, portable across Dirty Lab sites. Deliberately uses its
   own "quiet luxury" palette (dark + tan), distinct from this
   landing's brutalist signal colors, so the bar reads as a Lab-
   level element, not part of the page. Shows the 3 OTHER tools.
   ============================================================== */
.lab-promo {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 0.6rem 1rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  background: #100c08;
  border-top: 1px solid rgba(168, 124, 90, 0.3);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
  font-family: var(--font-sans, 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif);
  /* Hidden-until-revealed state — JS adds .is-visible ~2s after load. */
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.lab-promo[hidden] {
  display: none;
}
.lab-promo.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.lab-promo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 1100px;
  margin-inline: auto;
}

/* ---- Header (left) — whole zone links to dirtylab.fr ---------- */
.lab-promo-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: #f2ede4;
}
.lab-promo-head-logo {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.lab-promo-head-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #f2ede4;
}
.lab-promo-arrow {
  color: #a87c5a;
}
.lab-promo-head:hover .lab-promo-head-text {
  color: #fff;
}

/* ---- Items (center, horizontally scrollable on mobile) -------- */
.lab-promo-items {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.lab-promo-items::-webkit-scrollbar {
  display: none;
}
.lab-promo-items > li {
  flex-shrink: 0;
}
/* Defensive: kill any host-page list-marker bleed (e.g. `ul li::before`
   used for custom bullets on the privacy page) so items stay clean. */
.lab-promo-items > li::before,
.lab-promo-items > li::after {
  content: none;
}
.lab-promo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(242, 237, 228, 0.12);
  border-radius: 9px;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.lab-promo-item:hover {
  border-color: #a87c5a;
  background: rgba(242, 237, 228, 0.04);
}
.lab-promo-logo {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.lab-promo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.lab-promo-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f2ede4;
}
.lab-promo-tag {
  font-size: 0.72rem;
  color: #8b8178;
}

/* ---- Close (right), sibling of the header link (no nesting) --- */
.lab-promo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #8b8178;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.lab-promo-close:hover {
  color: #f2ede4;
  background: rgba(242, 237, 228, 0.06);
}

/* ---- Small screens: drop taglines, keep the row scrollable ---- */
@media (max-width: 760px) {
  .lab-promo-tag {
    display: none;
  }
  .lab-promo-name {
    font-size: 0.8rem;
  }
}
@media (max-width: 560px) {
  /* Compact header — keep logo + arrow, drop the long label. */
  .lab-promo-head-text {
    display: none;
  }
}

/* ---- Reduced motion: appear/disappear instantly, no slide ----- */
@media (prefers-reduced-motion: reduce) {
  .lab-promo {
    transform: none;
    transition: none;
  }
}
