/* Car Show HQ — blog archive + single-post chrome
   (single-post body typography comes from the article block CSS) */

/* ---------- Archive hero band ---------- */
body.cshq .cshq-bloghero { position: relative; background: var(--cshq-ink-900); overflow: hidden; }
body.cshq .cshq-bloghero__inner { padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
body.cshq .cshq-bloghero .cshq-eyebrow { color: var(--cshq-on-navy-eyebrow); }
body.cshq .cshq-bloghero__h1 {
  margin: 12px 0 12px; font-size: 44px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.08; color: #fff; max-width: 22ch;
}
body.cshq .cshq-bloghero__dek { margin: 0; font-size: 18px; line-height: 1.6; color: var(--cshq-on-navy-body); max-width: 58ch; }

/* ---------- Archive grid ---------- */
body.cshq .cshq-blogindex { padding: 56px 0 84px; }
body.cshq .cshq-blogindex__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px;
}
body.cshq .cshq-blogindex__grid > * { min-width: 0; }

/* ---------- Post card ---------- */
body.cshq .cshq-blogcard {
  background: #fff; border: 1px solid var(--cshq-card-border); border-radius: 18px;
  overflow: hidden; box-shadow: var(--cshq-sh-card);
  transition: box-shadow .18s ease, transform .18s ease;
}
body.cshq .cshq-blogcard:hover { box-shadow: var(--cshq-sh-screen); transform: translateY(-2px); }
body.cshq .cshq-blogcard__link { display: block; color: inherit; }
body.cshq .cshq-blogcard__link:hover { color: inherit; }
body.cshq .cshq-blogcard__media { aspect-ratio: 16 / 9; background: var(--cshq-panel-bg); }
body.cshq .cshq-blogcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.cshq .cshq-blogcard__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cshq-ink-900) 0%, #1d3461 60%, var(--cshq-brand) 130%);
}
body.cshq .cshq-blogcard__placeholder span {
  font-family: var(--cshq-font-mono); letter-spacing: .3em; font-size: 15px;
  color: rgba(255, 255, 255, .8);
}
body.cshq .cshq-blogcard__body { padding: 20px 22px 22px; }
body.cshq .cshq-blogcard__cat {
  display: inline-block; font-family: var(--cshq-font-mono); text-transform: uppercase;
  letter-spacing: .14em; font-size: 11px; font-weight: 500; color: var(--cshq-brand); margin: 0 0 8px;
}
body.cshq .cshq-blogcard__title { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--cshq-ink-900); }
body.cshq .cshq-blogcard:hover .cshq-blogcard__title { color: var(--cshq-brand); }
body.cshq .cshq-blogcard__excerpt {
  margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--cshq-ink-600);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.cshq .cshq-blogcard__meta { margin: 0; font-size: 13.5px; color: var(--cshq-fine-1); }

/* Feature card: newest post spans the row as image-beside-text */
body.cshq .cshq-blogcard--feature { grid-column: 1 / -1; }
body.cshq .cshq-blogcard--feature .cshq-blogcard__link { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
body.cshq .cshq-blogcard--feature .cshq-blogcard__media { aspect-ratio: auto; min-height: 320px; height: 100%; }
body.cshq .cshq-blogcard--feature .cshq-blogcard__body {
  padding: 34px 36px; display: flex; flex-direction: column; justify-content: center;
}
body.cshq .cshq-blogcard--feature .cshq-blogcard__title { font-size: 28px; line-height: 1.2; }
body.cshq .cshq-blogcard--feature .cshq-blogcard__excerpt { -webkit-line-clamp: 4; font-size: 16px; }

/* ---------- Empty state ---------- */
body.cshq .cshq-blogempty {
  margin-top: 28px; background: #fff; border: 1px solid var(--cshq-card-border); border-radius: 18px;
  padding: 56px 32px; text-align: center;
}
body.cshq .cshq-blogempty h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: var(--cshq-ink-900); }
body.cshq .cshq-blogempty p { margin: 0 0 20px; font-size: 16px; color: var(--cshq-ink-600); }

/* ---------- Pagination ---------- */
body.cshq .cshq-blogpager { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
body.cshq .cshq-blogpager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 14px; border: 1px solid var(--cshq-card-border); border-radius: 10px;
  background: #fff; font-size: 15px; font-weight: 600; color: var(--cshq-ink-900);
}
body.cshq .cshq-blogpager .page-numbers:hover { border-color: var(--cshq-brand); color: var(--cshq-brand); }
body.cshq .cshq-blogpager .page-numbers.current { background: var(--cshq-brand); border-color: var(--cshq-brand); color: #fff; }
body.cshq .cshq-blogpager .page-numbers.dots { border: none; background: none; }

/* ---------- Single post ---------- */
/* The parent forces a 325px/1fr sidebar grid on .single-post with !important
   (style.css ~3495); our posts are full-bleed sections, so match its force. */
body.cshq.single-post .content-sidebar-wrap {
  display: block !important; grid-template-columns: none !important;
  width: 100% !important; max-width: none !important;
  padding: 0 !important; margin: 0 !important; gap: 0 !important;
  flex-direction: unset !important;
}
body.cshq.single-post main.content { width: 100%; max-width: none; float: none; }
body.cshq.single-post aside.sidebar { display: none !important; }

body.cshq .cshq-post__band-inner { padding-top: 48px; padding-bottom: 36px; }
body.cshq .cshq-post__cat { display: inline-block; margin-bottom: 2px; }
body.cshq .cshq-post__figure { margin: 0 0 36px; }
body.cshq .cshq-post__figure img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid var(--cshq-card-border);
}
body.cshq .cshq-post__grid { padding-top: 44px; padding-bottom: 72px; }

/* Footer of a post: back link + related + CTA */
body.cshq .cshq-post__backrow { margin: 40px 0 0; padding-top: 26px; border-top: 1px solid var(--cshq-card-border); }
body.cshq .cshq-post__backrow a { font-size: 15px; font-weight: 600; }

body.cshq .cshq-postrelated { background: var(--cshq-panel-bg); padding: 56px 0 72px; }
body.cshq .cshq-postrelated__h2 { margin: 0 0 24px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: var(--cshq-ink-900); }
body.cshq .cshq-postrelated__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
body.cshq .cshq-postrelated__grid > * { min-width: 0; }
body.cshq .cshq-postrelated .cshq-blogcard__title { font-size: 17px; }

/* No-TOC variant: single centered column */
body.cshq .cshq-post__grid--full { grid-template-columns: 1fr; }
body.cshq .cshq-post__grid--full .cshq-article__body-copy { margin: 0 auto; }

/* Inline generated images inside post bodies */
body.cshq .cshq-article__body-copy .cshq-post__inner-img { margin: 26px 0; }
body.cshq .cshq-article__body-copy .cshq-post__inner-img img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid var(--cshq-card-border);
}

/* End-of-post CTA strip */
body.cshq .cshq-post__cta { padding: 64px 0 72px; text-align: center; }
body.cshq .cshq-post__cta-h2 { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.015em; color: #fff; }
body.cshq .cshq-post__cta-sub { margin: 0 auto 24px; font-size: 17px; line-height: 1.6; color: var(--cshq-on-navy-body); max-width: 52ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  body.cshq .cshq-blogindex__grid,
  body.cshq .cshq-postrelated__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body.cshq .cshq-bloghero__h1 { font-size: 34px; }
  body.cshq .cshq-blogcard--feature .cshq-blogcard__link { grid-template-columns: 1fr; }
  body.cshq .cshq-blogcard--feature .cshq-blogcard__media { aspect-ratio: 16 / 9; min-height: 0; }
  body.cshq .cshq-blogcard--feature .cshq-blogcard__body { padding: 22px 24px; }
  body.cshq .cshq-blogcard--feature .cshq-blogcard__title { font-size: 22px; }
}
@media (max-width: 640px) {
  body.cshq .cshq-blogindex__grid,
  body.cshq .cshq-postrelated__grid { grid-template-columns: 1fr; }
  body.cshq .cshq-blogindex { padding: 40px 0 64px; }
}
