/* ============================================================
   Avalog blog skin — приведение темы newscrunch/newsblogger
   к фирменному стилю avalog.ru (tokens.css фронта, 2026-06-11)
   primary #047857 · hover #065F46 · fill #059669 · light #ECFDF5
   ink #0F172A · deep #07120D · fonts Manrope/Inter
   ============================================================ */

/* --- Типографика --- */
body, .spnc, p, li, input, textarea, select, button {
  font-family: "Inter", "Manrope", system-ui, -apple-system, sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .widget-title, .spnc-block-title, .site-title {
  font-family: "Manrope", "Inter", system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: #0F172A;
}
body { color: #1E293B; background: #FFFFFF; }

/* --- Ссылки и акценты: всё красное/синее → изумруд --- */
a { color: #047857; }
a:hover, a:focus { color: #065F46; }
.entry-title a, .widget a, .spnc a { color: inherit; }
.entry-title a:hover, .widget a:hover { color: #047857 !important; }

/* --- Кнопки --- */
button, .btn, input[type="submit"], .wp-block-button__link,
.spnc-readmore, .read-more, .more-link {
  background-color: #047857 !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
  border-radius: 10px !important;
}
button:hover, .btn:hover, input[type="submit"]:hover,
.wp-block-button__link:hover, .spnc-readmore:hover, .read-more:hover {
  background-color: #065F46 !important;
  border-color: #065F46 !important;
}

/* --- Шапка: белая, как на avalog.ru --- */
.header-sidebar, .spnc-navbar, .spnc-nav, nav.spnc {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: none !important;
}
.spnc-navbar a, .spnc-nav a, nav.spnc a, .site-title a, .site-description {
  color: #0F172A !important;
}
.spnc-navbar a:hover, .spnc-nav a:hover, nav.spnc a:hover { color: #047857 !important; }

/* --- Категории/бейджи/мета: мятная подложка + изумрудный текст --- */
.cat-links a, .category a, .spnc-cat, .post-categories a,
.tags-links a, .tagcloud a, .wp-block-tag-cloud a {
  background: #ECFDF5 !important;
  color: #047857 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 999px !important;
  padding: 2px 10px !important;
}
.cat-links a:hover, .post-categories a:hover, .tagcloud a:hover {
  background: #D1FAE5 !important; color: #065F46 !important;
}

/* --- Виджеты/заголовки блоков: убрать цветные плашки --- */
.widget-title, .spnc-block-title {
  background: transparent !important;
  color: #0F172A !important;
  border-left: 4px solid #047857;
  padding-left: 10px;
}
.widget-title span, .spnc-block-title span {
  background: transparent !important; color: inherit !important;
}

/* --- Карточки постов --- */
article, .post, .spnc-post-item, .widget {
  background: #FFFFFF;
  border-radius: 14px;
}
.entry-meta, .posted-on, .byline { color: #64748B !important; }
.entry-meta a { color: #64748B !important; }
.entry-meta a:hover { color: #047857 !important; }

/* --- Футер: глубокий emerald-чёрный, как hero/footer сайта --- */
.site-footer, footer.site-footer, .spnc-footer {
  background: #07120D !important;
  color: #E8EDEA !important;
}
.site-footer a { color: #ECFDF5 !important; }
.site-footer a:hover { color: #6EE7B7 !important; }
.site-footer .widget-title { color: #FFFFFF !important; border-left-color: #34D399; }

/* --- Пагинация --- */
.pagination .page-numbers { border-radius: 10px !important; color: #0F172A; }
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: #047857 !important; color: #fff !important; border-color: #047857 !important;
}

/* --- Формы (поиск/подписка/комменты) --- */
input[type="text"], input[type="search"], input[type="email"], textarea {
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
}
input:focus, textarea:focus {
  border-color: #047857 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(4,120,87,.15) !important;
}

/* --- Вычистить агрессивные цвета темы (красные ленты, рамки) --- */
.breaking-news, .spnc-ticker, .trending { background: #ECFDF5 !important; color: #065F46 !important; }
::selection { background: #A7F3D0; color: #04261C; }

/* --- Финальные правки (после визуальной проверки) --- */
/* нижний кредит-бар: глубокий emerald вместо чисто-чёрного */
.site-info { background: #07120D !important; color: #94A3B8 !important; }
.site-info a { color: #ECFDF5 !important; }
/* спрятать переключатель тёмной темы — фирменный стиль только светлый */
.spnc-dark-icon, .spnc-dark-layout { display: none !important; }
/* верхняя полоса (если включена) — белая */
.spnc-topbar, .top-bar, .spnc-wrapper > .topbar { background: #FFFFFF !important; color: #0F172A !important; }
/* кредит темы → копирайт Avalog */
.site-info .copyright-section { font-size: 0; }
.site-info .copyright-section * { display: none; }
.site-info .copyright-section::after {
  content: "© 2026 Avalog — сервис доступной логистики · avalog.ru";
  font-size: 14px; color: #94A3B8;
}
