/* GT AFRIK — Blog index: featured story + post grid */

.blog-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  border-radius: 24px;
  border-color: rgba(56, 102, 255, 0.18);
}

.blog-featured:hover,
.blog-featured:focus-within {
  border-color: rgba(56, 102, 255, 0.45);
  transform: none;
}

.blog-featured .img-slot {
  min-height: 380px;
  border-bottom: none;
  border-right: 1px solid var(--line-soft);
}

.blog-featured__body {
  padding: 52px 48px;
  gap: 20px;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.blog-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.blog-featured__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--color-text);
}

.blog-featured__excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-body);
  margin: 0;
}

.blog-featured .link-more {
  font-size: 14px;
}

/* ─────────────────────── post grid ───────────────────────
   An auto-fit grid put six posts into 4 + 2 and left a dead two-column hole
   on the last row — the default-card-grid failure, and it also gave every
   story identical weight, which no journal does.

   Three tiers on a 12-column field instead, descending in weight and each
   with its own shape, so every row fills exactly:

     lead   7 / 5   tall art, largest titles
     split  6 / 6   art left, text right
     brief  6 / 6   no art — rule, category, title, excerpt

   Dropping the art on the tail pair is the point, not a compromise: it is
   what makes the third row read as older, quieter material. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.post--lead-a {
  grid-column: span 7;
}

.post--lead-b {
  grid-column: span 5;
}

.post--split,
.post--brief {
  grid-column: span 6;
}

.post__media {
  height: 190px;
}

/* Balanced against the ~245px body — at 300px the art swamped the headline. */
.post--lead-a .post__media,
.post--lead-b .post__media {
  height: 260px;
}

/* Art left, text right. The media pane stretches to the card, so the two
   halves stay flush however long the excerpt runs. */
.post--split {
  flex-direction: row;
}

.post--split .post__media {
  flex: 0 0 40%;
  height: auto;
  min-height: 100%;
  border-bottom: none;
  border-right: 1px solid var(--line-soft);
}

.post--split .card__body {
  padding: 26px 28px;
}

.post--lead-a .card__title,
.post--lead-b .card__title {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.022em;
}

/* Brief cards carry no art, so a hairline does the work the image did:
   it opens the card and gives the category something to sit against. */
.post--brief .card__body {
  padding: 32px;
  gap: 16px;
}

.post--brief .post__rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.post--brief.card--green .post__rule {
  background: var(--color-running);
}

.post--brief .card__title {
  font-size: 20px;
  line-height: 1.3;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.post__cat {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.post__cat--green {
  color: var(--color-running);
}

.post__excerpt {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-text-body);
  margin: 0;
}

/* Tablet: the 7/5 asymmetry stops reading below ~1000px, so all three tiers
   flatten to an even pair. Split cards go vertical at the same point — a
   span-6 card is then ~410px wide and a 40% art pane only ~165px, too narrow
   to read as art. The tiers still separate, via art size and title scale
   against the artless briefs below; that distinction is editorial, not a
   width problem, so the briefs keep their no-art treatment throughout. */
@media (max-width: 1000px) {
  .post--lead-a,
  .post--lead-b {
    grid-column: span 6;
  }

  .post--lead-a .post__media,
  .post--lead-b .post__media {
    height: 230px;
  }

  .post--split {
    flex-direction: column;
  }

  .post--split .post__media {
    flex: none;
    height: 190px;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 640px) {
  .blog-featured__body {
    padding: 32px 26px;
  }

  .blog-featured .img-slot {
    min-height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }

  .blog-grid > * {
    grid-column: 1 / -1;
  }

  .post--lead-a .post__media,
  .post--lead-b .post__media {
    height: 200px;
  }
}
