/* Верхняя полоса сайта — анонс, новость или реклама (Core\AiPromo, слот SLOT_TOP; правится в
   /admin/ai-promo?slot=top). Разметку печатает app/Views/public/_promo_strip.php, на каждую
   публичную страницу её подмешивает Core\View::render().
   Токены темы (--bg2, --text…) берутся со страницы; значения после запятой — запасные для
   самостоятельных страниц, где токена нет.
   ⚠️ Имена НЕЙТРАЛЬНЫЕ (.hpn-*): блокировщики прячут блок по имени контейнера. */
  /* ── Верхняя полоса над строкой статуса (Core\AiPromo, слот SLOT_TOP, HTML или
   Markdown из /admin/ai-promo?slot=top). Фон — на всю ширину окна, содержимое — по
   колонке контейнера (1280 минус поля по 24). Высота НЕ фиксирована: анонс в строку
   даёт ~46px, баннер 1232×90 — свою высоту; картинка сжимается вместе с колонкой.
   Цвет — от подписи: анонс золотой, новость зелёная, реклама нейтральная (k-*),
   токены --hpt-* свои у каждой темы.
   ⚠️ Имена НЕЙТРАЛЬНЫЕ (.hpn-*), как у полос 1232×90: блокировщики прячут блок по
   имени контейнера. Подпись при этом печатается всегда — маркировка рекламы обещана
   на /about, поэтому «без подписи» среди вариантов нет. */
.hpn-top { position:relative; z-index:2; width:100%; border-bottom:1px solid var(--hpt-line); background:var(--hpt-bg); color:var(--text,#E6EAF2); font-size:13.5px; line-height:1.5; }
.hpn-top-in { max-width:1280px; margin:0 auto; padding:9px 24px; min-height:46px; display:flex; align-items:center; gap:14px; }
.hpn-top-tag { flex:none; font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,monospace); font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--hpt-ink); border:1px solid var(--hpt-line2); border-radius:999px; padding:2px 9px; background:var(--hpt-chip); }
.hpn-top-body { flex:1; min-width:0; overflow-wrap:anywhere; }
.hpn-top-body.dh-md p, .hpn-top-body p { margin:0; }
.hpn-top-body .md-h1, .hpn-top-body .md-h2, .hpn-top-body .md-h3, .hpn-top-body .md-h4 { font-size:1em; margin:0; display:inline; }
.hpn-top-body ul, .hpn-top-body ol { margin:0; }
.hpn-top-body a { color:var(--hpt-ink); font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.hpn-top-body b, .hpn-top-body strong { color:var(--text,#E6EAF2); font-weight:700; }
.hpn-top-body img { display:block; max-width:100%; height:auto; border-radius:8px; }
.hpn-top-body .hpn-btn { display:inline-flex; align-items:center; gap:6px; margin-left:12px; padding:5px 12px; border-radius:7px; background:var(--hpt-ink); color:var(--hpt-on); text-decoration:none; font-size:12.5px; font-weight:700; white-space:nowrap; }
.hpn-top-x { flex:none; width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:7px; background:transparent; color:var(--text3,#7C879B); font-size:18px; line-height:1; cursor:pointer; }
.hpn-top-x:hover, .hpn-top-x:focus-visible { color:var(--text,#E6EAF2); background:var(--hpt-chip); }
/* Баннер без текста (картинка, код сети): подпись и крестик строкой сверху, баннер по центру. */
.hpn-top.is-media .hpn-top-in { padding-top:10px; padding-bottom:10px; flex-direction:column; align-items:stretch; gap:6px; }
.hpn-top.is-media .hpn-top-head { display:flex; align-items:center; justify-content:space-between; }
.hpn-top.is-media .hpn-top-body { display:flex; justify-content:center; }

.hpn-top             { --hpt-bg:linear-gradient(90deg,rgba(245,179,1,.13),rgba(245,179,1,.05) 50%,rgba(245,179,1,.13)); --hpt-line:rgba(245,179,1,.24); --hpt-line2:rgba(245,179,1,.45); --hpt-chip:rgba(245,179,1,.10); --hpt-ink:#F5B301; --hpt-on:#0B0E14; }
.hpn-top.k-news      { --hpt-bg:linear-gradient(90deg,rgba(53,208,138,.12),rgba(53,208,138,.04) 50%,rgba(53,208,138,.12)); --hpt-line:rgba(53,208,138,.22); --hpt-line2:rgba(53,208,138,.45); --hpt-chip:rgba(53,208,138,.10); --hpt-ink:#35D08A; --hpt-on:#0B0E14; }
.hpn-top.k-sponsored { --hpt-bg:var(--bg2,#121722); --hpt-line:var(--border2,#2A3347); --hpt-line2:var(--border2,#2A3347); --hpt-chip:var(--bg3,#161C28); --hpt-ink:var(--text2,#A9B3C6); --hpt-on:var(--bg,#0B0E14); }
body.light-theme .hpn-top,             html.light-theme .hpn-top             { --hpt-bg:linear-gradient(90deg,rgba(154,103,0,.11),rgba(154,103,0,.04) 50%,rgba(154,103,0,.11)); --hpt-line:rgba(154,103,0,.22); --hpt-line2:rgba(154,103,0,.40); --hpt-chip:rgba(154,103,0,.08); --hpt-ink:#7A5200; --hpt-on:#fff; }
body.light-theme .hpn-top.k-news,      html.light-theme .hpn-top.k-news      { --hpt-bg:linear-gradient(90deg,rgba(4,120,87,.10),rgba(4,120,87,.03) 50%,rgba(4,120,87,.10)); --hpt-line:rgba(4,120,87,.22); --hpt-line2:rgba(4,120,87,.40); --hpt-chip:rgba(4,120,87,.07); --hpt-ink:#04593F; --hpt-on:#fff; }
body.light-theme .hpn-top.k-sponsored, html.light-theme .hpn-top.k-sponsored { --hpt-bg:var(--bg2,#121722); --hpt-line:var(--border2,#2A3347); --hpt-line2:var(--border2,#2A3347); --hpt-chip:var(--bg3,#161C28); --hpt-ink:var(--text2,#A9B3C6); --hpt-on:#fff; }
@media(max-width:700px){
  .hpn-top-in { position:relative; flex-wrap:wrap; gap:6px 10px; padding:10px 16px; }
  .hpn-top-body { flex-basis:100%; order:3; }
  .hpn-top-x { position:absolute; top:6px; right:8px; }
  .hpn-top.is-media .hpn-top-x { position:static; }
  .hpn-top-body .hpn-btn { display:flex; width:max-content; margin:8px 0 0; }   /* своей строкой: в строке текста кнопка раздвигала межстрочный интервал */
}
