/* 15.09.2026 — Бюлетин „Цените по квартали във Варна“. Markup-ът се рисува от
   assets/newsletter.js, затова стилът живее тук, не в <style> на страниците (правило 5о).
   Карето стои върху светъл фон (.on-cream): златото като текст е --accent-ink на статия
   със своя версия на агента и --gold-ink навсякъде другаде (5з, 5и). */

.bh-nl-sec { padding: 72px clamp(20px, 4vw, 56px) 0; background: var(--bg-cream-elev); }
.bh-nl-sec:has([data-bh-nl]:empty) { display: none; }

.bh-nl {
  max-width: 680px; margin: 0 auto;
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--cream-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 40px);
}
.bh-nl__eyebrow {
  font-family: var(--font-caption); text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-size: var(--fs-12); color: var(--accent-ink, var(--gold-ink, #7d6a33)); margin: 0 0 12px;
}
.bh-nl__t {
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-28); line-height: 1.2;
  color: var(--ink); margin: 0 0 12px;
}
.bh-nl__p { font-family: var(--font-body); font-size: var(--fs-16); line-height: 1.6; color: var(--ink-2); margin: 0 0 22px; }

.bh-nl__row { display: flex; gap: 10px; flex-wrap: wrap; }
.bh-nl__row .bg-input { flex: 1 1 240px; min-width: 0; }
.bh-nl__row .bg-btn { flex: 0 0 auto; }
@media (max-width: 520px) { .bh-nl__row .bg-btn { flex: 1 1 100%; } }

.bh-nl__c {
  display: flex; gap: 10px; align-items: flex-start; min-height: 44px; margin-top: 14px;
  font-family: var(--font-body); font-size: var(--fs-14); line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.bh-nl__c input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--gold-ink, #7d6a33); cursor: pointer; }
.bh-nl__c a { color: var(--accent-ink, var(--gold-ink, #7d6a33)); text-decoration: underline; }

.bh-nl__ts { margin-top: 10px; min-height: 0; }
.bh-nl__msg { margin: 10px 0 0; font-family: var(--font-body); font-size: var(--fs-14); line-height: 1.5; color: var(--danger-ink); }
.bh-nl__msg:empty { display: none; }

.bh-nl__ok {
  background: var(--success-wash); border-left: 3px solid var(--success-ink); border-radius: var(--radius-md);
  padding: 16px 18px; font-family: var(--font-body); font-size: var(--fs-16); line-height: 1.6; color: var(--ink);
}
.bh-nl__ok strong { overflow-wrap: anywhere; }

/* Капанът за ботове: извън екрана, не display:none (някои ботове пропускат скритите). */
.bh-nl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Плъзгащото се каре: само на компютър (JS проверява и медията), не покрива нищо важно,
   под банера за съгласие по скалата (--z-fab 960 < --z-consent 99999). */
.bh-nl-slide {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-fab, 960);
  width: min(400px, calc(100vw - 48px));
  animation: bh-nl-in .35s var(--ease-out, ease-out) both;
}
.bh-nl-slide .bh-nl { position: relative; padding: 24px 24px 20px; box-shadow: var(--shadow-lg); }
.bh-nl-slide .bh-nl__t { font-size: var(--fs-22, 22px); padding-right: 36px; }
.bh-nl-slide .bh-nl__p { font-size: var(--fs-14); margin-bottom: 16px; }
.bh-nl-slide .bh-nl__row .bg-input { flex-basis: 100%; }
.bh-nl-slide .bh-nl__row .bg-btn { flex: 1 1 100%; }
.bh-nl__x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink-2); border-radius: 50%; cursor: pointer;
}
.bh-nl__x:hover { background: var(--gold-tint-light); color: var(--ink); }
.bh-nl__x:focus-visible { outline: 2px solid var(--gold-ink, #7d6a33); outline-offset: 2px; }
@keyframes bh-nl-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bh-nl-slide { animation: none; } }
