/* Related guides block (template-parts/ecr-related-guides.php).
   Card language matches the Journal cards in ecr-editorial.css; tokens are
   local so the block works on any template. */
.ecr-rg {
  --ecr-rg-forest: #2C3E2D;
  --ecr-rg-gold-text: #7f6418;
  --ecr-rg-cream: #F7F3EC;
  --ecr-rg-paper: #fffdf9;
  --ecr-rg-slate: #4A5568;
  --ecr-rg-border: rgba(44, 62, 45, 0.14);
  background: var(--ecr-rg-cream);
  padding: clamp(48px, 7vw, 72px) 16px;
  font-family: 'Manrope', Arial, sans-serif;
  color: var(--ecr-rg-forest);
}
.ecr-rg--plain { background: transparent; }
.ecr-rg--inset { padding-left: 0; padding-right: 0; }
.ecr-rg--inset .ecr-rg__inner { width: min(1100px, 100%); }
.ecr-rg__inner { width: min(1160px, 100%); margin: 0 auto; }
.ecr-rg__head { margin-bottom: 24px; }
.ecr-rg__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ecr-rg-gold-text);
}
.ecr-rg__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ecr-rg-forest);
}
.ecr-rg__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.ecr-rg__grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); max-width: 760px; }
.ecr-rg__grid--3,
.ecr-rg__grid--6 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ecr-rg__card {
  display: flex;
  background: var(--ecr-rg-paper);
  border: 1px solid var(--ecr-rg-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.ecr-rg__card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(35, 49, 40, 0.10); }
.ecr-rg__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.ecr-rg__link:focus-visible { outline: 3px solid var(--ecr-rg-gold-text); outline-offset: 2px; border-radius: 12px; }
.ecr-rg__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ecr-rg-forest);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecr-rg__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecr-rg__media .material-symbols-outlined { font-size: 42px; color: rgba(247, 243, 236, 0.5); }
.ecr-rg__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.ecr-rg__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ecr-rg-gold-text);
}
.ecr-rg__card-title {
  margin: 6px 0 8px;
  font-family: 'Literata', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ecr-rg-forest);
}
.ecr-rg__excerpt {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ecr-rg-slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ecr-rg__meta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ecr-rg-slate);
}
.ecr-rg__meta .material-symbols-outlined { font-size: 16px; }
.ecr-rg__arrow { margin-left: auto; color: var(--ecr-rg-gold-text); transition: transform 0.18s; }
.ecr-rg__card:hover .ecr-rg__arrow { transform: translateX(3px); }
.ecr-rg__more { margin: 22px 0 0; }
.ecr-rg__more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ecr-rg-forest);
  text-decoration: none;
}
.ecr-rg__more a:hover { color: var(--ecr-rg-gold-text); }
.ecr-rg__more .material-symbols-outlined { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  .ecr-rg__card,
  .ecr-rg__arrow { transition: none; }
  .ecr-rg__card:hover { transform: none; }
}
