/* marriage-landing.css
 * Marriage, Darakaraka (Jaimini Karaka), and Navamsa (D9) calculator styles.
 * Layered on top of dasha-landing.css + pdf-payment.css + career-landing.css.
 * Palette: Indigo #4F46E5 / Deep Indigo #312e81 / Gold #F59E0B.
 * Mobile-first, WCAG 2.2 AA contrast.
 */

/* ===== Birth-time unknown warning banner (State B) ===== */
.marriage-time-warning {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.15rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  border-radius: 12px;
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.marriage-time-warning strong {
  color: #92400e;
}

.marriage-time-warning a {
  color: #4F46E5;
  font-weight: 600;
  text-decoration: underline;
}

/* ===== Vargottama & Status Badges ===== */
.marriage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.marriage-badge--vargottama {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.marriage-badge--dk {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #818cf8;
}

.marriage-badge--ak {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #4ade80;
}

.marriage-badge--estimate {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* ===== Sub-navigation pills across the 3 sibling calculators ===== */
.marriage-suite-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 760px;
  margin: 0.75rem auto 1.5rem;
  padding: 0 1rem;
}

.marriage-suite-nav__link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease;
}

.marriage-suite-nav__link:hover {
  background: #eef2ff;
  color: #4F46E5;
  border-color: #c7d2fe;
}

.marriage-suite-nav__link--active {
  background: #4F46E5;
  color: #fff;
  border-color: #4F46E5;
}

/* ===== Data tables (Chara Karaka table & D1-vs-D9 table) ===== */
.marriage-table-wrap {
  max-width: 760px;
  margin: 1.5rem auto 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

.marriage-table-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.marriage-table-header h2,
.marriage-table-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  color: #111827;
}

.marriage-table-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.marriage-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.marriage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.marriage-table th {
  background: #f9fafb;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.marriage-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  vertical-align: middle;
}

.marriage-table tr:last-child td {
  border-bottom: none;
}

.marriage-table tr.row-highlight-dk {
  background: #eef2ff;
}

.marriage-table tr.row-highlight-ak {
  background: #f0fdf4;
}

.marriage-table tr.row-highlight-vargottama {
  background: #fffbeb;
}

/* ===== 12-House Navamsa (D9) Grid ===== */
.d9-houses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
}

@media (min-width: 540px) {
  .d9-houses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .d9-houses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.d9-house-cell {
  padding: 0.85rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.d9-house-cell--highlight {
  background: #eef2ff;
  border-color: #a5b4fc;
}

.d9-house-cell__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.d9-house-cell__num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #4F46E5;
}

.d9-house-cell__lord {
  font-size: 0.75rem;
  color: #6b7280;
}

.d9-house-cell__sign {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.d9-house-cell__planets {
  font-size: 0.85rem;
  color: #374151;
}

/* ===== Upapada Lagna step-by-step derivation box ===== */
.ul-derivation-box {
  max-width: 760px;
  margin: 1.5rem auto 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #4F46E5;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
}

.ul-derivation-box h2,
.ul-derivation-box h3 {
  margin-top: 0;
  color: #111827;
}

.ul-steps-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: #374151;
  line-height: 1.65;
}

.ul-steps-list li {
  margin-bottom: 0.4rem;
}
