/* MKundali /kp-astrology-software/ page.
 *
 * Builds on features.css (hero, section nav, cards, chips, FAQ, CTA). Only the
 * KP-specific pieces live here. Every colour comes from the shared theme tokens in
 * public.css (var(--pub-*)): no hex, rgb(), hsl() or named colours, so all five themes
 * (dark, light, paper, minimalist, minimalist-green) apply automatically.
 */

/* Workspace icon next to the kicker (inline Lucide SVG, drawn in currentColor) */
.kpl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kpl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--pub-emerald-dark);
  background: var(--pub-emerald-soft);
  border: 1px solid var(--pub-border);
}

.kpl-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Overview: seven linked tiles */
.kpl-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.kpl-overview li {
  min-width: 0;
}

.kpl-overview a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: var(--pub-muted);
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-top: 3px solid var(--pub-gold);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.kpl-overview a strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--pub-text);
}

.kpl-overview a:hover,
.kpl-overview a:focus-visible {
  border-color: var(--pub-gold);
}

.kpl-overview a:focus-visible {
  outline: 2px solid var(--pub-gold);
  outline-offset: 2px;
}

.kpl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pub-on-accent);
  background: var(--pub-emerald);
  border-radius: 50%;
}

.kpl-overview-note,
.kpl-why-note,
.kpl-block-note {
  max-width: 46em;
  margin: 22px auto 0;
}

/* Four-Fold / Six-Fold significator levels */
.kpl-fold-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: 12px 0 14px;
}

.kpl-fold {
  min-width: 0;
  padding: 14px 16px;
  background: var(--pub-bg);
  border: 1px solid var(--pub-border);
  border-radius: 12px;
}

.kpl-fold h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--pub-text);
}

.kpl-levels {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kpl-levels li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kpl-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pub-on-accent);
  background: var(--pub-emerald);
  border-radius: 6px;
}

/* Highlighted tools (Cusp Details, Moon/Ascendant timeline) */
.kpl-feature {
  border-top: 3px solid var(--pub-gold);
}

.kpl-label {
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pub-emerald-dark);
}

.kpl-pairs {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

/* Why section */
.kpl-why {
  justify-content: center;
  max-width: 56rem;
  margin: 0 auto 18px;
}

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

  .kpl-overview a:hover {
    box-shadow: 0 8px 20px var(--pub-gold-soft);
  }
}
