/*
 * blog-single-related.css — Toro Legal Marketing
 * Figma node: 377:2553 (3-card row — we use 2)
 *
 * Sits aligned to the article column (right `1fr` track of the
 * blog-single-layout grid). White surface.
 * Desktop: 2-card row. Mobile: 1-col stack.
 *
 * Card composition:
 *   - 250px cream-bg media header (placeholder icon for now)
 *   - 24px-padded content body: title (Halant 24) + excerpt (Proxima)
 *     + arrow circle in bottom-right
 *   - Whole card is one anchor → expands hit area + handles focus
 */

.blog-single-related {
  /* The article section above has its padding-bottom zeroed out, so
     this section owns the gap between the author bio and the row. */
  padding-block: var(--space-lg) var(--space-section-y-mobile);
  background: var(--color-white);
}

/* Slot the inner content into column 2 of the layout grid so the
   row aligns horizontally with the article column above. */
.blog-single-related__inner {
  /* mobile: spans full width */
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .blog-single-related__inner {
    grid-column: 2 / 3;
  }
}

.blog-single-related__title {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-h2-mobile);             /* 32px Halant */
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--color-navy);
  margin: 0 0 var(--space-lg) 0;
}

.blog-single-related__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ============================================
 * Card
 * ============================================ */

.blog-single-related__card {
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
}

.blog-single-related__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Hover pattern matches services.css: card itself doesn't lift —
   only the arrow circle changes bg + picks up the button shadow. */
@media (hover: hover) {
  .blog-single-related__card:hover .blog-single-related__arrow,
  .blog-single-related__card-link:focus-visible .blog-single-related__arrow {
    background-color: var(--color-grey-200);
    box-shadow: var(--shadow-button-hover);
  }
}

/* Media header */
.blog-single-related__media {
  position: relative;
  height: 250px;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-single-related__media-icon {
  color: var(--color-navy-faint);
  display: flex;
}

.blog-single-related__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content body */
.blog-single-related__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  flex: 1 1 auto;
}

.blog-single-related__card-title {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-2xl);                   /* 24px Halant */
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--color-navy);
  margin: 0;
}

.blog-single-related__excerpt {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy-muted);
  margin: 0;
}

.blog-single-related__arrow {
  /* Hidden on mobile/tablet — the whole card is tappable, so the
     arrow circle is redundant on touch. Shown from 1024px up. */
  display: none;
  align-self: flex-end;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background-color: var(--color-cream);
  color: var(--color-navy);
  transition: background-color 120ms ease, box-shadow 200ms ease;
}

/* ============================================
 * Desktop (≥1024px) — 2-col
 * ============================================ */

@media (min-width: 1024px) {
  .blog-single-related {
    padding-block: var(--space-xl) var(--space-5xl);
  }

  .blog-single-related__title {
    font-size: var(--text-h3);                  /* 40px */
    margin-bottom: var(--space-xl);
  }

  .blog-single-related__row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .blog-single-related__arrow {
    display: inline-flex;
  }
}
