/* MKundali /astrology-systems/ page.
 *
 * Builds on features.css (hero, section nav, cards, FAQ, CTA). Only the
 * directory-specific pieces live here. Every colour comes from the shared theme
 * tokens in public.css (var(--pub-*)): no hex, rgb(), hsl() or named colours.
 */

.as-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .as-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .as-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.as-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.as-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--pub-emerald);
  background: var(--pub-icon-bg);
  border: 1px solid var(--pub-border);
}

.as-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.as-card h3 {
  margin: 0 0 8px;
}

.as-card p {
  flex: 1 1 auto;
  margin: 0 0 14px;
}

.as-card-link {
  font-weight: 600;
  color: var(--pub-emerald-dark);
  text-decoration: none;
}

.as-card-link:hover,
.as-card-link:focus-visible {
  color: var(--pub-gold);
}

.as-card-link:focus-visible {
  outline: 2px solid var(--pub-gold);
  outline-offset: 2px;
}

.as-table-shell {
  overflow-x: auto;
  margin: 10px 0 0;
  border: 1px solid var(--pub-border);
  border-radius: 10px;
}

.as-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.as-table th,
.as-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--pub-muted);
  border-bottom: 1px solid var(--pub-border);
}

.as-table thead th {
  color: var(--pub-text);
  background: var(--pub-bg-alt);
}

.as-table tbody th {
  color: var(--pub-emerald-dark);
  font-weight: 700;
  white-space: nowrap;
}

.as-table tbody tr:last-child th,
.as-table tbody tr:last-child td {
  border-bottom: 0;
}

.as-compare-note {
  max-width: 46em;
  margin: 18px auto 0;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .as-card {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .as-card:hover {
    box-shadow: 0 8px 20px var(--pub-gold-soft);
  }
}
