/* Bottom-corner promo bar (own-ad slot).
   Style job: lime = "free stuff" (matches the site's colour language), so the bar
   never competes with the gold nav CTA or the magenta buy buttons.
   Rendered only by /assets/promo-bar.js — the element stays display:none until
   the script decides to show it, so a JS-off visitor never gets a stuck overlay. */

.pbar {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 36px));
  display: none;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  background: rgba(12, 16, 48, 0.95);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--sans);
  text-align: left;
}

/* transform-only entrance: opacity is never animated, so a throttled or paused
   animation (background tab, power saving, headless capture) can't leave an
   invisible but still-clickable bar in the corner. */
.pbar.is-in { display: grid; animation: pbar-in 0.28s ease; }
.pbar[hidden] { display: none !important; }

@keyframes pbar-in {
  from { transform: translateY(6px); }
  to   { transform: none; }
}

.pbar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 6px 12px 14px;
  color: var(--text);
  text-decoration: none;
}
.pbar-link:hover,
.pbar-link:focus-visible { text-decoration: none; }
.pbar-link:hover .pbar-txt strong { color: var(--lime); }

.pbar-kick {
  flex: none;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--lime);
  border-radius: 3px;
  padding: 3px 7px;
}

.pbar-txt { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pbar-txt strong { color: var(--text); font-weight: 700; }

.pbar-go { color: var(--cyan); font-weight: 800; white-space: nowrap; }

.pbar-x {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 18px;
  line-height: 1;
  padding: 0 12px;
  cursor: pointer;
}
.pbar-x:hover { color: var(--text); }

/* Phone: full-width bottom strip, no badge (saves the line for the offer). */
@media (max-width: 560px) {
  .pbar {
    right: 10px;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  .pbar-kick { display: none; }
  .pbar-link { padding: 11px 4px 11px 13px; }
  .pbar-txt { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pbar.is-in { animation: none; }
}

@media print {
  .pbar { display: none !important; }
}
