/* Homepage "Popular guides": topic cards in a grid instead of one long column of lists. */
.wp-block-group.hmbd-guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 0;
}
.hmbd-guides .hmbd-guide-card {
  background: var(--ast-global-color-5);
  border: 1px solid var(--ast-global-color-6);
  border-radius: 10px;
  padding: 1.25rem 1.4rem 1.1rem;
  margin: 0;
}
.hmbd-guides .hmbd-guide-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ast-global-color-6);
}
.hmbd-guides .hmbd-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hmbd-guides .hmbd-guide-list li {
  margin: 0;
  border-bottom: 1px solid var(--ast-global-color-4);
}
.hmbd-guides .hmbd-guide-list li:last-child { border-bottom: 0; }
.hmbd-guides .hmbd-guide-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.5rem; /* comfortable tap target */
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--ast-global-color-2);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
}
.hmbd-guides .hmbd-guide-list a::after {
  content: "→";
  color: var(--ast-global-color-0);
  transition: transform 0.15s ease;
}
.hmbd-guides .hmbd-guide-list a:hover,
.hmbd-guides .hmbd-guide-list a:focus-visible { color: var(--ast-global-color-0); }
.hmbd-guides .hmbd-guide-list a:hover::after { transform: translateX(3px); }
