/* ============================================================
   home-guides.css — Home: Guides and Answers
   ─────────────────────────────────────────
   PURPOSE : The generated list of learning guides on the home page
             (html-templates/home/guides.generated.html). Both the
             English and Arabic lists are in the markup for crawlers;
             only the one matching the interface language is shown.
   ============================================================ */

html[lang="ar"] .home-guides [data-show-in="en"],
html:not([lang="ar"]) .home-guides [data-show-in="ar"] {
  display: none;
}

.home-guides__lead {
  max-width: 60ch;
  margin: -16px auto 28px;
  text-align: center;
  color: var(--text-soft);
}

.home-guides__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 10px;
}

.home-guides__link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.home-guides__link::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.home-guides__link:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.home-guides__link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.home-guides__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin: 24px 0 0;
}

.home-guides__alt {
  color: var(--accent);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .home-guides__link { transition: none; }
}
