/* "Related guides" block on each guide page (written by scripts/related-guides.mjs).
   The guides define different colour variables, so each value falls back through the
   names the pages use. Cards echo the guide list on the home page. */
.related-guides {
  --rg-rule: var(--rule, var(--border, #3a3a44));
  --rg-ink: var(--ink, var(--text, inherit));
  --rg-muted: var(--muted, #a9a9b3);
  --rg-accent: var(--cyan, var(--ice, var(--accent, currentColor)));
  --rg-card: var(--surface, var(--card, var(--panel, transparent)));
  margin: 32px 0 24px;
}
.related-guides h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.25;
}
.related-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.related-guides li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--rg-rule);
  border-radius: 12px;
  background: var(--rg-card);
}
.related-guides li:hover { border-color: var(--rg-accent); }
.related-guides a {
  font-weight: 600;
  line-height: 1.3;
  color: var(--rg-accent);
  text-decoration: none;
}
/* Stretch the link over the whole card so it is an easy tap target on a phone. */
.related-guides a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.related-guides a:hover { text-decoration: underline; }
.related-guides .rg-desc {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--rg-muted);
}
