/* Sunday Roast related-content panel
 * Renders below page content as a "next reads" surface, populated by
 * seo/manifest.json injectRelatedLinks config. Used by both:
 *   - WordPress mu-plugin (injectRelatedContentLinks PHP filter)
 *   - Static-page deploy renderer (syncStaticRelatedLinks JS step)
 * Both surfaces emit identical HTML; this stylesheet themes both.
 */

.sr-related-content {
  width: min(1180px, calc(100% - 40px));
  margin: 3rem auto;
  padding: 0;
  background: transparent;
  font-family: inherit;
  color: #3a3633;
  box-sizing: border-box;
}

.sr-related-content__inner {
  width: 100%;
}

.sr-related-content__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a3a17;
}

.sr-related-content__intro {
  margin: 0 0 1.25rem;
  color: #5c5650;
  font-size: 0.97rem;
  line-height: 1.5;
}

.sr-related-content__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sr-related-content__item {
  margin: 0;
  padding: 0;
}

.sr-related-content__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #ece6d8;
  border-radius: 6px;
  color: #3a3633;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sr-related-content__link:hover,
.sr-related-content__link:focus {
  border-color: #c89863;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(122, 58, 23, 0.22);
  text-decoration: none;
  color: #3a3633;
}

.sr-related-content__link:focus-visible {
  outline: 2px solid #7a3a17;
  outline-offset: 2px;
}

.sr-related-content__thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: #ece6d8;
}

.sr-related-content__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sr-related-content__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a3a17;
  margin: 0 0 0.25rem;
}

.sr-related-content__link-text {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #3a3633;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.sr-related-content__description {
  display: block;
  font-size: 0.92rem;
  color: #5c5650;
  line-height: 1.45;
}

.sr-related-content__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a3a17;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.15s ease;
  width: 1.5rem;
  flex-shrink: 0;
}

.sr-related-content__link:hover .sr-related-content__arrow,
.sr-related-content__link:focus .sr-related-content__arrow {
  transform: translateX(3px);
}

@media (max-width: 540px) {
  .sr-related-content {
    margin: 2rem auto;
  }
  .sr-related-content__link {
    grid-template-columns: 64px 1fr auto;
    padding: 0.7rem 0.75rem;
    gap: 0.7rem;
  }
  .sr-related-content__thumb {
    width: 64px;
    height: 48px;
  }
  .sr-related-content__link-text {
    font-size: 0.95rem;
  }
  .sr-related-content__description {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-related-content__link,
  .sr-related-content__arrow {
    transition: none;
  }
  .sr-related-content__link:hover,
  .sr-related-content__link:focus {
    transform: none;
  }
  .sr-related-content__link:hover .sr-related-content__arrow,
  .sr-related-content__link:focus .sr-related-content__arrow {
    transform: none;
  }
}
