/* =============================================================================
   BLOG — index, tag archives, single post.
   Source template (RECON 8): blog_hero + blog_main + blog_sidebar.
   ============================================================================= */

/* ---------- hero ---------- */
.th-post-hero,
.th-blog-hero {
  background: #000;
  color: #fff;
  padding: 36px 0;
}

.th-post-hero__kicker,
.th-blog-hero__kicker {
  margin: 0 0 8px;
  font-size: var(--th-fs-xs);
  font-weight: var(--th-fw-bold);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--th-footer-heading);
}
.th-post-hero__kicker a { color: inherit; }

.th-post-hero__title,
.th-blog-hero__title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: var(--th-fw-bold);
  color: #fff;
  margin: 0;
  max-width: 900px;
}

.th-post-hero__meta,
.th-blog-hero__sub {
  margin: 10px 0 0;
  font-size: var(--th-fs-sm);
  color: var(--th-footer-heading);
}

/* ---------- layout ---------- */
.th-post__grid,
.th-blog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding-block: 32px 48px;   /* NOT the shorthand — see .th-collection */
  align-items: start;
}

.th-post__feature { margin: 0 0 24px; }
.th-post__feature img { width: 100%; height: auto; display: block; }

/* ---------- prose ---------- */
.th-post__body .th-prose { max-width: 760px; }
.th-post__body .th-prose h2 { font-size: 2.4rem; line-height: 1.25; margin: 32px 0 12px; }
.th-post__body .th-prose h3 { font-size: 2rem; line-height: 1.3; margin: 26px 0 10px; }
.th-post__body .th-prose p { font-size: var(--th-fs-base); line-height: 1.7; margin: 0 0 1.1em; }
.th-post__body .th-prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.th-post__body .th-prose li { font-size: var(--th-fs-base); line-height: 1.7; margin-bottom: .4em; }
.th-post__body .th-prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--th-btn-bg);
}
.th-post__body .th-prose blockquote p { margin: 0; font-style: italic; }
.th-post__body .th-prose a { color: var(--th-btn-bg); text-decoration: underline; }

/* ---------- tags ---------- */
.th-post__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--th-border);
}
.th-post__tags-label {
  font-size: var(--th-fs-xs);
  font-weight: var(--th-fw-bold);
  text-transform: uppercase;
  color: var(--th-muted);
  margin-right: 4px;
}

.th-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--th-badge-bg);
  color: var(--th-badge-label);
  font-size: var(--th-fs-xs);
  font-weight: var(--th-fw-semi);
  line-height: 1.2;
}
.th-tag:hover { background: var(--th-btn-bg); color: #fff; text-decoration: none; }

/* ---------- sidebar ---------- */
.th-blog-sidebar { position: sticky; top: calc(var(--th-header-h) + 16px); display: grid; gap: 28px; }

.th-blog-sidebar__title {
  font-size: var(--th-fs-base);
  font-weight: var(--th-fw-bold);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--th-border);
}

.th-blog-sidebar__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.th-blog-sidebar__recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.th-blog-sidebar__recent a { font-size: var(--th-fs-sm); line-height: 1.4; }
.th-blog-sidebar__recent a:hover { color: var(--th-btn-bg); }

/* ---------- post cards ---------- */
.th-postlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.th-postlist--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.th-postcard { display: flex; flex-direction: column; gap: 10px; }
.th-postcard__media img { width: 100%; height: auto; display: block; }
.th-postcard__body { display: flex; flex-direction: column; gap: 6px; }

.th-postcard__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: var(--th-fw-bold);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--th-btn-bg);
}

.th-postcard__title { margin: 0; font-size: var(--th-fs-base); line-height: 1.3; font-weight: var(--th-fw-bold); }
.th-postcard__title a:hover { color: var(--th-btn-bg); text-decoration: none; }

.th-postcard__excerpt { margin: 0; font-size: var(--th-fs-sm); line-height: 1.5; color: var(--th-text); }
.th-postcard__meta { margin: 0; font-size: var(--th-fs-xs); color: var(--th-muted); }

.th-post__related { padding: 8px 0 48px; border-top: 1px solid var(--th-border); }

/* ---------- pagination ---------- */
.th-blog .navigation.pagination { margin-top: 36px; }
.th-blog .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.th-blog .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--th-border);
  font-size: var(--th-fs-sm);
}
.th-blog .page-numbers.current { background: var(--th-btn-bg); border-color: var(--th-btn-bg); color: #fff; }
.th-blog .page-numbers:hover { text-decoration: none; border-color: var(--th-btn-bg); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .th-post .th-post__grid,
  .th-blog .th-blog__grid { grid-template-columns: 1fr; gap: 28px; }
  .th-blog-sidebar { position: static; }
  .th-postlist--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .th-postlist,
  .th-postlist--related { grid-template-columns: 1fr; gap: 22px; }
  .th-post-hero__title,
  .th-blog-hero__title { font-size: 2.4rem; }
}
