:root { --promo-h: 0px; }
:root:has(#promo-bar) { --promo-h: 36px; }

/* Faixa fixa no topo: fundo escuro do site, com filete dourado; o menu gruda logo abaixo */
.pb {
  position: sticky; top: 0; z-index: 45;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--promo-h); padding: 0 14px;
  background: linear-gradient(90deg, rgb(var(--background)) 0%, rgb(34 18 72 / 0.96) 50%, rgb(var(--background)) 100%);
  border-bottom: 1px solid rgb(154 107 255 / 0.3);
  color: rgb(255 255 255 / 0.82); font: 600 0.78rem/1 Manrope, sans-serif; white-space: nowrap;
}
.pb__ic { flex: none; width: 15px; height: 15px; color: #c4a8ff; }
.pb__tag { color: #fff; font: 800 0.76rem/1 Manrope, sans-serif; }
.pb__tag::after { content: ""; display: inline-block; width: 3px; height: 3px; margin-left: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.4); vertical-align: middle; }
.pb__txt { overflow: hidden; text-overflow: ellipsis; }
.pb__code {
  display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px;
  border: 1px solid rgb(154 107 255 / 0.55); border-radius: 999px; background: rgb(154 107 255 / 0.16);
  color: #fff; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.pb__code b { color: #fff; font: 800 0.74rem/1 Manrope, sans-serif; letter-spacing: 0.06em; }
.pb__copy { color: rgb(255 255 255 / 0.5); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; }
.pb__code:hover { background: rgb(154 107 255 / 0.28); border-color: rgb(154 107 255 / 0.8); }
.pb__code:active { transform: scale(0.96); }
.pb__code.is-copied { border-color: rgb(52 211 153 / 0.7); background: rgb(52 211 153 / 0.14); }
.pb__code.is-copied .pb__copy { color: rgb(52 211 153); }
.kb-site-header { top: var(--promo-h); }
@media (max-width: 520px) {
  .pb { gap: 8px; padding: 0 10px; font-size: 0.72rem; }
  .pb__tag, .pb__copy { display: none; }
  .pb__txt { max-width: 46vw; }
}
