/* ============================================================
   ГосАналитика — Брендинг блог-инфраструктуры (FD301 + страницы постов)
   2026-04-29
   Palette: navy #093551, electric blue #3B82F6, Inter
   Scope: только Tilda Поток (feed) + страница отдельного поста
   ============================================================ */

/* ========== ОБЩИЕ ПЕРЕМЕННЫЕ (через CSS-кастом не работают в Tilda — даём явные значения) ========== */

/* ========== СЕТКА ПОСТОВ (FD301 на странице /blog) ========== */

/* Заголовок секции "Блог ГосАналитики" */
.t-feed .t-section__title,
.t-feed .t-section__descr {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif !important;
  color: #093551 !important;
  letter-spacing: -0.025em !important;
}

.t-feed .t-section__title {
  font-weight: 600 !important;
}

/* Карточка поста (превью в сетке) */
.t-feed__post {
  font-family: 'Inter', sans-serif !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.t-feed__post:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px -8px rgba(9, 53, 81, 0.18) !important;
  border-color: #3B82F6 !important;
}

/* Обложка постa в превью */
.t-feed__post-imgwrapper,
.t-feed__post-img {
  border-radius: 0 !important;
}

/* Заголовок поста в превью */
.t-feed__post-title,
.t-feed__post-title a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  color: #093551 !important;
  letter-spacing: -0.015em !important;
  text-decoration: none !important;
}

.t-feed__post-title a:hover {
  color: #3B82F6 !important;
}

/* Описание поста в превью */
.t-feed__post-descr,
.t-feed__post-descr * {
  font-family: 'Inter', sans-serif !important;
  color: #475569 !important;
  font-weight: 400 !important;
}

/* Дата поста */
.t-feed__post-date,
.t-feed__post-date * {
  font-family: 'Inter', sans-serif !important;
  color: #64748B !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

/* Категория-метка (если используется) */
.t-feed__post-tag,
.t-feed__post-tag a {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #3B82F6 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.t-feed__post-tag a:hover {
  color: #2563EB !important;
}

/* "Ничего не найдено" — пустое состояние */
.t-feed__nothing-found {
  font-family: 'Inter', sans-serif !important;
  color: #64748B !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

/* Кнопка "Показать ещё" */
.t-feed__showmore-btn,
.t-feed__post-pagination a {
  font-family: 'Inter', sans-serif !important;
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background .15s ease !important;
}

.t-feed__showmore-btn:hover,
.t-feed__post-pagination a:hover {
  background: #2563EB !important;
}

/* ========== ФИЛЬТР ПО КАТЕГОРИЯМ (если выведены) ========== */

.t-feed__parts-switch {
  font-family: 'Inter', sans-serif !important;
}

.t-feed__parts-switch__btn {
  font-family: 'Inter', sans-serif !important;
  color: #475569 !important;
  font-weight: 500 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 100px !important;
  padding: 8px 16px !important;
  transition: all .15s ease !important;
}

.t-feed__parts-switch__btn:hover {
  border-color: #3B82F6 !important;
  color: #3B82F6 !important;
}

.t-feed__parts-switch__btn-active,
.t-feed__parts-switch__btn.t-active {
  background: #093551 !important;
  border-color: #093551 !important;
  color: #FFFFFF !important;
}

/* ========== СТРАНИЦА ОТДЕЛЬНОГО ПОСТА (/tpost/...) ========== */

/* Заголовок поста */
.t-post__title,
.t-post .t-section__title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  color: #093551 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.1 !important;
}

/* Дата поста на странице */
.t-post__date,
.t-post__date * {
  font-family: 'Inter', sans-serif !important;
  color: #64748B !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

/* Имя автора */
.t-post__author,
.t-post__author *,
.t-feed__post-author {
  font-family: 'Inter', sans-serif !important;
  color: #093551 !important;
  font-weight: 500 !important;
}

/* Текст поста */
.t-post__content,
.t-post__textwrapper p,
.t-post__textwrapper li,
.t-post__textwrapper blockquote {
  font-family: 'Inter', sans-serif !important;
  color: #0F1724 !important;
  line-height: 1.7 !important;
  font-size: 18px !important;
  font-weight: 400 !important;
}

/* Подзаголовки H2 в посте */
.t-post__textwrapper h2,
.t-post h2 {
  font-family: 'Inter', sans-serif !important;
  color: #093551 !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  margin-top: 1.5em !important;
}

/* Подзаголовки H3 */
.t-post__textwrapper h3,
.t-post h3 {
  font-family: 'Inter', sans-serif !important;
  color: #093551 !important;
  font-weight: 600 !important;
}

/* Цитаты */
.t-post__textwrapper blockquote {
  border-left: 3px solid #3B82F6 !important;
  padding-left: 20px !important;
  background: #F8FAFC !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: normal !important;
  color: #475569 !important;
}

/* Ссылки в тексте */
.t-post__textwrapper a,
.t-post__textwrapper a:link,
.t-post__textwrapper a:visited {
  color: #3B82F6 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

.t-post__textwrapper a:hover {
  color: #2563EB !important;
}

/* Кнопки шеринга — TG/VK/etc */
.t-share {
  font-family: 'Inter', sans-serif !important;
}

.t-share__copy-btn {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}

.t-share__copy-btn:hover {
  background: #2563EB !important;
}

/* Соседние посты внизу (TS108 показывает «другие посты») */
.t-feed__post-popup__next-btn,
.t-feed__post-popup__prev-btn {
  font-family: 'Inter', sans-serif !important;
  color: #093551 !important;
  font-weight: 500 !important;
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1024px) {
  .t-post__textwrapper p,
  .t-post__textwrapper li {
    font-size: 17px !important;
  }
}

@media (max-width: 640px) {
  .t-feed__post {
    border-radius: 8px !important;
  }
  .t-post__textwrapper p,
  .t-post__textwrapper li {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
}
