/* MKundali /jaimini-astrology-software/ page.
 *
 * Builds on features.css (hero, section nav, cards, chips, FAQ, CTA). Only the
 * Jaimini-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.
 */

.jml-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.jml-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);
}

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

/* Overview: four workspace components + shared tools */
.jml-split {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.jml-panel {
  min-width: 0;
  padding: 18px;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-top: 3px solid var(--pub-gold);
  border-radius: 12px;
}

.jml-panel-shared {
  border-top-style: dashed;
}

.jml-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pub-text);
}

.jml-overview,
.jml-shared {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jml-overview li,
.jml-shared li {
  min-width: 0;
}

.jml-overview a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--pub-muted);
  background: var(--pub-bg);
  border: 1px solid var(--pub-border);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.jml-overview a strong {
  color: var(--pub-text);
  font-size: 1rem;
}

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

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

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

.jml-shared li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--pub-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px dashed var(--pub-border);
  border-radius: 10px;
}

.jml-shared a {
  color: var(--pub-text);
  text-decoration: none;
}

.jml-shared a:hover,
.jml-shared a:focus-visible {
  text-decoration: underline;
}

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

.jml-where {
  font-weight: 600;
  color: var(--pub-emerald-dark);
}

/* Chara Karaka code table: its own horizontal shell so wide text never widens the page */
.jml-table-shell {
  overflow-x: auto;
  margin: 10px 0 0;
  border: 1px solid var(--pub-border);
  border-radius: 10px;
}

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

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

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

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

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

.jml-feature {
  border-top: 3px solid var(--pub-gold);
}

.jml-steps {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.3em;
}

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

.jml-why {
  justify-content: center;
  max-width: 56rem;
  margin: 0 auto 18px;
}

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