/* News / offer banner (slim card at the top of Home and Cars). Self-contained; uses the theme tokens so dark mode just works. */
.promo-wrap { padding-top: 88px; }            /* clears the fixed header (74px) + a gap */
.promo-wrap + .hero:not(.has-photo) { padding-top: 56px; }  /* the banner now uses the space the hero reserved under the header */
.promo-wrap + .hero.has-photo { margin-top: 16px; }
.promo-wrap + section { padding-top: 36px; border-top: 0; }
.is-app .promo-wrap { padding-top: calc(66px + env(safe-area-inset-top)); }
.is-app .promo-wrap + .hero.has-photo { margin-top: 10px; }
.is-app .promo-wrap + section { padding-top: 16px; }
.promo {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 44px 10px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  animation: promo-in .35s ease both;
}
@keyframes promo-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo { animation: none; } }
.promo-img {
  flex: none; width: 52px; height: 52px; border-radius: 11px;
  background: var(--bg-card) center / cover no-repeat;
}
.promo-body { min-width: 0; flex: 1; }
.promo-tag {
  display: inline-block; margin-bottom: 3px;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
}
.promo-tag.is-offer { color: #9a7b4f; }
.promo-title { font-size: 14.5px; font-weight: 700; line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
.promo-text {
  margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.promo-cta {
  flex: none; align-self: center;
  padding: 8px 14px; border-radius: 99px;
  background: var(--text); color: var(--bg);
  font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.promo-x {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: transparent; color: var(--text-dim);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.promo-x:hover { background: var(--border); color: var(--text); }
@media (max-width: 560px) {
  .promo { flex-wrap: wrap; padding-right: 40px; }
  .promo-body { flex-basis: calc(100% - 70px); }
  .promo-text { -webkit-line-clamp: 1; }
  .promo-cta { margin-left: 66px; margin-top: -4px; padding: 6px 12px; font-size: 12px; }
}
@media print { .promo-wrap { display: none; } }

/* Pop-up banner */
html.promo-pop-open { overflow: hidden; }
.promo-pop { position: fixed; inset: 0; z-index: 650; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); animation: promo-in .3s ease both; }
.promo-pop-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55); }
.pp-img { aspect-ratio: 16 / 9; background: var(--bg-elevated) center / cover no-repeat; border-radius: 24px 24px 0 0; }
.pp-body { padding: 20px 22px 22px; }
.pp-title { margin: 4px 0 6px; font-size: 1.35rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.pp-text { margin: 0 0 18px; font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); }
.pp-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-skip { border: 0; background: transparent; color: var(--text-dim); font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.pp-x { background: rgba(0, 0, 0, 0.45); color: #fff; z-index: 2; }
.pp-x:hover { background: rgba(0, 0, 0, 0.65); color: #fff; }
@media print { .promo-pop { display: none; } }
