/* Блог: стаття, стрічка записів, рубрики, хлібні крихти.
   Підключається лише на маршрутах блогу (див. ct_assets у functions.php).
   Токени — з main.css, власних кольорів тут не заводимо. */

/* --- Хлібні крихти --- */
.ct-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13.5px; color: var(--ct-ink-3); margin-bottom: 18px; }
.ct-crumbs a { color: var(--ct-ink-3); }
.ct-crumbs a:hover { color: var(--ct-violet); }
.ct-crumbs span[aria-hidden] { opacity: .5; }
.ct-crumbs b { font-weight: 550; color: var(--ct-ink-2); }

/* --- Стаття --- */
.ct-article { padding: 40px 0 76px; }
.ct-article-in { max-width: 760px; margin: 0 auto; }
.ct-article-h { font-size: clamp(30px, 4vw, 44px); font-weight: 690;
  letter-spacing: -.03em; line-height: 1.12; margin-bottom: 16px; }
.ct-article-lead { font-size: 18.5px; color: var(--ct-ink-2); line-height: 1.6; }

.ct-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 13.5px; color: var(--ct-ink-3); margin-top: 18px;
  padding-bottom: 22px; border-bottom: 1px solid var(--ct-line); }
.ct-meta-cat { display: inline-flex; align-items: center; padding: 4px 11px;
  border-radius: 999px; background: var(--ct-violet-soft);
  color: var(--ct-violet-strong); font-weight: 550; font-size: 12.5px; }
.ct-meta-cat:hover { background: rgba(124, 58, 237, .2); }

/* Текст статті: ширший кегль і повітря, ніж у службових сторінках */
.ct-article .ct-prose { font-size: 17.5px; line-height: 1.75; margin-top: 28px; }
.ct-article .ct-prose > * + * { margin-top: 20px; }
.ct-article .ct-prose h2 { font-size: 26px; margin-top: 44px; line-height: 1.25; }
.ct-article .ct-prose h3 { font-size: 20px; margin-top: 32px; }
.ct-article .ct-prose img { max-width: 100%; height: auto; border-radius: var(--ct-r-sm); }
.ct-article .ct-prose figure { margin-top: 28px; }
.ct-article .ct-prose figcaption { font-size: 13.5px; color: var(--ct-ink-3); margin-top: 8px; }
.ct-article .ct-prose ul,
.ct-article .ct-prose ol { padding-left: 22px; }
.ct-article .ct-prose li + li { margin-top: 8px; }
.ct-article .ct-prose blockquote { margin-top: 28px; padding: 16px 20px;
  border-left: 3px solid var(--ct-violet); background: var(--ct-violet-soft);
  border-radius: 0 var(--ct-r-sm) var(--ct-r-sm) 0; color: var(--ct-ink); }
.ct-article .ct-prose code { font-size: .92em; padding: 2px 6px;
  border-radius: var(--ct-r-xs); background: rgba(27, 26, 43, .06); }
.ct-article .ct-prose pre { padding: 16px; overflow-x: auto;
  border-radius: var(--ct-r-sm); background: var(--ct-dark); color: #E8E7F5; }
.ct-article .ct-prose pre code { background: none; padding: 0; }
.ct-article .ct-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ct-article .ct-prose th,
.ct-article .ct-prose td { padding: 10px 12px; border-bottom: 1px solid var(--ct-line); text-align: left; }
.ct-article .ct-prose th { font-weight: 600; color: var(--ct-ink); }

/* --- Заклик у кінці статті --- */
.ct-cta-band { margin-top: 52px; padding: 26px; border-radius: var(--ct-r);
  background: var(--ct-glass-strong); backdrop-filter: var(--ct-blur);
  -webkit-backdrop-filter: var(--ct-blur);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--ct-shadow); }
.ct-cta-band h2 { font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.ct-cta-band p { margin-top: 8px; color: var(--ct-ink-2); font-size: 15.5px; }
.ct-cta-band .ct-btn { margin-top: 18px; }

/* --- Схожі матеріали --- */
.ct-related { margin-top: 52px; }
.ct-related h2 { font-size: 20px; font-weight: 650; margin-bottom: 18px; }

/* --- Стрічка записів --- */
.ct-blog { padding: 46px 0 76px; }
.ct-blog-head { max-width: 720px; margin-bottom: 30px; }
.ct-blog-h { font-size: clamp(28px, 3.6vw, 40px); font-weight: 680;
  letter-spacing: -.025em; margin-bottom: 14px; }
.ct-blog-lead { font-size: 17px; color: var(--ct-ink-2); line-height: 1.6; }

.ct-cats { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.ct-cats a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  color: var(--ct-ink-2); background: var(--ct-glass);
  border: 1px solid rgba(255, 255, 255, .6); }
.ct-cats a:hover { color: var(--ct-violet-strong); }
.ct-cats a.is-on { background: var(--ct-violet); color: #fff; border-color: transparent; }

.ct-posts { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-post { display: flex; flex-direction: column; padding: 24px;
  border-radius: var(--ct-r); background: var(--ct-glass-strong);
  backdrop-filter: var(--ct-blur); -webkit-backdrop-filter: var(--ct-blur);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--ct-shadow);
  transition: transform .18s ease, box-shadow .18s ease; }
.ct-post:hover { transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(24, 22, 45, .05), 0 18px 44px rgba(24, 22, 45, .12); }
.ct-post-h { font-size: 19.5px; font-weight: 640; letter-spacing: -.015em; line-height: 1.3; }
.ct-post-h a { color: var(--ct-ink); }
.ct-post-h a:hover { color: var(--ct-violet-strong); }
.ct-post-ex { margin-top: 10px; font-size: 15px; color: var(--ct-ink-2); line-height: 1.6; }
.ct-post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ct-line);
  font-size: 13px; color: var(--ct-ink-3); }

/* --- Сторінковий навігатор --- */
.ct-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.ct-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--ct-r-xs);
  background: var(--ct-glass); border: 1px solid rgba(255, 255, 255, .6);
  color: var(--ct-ink-2); font-size: 14.5px; }
.ct-pager .page-numbers:hover { color: var(--ct-violet-strong); }
.ct-pager .page-numbers.current { background: var(--ct-violet); color: #fff; border-color: transparent; }

.ct-empty { padding: 40px 0; color: var(--ct-ink-2); font-size: 16.5px; }

@media (max-width: 760px) {
  .ct-posts { grid-template-columns: 1fr; }
  .ct-article { padding: 26px 0 56px; }
  .ct-article .ct-prose { font-size: 16.8px; }
}
/* Обкладинка в картці стрічки. Винесена за падінг картки, тому від'ємні поля. */
.ct-post-thumb { display: block; margin: -24px -24px 18px; border-radius: var(--ct-r) var(--ct-r) 0 0; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--ct-glass); }
.ct-post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-post:hover .ct-post-thumb img { transform: scale(1.02); }
.ct-post-thumb img { transition: transform .25s ease; }
