/* ==========================================================================
   Related reading — trailing block rendered under blog posts and
   investigations.

   Deliberately NOT scoped under .investigation_blog like the rest of the
   editorial CSS: this block appears in three different scopes — plain blog
   posts, the .investigation_blog MDX layout, and the eight full-bleed
   customLayout investigations, each of which owns its own namespace. The
   .related-reading class is specific enough to stand alone.

   Tokens are inlined rather than inherited for the same reason: the three
   hosts do not share a variable scope.
   ========================================================================== */

.related-reading {
  --rr-white: #ffffff;
  --rr-grey: #aab0bc;
  --rr-dim: #7e8696;
  --rr-card: #0c121c;
  --rr-line: rgba(255, 255, 255, 0.1);
  --rr-line-2: rgba(255, 255, 255, 0.06);
  --rr-cta-border: #621832;
  --rr-accent: rgba(147, 37, 75, 0.12);
  --rr-teal-muted: #51becc;
  --rr-pink-soft: #f788c0;

  max-width: 60rem;
  margin: 56px auto 0;
  padding: 0 26px;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.related-reading__head {
  margin: 0 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--rr-line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--rr-pink-soft);
}

.related-reading__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-reading__item {
  margin: 0;
}

.related-reading__link {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rr-line);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--rr-line); /* beat the editorial `a` rule */
  transition: background 0.15s ease, border-color 0.15s ease;
}

.related-reading__link:hover {
  border-color: var(--rr-cta-border);
  background: var(--rr-accent);
}

.related-reading__section {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rr-teal-muted);
  margin-bottom: 8px;
}

.related-reading__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--rr-white);
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .related-reading__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .related-reading {
    padding-left: 20px;
    padding-right: 20px;
  }
}
