/* БІП 2026 — розділ «Новини» (плагін bip-news) у дизайн-системі теми: шрифт e-Ukraine, кольори, кнопки й банери як у статтях.
   Розмітку дає плагін, тут лише вигляд; на старій темі файл не підключається. */

.bip-news {
  --news-font: 'e-Ukraine', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --news-navy: #252D55;
  --news-blue: #1C54F3;
  --news-muted: #5C677D;
  --news-line: #E6EAF2;
  --news-soft: #F5F7FC;
  line-height: 1.5;
}
.bip-news.m_bottom { padding-bottom: 72px; }
@media (max-width: 767px) { .bip-news.m_bottom { padding-bottom: 48px; } }

/* заголовки — як H1/H2 статей */
.bip-news h1.news-h1, .bip-news h1.news-single__title { font-weight: 700; letter-spacing: -.01em; line-height: 1.15; font-size: clamp(28px, 4.4vw, 46px) !important; }
.bip-news .news-body h2, .bip-news .news-related__title, .bip-news .news-brief__title { font-weight: 700; }
.bip-news .news-brief__title { text-transform: none; letter-spacing: 0; }

/* блоки: радіуси й фони макета */
.bip-news .news-brief, .bip-news .news-box, .bip-news .news-feedback, .bip-news .news-tg, .bip-news .news-forme-box { border-radius: 22px; }
.bip-news .news-rel-card, .bip-news .news-brief__item { border-radius: 16px; }

/* кнопки: як .btn-main теми — прямокутні 12 px, стрілка → */
.bip-news .news-tg__btn { border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; }
.bip-news .news-feedback__btn { border-radius: 12px; min-height: 44px; border-color: #E1E4E8; }
.bip-news .news-feedback__btn:hover { border-color: #1C54F3; color: #1C54F3; }
.bip-news .news-persona__seg { border-radius: 12px; }

.bip-cta { --bip-blue: #1C54F3; --bip-hl: #8FB0FF; --bip-light: #F5F7FC; }
.bip-cta .bip-cta__btn { border-radius: 12px; min-height: 52px; padding: 0 20px; gap: 10px; background: #1C54F3; font-weight: 700 !important; box-shadow: 0 12px 26px rgba(28, 84, 243, .30); }
.bip-cta .bip-cta__btn:hover, .bip-cta .bip-cta__btn:focus-visible { transform: none; filter: none; background: #1747D6; box-shadow: 0 12px 26px rgba(28, 84, 243, .38); }
.bip-cta .bip-cta__ico { width: auto; height: auto; background: none; color: #FFFFFF; border-radius: 0; transform: rotate(45deg); }
.bip-cta .bip-cta__btn:hover .bip-cta__ico, .bip-cta .bip-cta__btn:focus-visible .bip-cta__ico { transform: rotate(45deg) translate(2px, -2px); }

/* великий банер під новиною — як темна врізка статті */
.bip-cta--main { border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.bip-cta--main::before { right: -60px; top: -70px; bottom: auto; width: 200px; height: 200px; border-radius: 44px; background: none; border: 2px solid rgba(143, 176, 255, .22); transform: rotate(18deg); }
.bip-cta--main::after { display: none; }
.bip-cta--main .bip-cta__text { color: #C9CEE6; font-weight: 400; }
.bip-cta__card { border-radius: 16px; }
.bip-cta__card--promise { background: rgba(255, 255, 255, .06); border-color: rgba(143, 176, 255, .28); }
@container (max-width: 640px) {
  .bip-cta--main { border-radius: 22px; }
  .bip-cta--main .bip-cta__btn { justify-content: center; }
}

/* малий банер у колонці */
.bip-cta--compact { border-radius: 22px; background: #F5F7FC; }
.bip-cta--compact .bip-cta__btn { width: 100%; justify-content: center; }

/* Іконки плагіна були зі шрифту Font Awesome старої теми — у новій темі малюємо їх масками SVG (колір — currentColor). */
.bip-news i[class*="fa-"], .hn-tg__ico i[class*="fa-"] { display: inline-block; width: 1em; height: 1em; font-size: 18px; line-height: 1; background: currentColor; -webkit-mask: var(--bt-ic) center / contain no-repeat; mask: var(--bt-ic) center / contain no-repeat; }
.fa-telegram { --bt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 4.3 18.6 19.8c-.2 1.1-.9 1.4-1.8.9l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.3-8.4c.4-.4-.1-.6-.6-.2L6 13.3 1.1 11.8c-1.1-.3-1.1-1.1.2-1.6L20.5 2.8c.9-.3 1.7.2 1.4 1.5z'/%3E%3C/svg%3E"); }
.fa-facebook-f { --bt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8.5V6.6c0-.9.6-1.1 1-1.1h2.6V1.6H14c-4 0-4.9 3-4.9 4.9v2H6.8v4h2.3v9.9H14v-9.9h3.3l.4-4z'/%3E%3C/svg%3E"); }
.fa-linkedin-in { --bt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9.5h4V21H3zm6.5 0h3.8v1.6h.1c.5-1 1.8-2 3.8-2 4 0 4.8 2.6 4.8 6.1V21h-4v-5.2c0-1.2 0-2.8-1.7-2.8s-2 1.3-2 2.7V21h-4z'/%3E%3C/svg%3E"); }
.fa-viber { --bt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.9.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.fa-link { --bt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7.1l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7.1l1.7-1.7'/%3E%3C/svg%3E"); }
.fa-calendar-plus { --bt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M12 14v6M9 17h6'/%3E%3C/svg%3E"); }
.bip-news .news-tg__ico i, .hn-tg__ico i { font-size: 20px; }
/* кнопка Telegram — основний синій теми (білий на блакитному Telegram не проходить контраст) */
.bip-news .news-tg__btn { background: #1C54F3; }
.bip-news .news-tg__btn:hover { background: #1747D6; }

/* Телефон: ціль для пальця не менше 44px — крихти, мітки тем, заголовки-посилання колонки, посилання в джерелі. */
@media (max-width: 767px) {
  .bip-news .news-crumbs a { display: inline-block; padding: 14px 0; }
  .bip-news a.news-tag { min-height: 44px; display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
  .bip-news .news-side h4 a { display: inline-block; padding: 12px 0; }
  .bip-news .news-src a { display: inline-block; padding: 13px 0; margin: -13px 0; }
}

/* Таблиці новин (site.js загортає в .news-tw[data-bt-tbl]; підказка/кнопки/тінь — theme.css «Таблиці в текстах»):
   комп'ютер — у ширину тексту без прокрутки, телефон — гортання пальцем із закріпленою першою колонкою. */
.bip-news .news-body .news-tw{overflow-x:auto;border:1px solid #E6EAF2;border-radius:16px;background:#FFFFFF}
.bip-news .news-body .news-tw > table{display:table !important;width:100% !important;max-width:none !important;overflow:visible !important;margin:0 !important;border:0 !important;border-radius:0 !important}
@media (min-width: 721px){
  .bip-news .news-body .news-tw > table{min-width:0 !important}
  .bip-news .news-body .news-tw[style*="--tfs"] > table th, .bip-news .news-body .news-tw[style*="--tfs"] > table td{font-size:var(--tfs) !important}
  .bip-news .news-body .news-tw > table.tw-dense th, .bip-news .news-body .news-tw > table.tw-dense td{font-size:var(--tfs,14px) !important;padding:10px 8px !important;overflow-wrap:normal}
}
@media (max-width: 720px){
  .bip-news .news-body .news-tw > table{min-width:calc(var(--cols, 3) * 118px) !important}
  .bip-news .tbl-sx.is-x .news-tw tr > :first-child{position:sticky;left:0;z-index:1;background:#F5F7FC;box-shadow:1px 0 0 #E1E6F0;max-width:40vw}
}
.bip-news .tbl-sx{margin:0 0 22px}
