/* Jyoti — premium printable dharma report (sacred booklet) */

.report-screen {
  max-width: 920px;
  margin: 0 auto;
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.report-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.report-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.report-persist-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(244, 236, 220, 0.95), rgba(255, 253, 249, 0.98));
  border: 1px solid var(--border, #d9cfc0);
  border-radius: var(--radius, 10px);
  box-shadow: var(--shadow-soft, 0 6px 20px rgba(40, 32, 24, 0.06));
}

.report-persist-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.report-persist-copy strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink, #1f2a44);
  margin-bottom: 0.25rem;
}

.report-persist-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted, #5c5348);
}

.report-persist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 1 1 280px;
  min-width: 0;
}

.report-persist-url {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border, #d9cfc0);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink, #1f2a44);
}

.report-persist-status {
  font-size: 0.78rem;
  color: #2f6b4f;
  font-weight: 600;
}

.report-sample-pill {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(184, 146, 42, 0.12);
  border: 1px solid rgba(184, 146, 42, 0.28);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* The printable booklet */
.report-book {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(252, 247, 238, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--text);
}

.report-page {
  padding: 2.75rem 2.5rem 2.4rem;
  position: relative;
}

.report-page + .report-page {
  border-top: 1px solid rgba(184, 146, 42, 0.22);
}

.report-page::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 146, 42, 0.16);
  border-radius: 12px;
  pointer-events: none;
}

/* Cover */
.report-cover {
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 60%),
    linear-gradient(180deg, #fffdf9 0%, #f7f0e4 100%);
}

.report-cover-ornament {
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.45em;
  margin-bottom: 1.1rem;
}

.report-cover-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.75rem;
}

.report-cover-brand span {
  color: var(--gold);
  margin-right: 0.35rem;
}

.report-cover-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--indigo-950);
  margin-bottom: 0.85rem;
}

.report-cover-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.report-cover-person {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.report-cover-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.report-cover-rule {
  width: 88px;
  height: 1px;
  margin: 0 auto 1.4rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.report-cover-legal {
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-faint);
}

/* Editorial prose */
.report-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.65rem;
}

.report-h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--indigo-950);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.report-lead {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 58ch;
}

.report-lead p + p {
  margin-top: 0.85rem;
}

/* Section cards */
.report-sections {
  display: grid;
  gap: 1.25rem;
}

.report-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.45rem 1.35rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.report-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(184, 146, 42, 0.25));
}

.report-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fffdf9;
  background: linear-gradient(135deg, #9a7a22, #c9a227);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.report-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--indigo-950);
  margin-bottom: 0.55rem;
}

.report-card p,
.report-card li {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.report-card p + p {
  margin-top: 0.7rem;
}

.report-subgrid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .report-subgrid {
    grid-template-columns: 1fr 1fr;
  }
}

.report-subcard {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.report-subcard h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--indigo-950);
  margin-bottom: 0.4rem;
}

.report-subcard ul {
  list-style: none;
  padding: 0;
}

.report-subcard li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.35rem;
}

.report-subcard li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--gold);
  font-size: 0.65rem;
}

.ishta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(139, 123, 181, 0.12);
  border: 1px solid rgba(139, 123, 181, 0.28);
  color: var(--indigo-950);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Technical atlas */
.atlas-intro {
  margin-bottom: 1.35rem;
}

.atlas-grid {
  display: grid;
  gap: 1.15rem;
}

.atlas-lagna {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow-soft);
}

.atlas-lagna .svg-wrap {
  max-width: 460px;
  margin: 0.5rem auto 0.75rem;
}

.atlas-lagna .svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.atlas-vargas {
  display: grid;
  gap: 1rem;
}

@media (min-width: 680px) {
  .atlas-vargas {
    grid-template-columns: 1fr 1fr;
  }
}

.atlas-varga-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.atlas-varga-card .svg-wrap {
  max-width: 280px;
  margin: 0.4rem auto;
}

.atlas-varga-card .svg-wrap svg {
  width: 100%;
  height: auto;
}

.atlas-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--indigo-950);
  margin-bottom: 0.15rem;
}

.atlas-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.atlas-tables {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .atlas-tables {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.atlas-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: var(--shadow-soft);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.report-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--border-strong);
}

.report-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

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

.dignity-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(184, 146, 42, 0.12);
  color: var(--gold-deep);
}

.dignity-pill--exalt {
  background: rgba(61, 138, 90, 0.14);
  color: var(--success);
}

.dignity-pill--debil {
  background: rgba(192, 69, 69, 0.12);
  color: var(--danger);
}

.dignity-pill--own {
  background: rgba(139, 123, 181, 0.14);
  color: #5c4f8a;
}

/* Dasha timeline */
.dasha-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dasha-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid transparent;
}

.dasha-item--current {
  border-color: rgba(184, 146, 42, 0.35);
  background: rgba(184, 146, 42, 0.08);
}

.dasha-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.4rem;
}

.dasha-lord {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.dasha-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dasha-dates {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

/* Shad Bala bars */
.shadbala {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.shadbala-row {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 0.65rem;
  align-items: center;
}

.shadbala-row.is-weak .shadbala-fill {
  background: linear-gradient(90deg, #8a6a55, #b8956a);
  opacity: 0.75;
}

.shadbala-req {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.shadbala-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.shadbala-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(90, 70, 40, 0.08);
  overflow: hidden;
  position: relative;
}

.shadbala-track::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(184, 146, 42, 0.35);
}

.shadbala-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9a7a22, #d4b44a);
  min-width: 4px;
}

.shadbala-val {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Closing */
.report-closing {
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 162, 39, 0.1), transparent 55%),
    linear-gradient(180deg, #fffdf9, #f6efe3);
}

.report-closing p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

.report-closing p + p {
  margin-top: 0.75rem;
}

.report-signoff {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--indigo-950);
}

.report-disclaimer {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(184, 146, 42, 0.08);
  border: 1px solid rgba(184, 146, 42, 0.2);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.report-footer-mark {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 0.95rem;
}

/* Chart page CTA enhancement */
.chart-actions {
  gap: 0.65rem;
}

/* Widen app when report is active */
#app:has(#screen-report.screen--active) {
  max-width: 960px;
}

@media (max-width: 640px) {
  .report-page {
    padding: 1.35rem 0.95rem 1.35rem;
  }

  .report-page::before {
    inset: 6px;
  }

  .report-h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .report-card {
    padding: 1rem 0.95rem;
  }

  .report-card p,
  .report-bullets li {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .report-atlas-grid,
  .report-subgrid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .kundali-wrap svg,
  .report-varga svg {
    max-width: 100%;
    height: auto;
  }

  .report-planets-table,
  .report-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-planets-table table {
    min-width: 480px;
    font-size: 0.85rem;
  }

  .ishta-badge {
    font-size: 0.9rem;
    white-space: normal;
  }

  .shadbala-row {
    grid-template-columns: 56px 1fr 64px;
  }

  .dasha-item {
    grid-template-columns: 10px 1fr;
  }

  .dasha-dates {
    grid-column: 2;
    text-align: left;
  }
}

/* Print — hide chrome, paginate booklet */
@media print {
  @page {
    size: A4;
    margin: 14mm 12mm;
  }

  html, body {
    background: #fff !important;
    color: #1a1630 !important;
  }

  .bg-orb,
  .topbar,
  .site-footer,
  .legal-modal,
  .report-toolbar,
  .steps,
  .demo-banner,
  .lang-switcher,
  .no-print {
    display: none !important;
  }

  #app {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .screen {
    display: none !important;
  }

  #screen-report.screen--active,
  #screen-report:not([hidden]) {
    display: block !important;
  }

  .report-book {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .report-page {
    padding: 0 0 8mm;
    break-inside: avoid;
  }

  .report-page::before {
    display: none;
  }

  .report-cover {
    break-after: page;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff !important;
  }

  .report-card,
  .atlas-lagna,
  .atlas-varga-card,
  .atlas-panel,
  .report-subcard {
    break-inside: avoid;
    box-shadow: none !important;
    background: #fff !important;
    border-color: #ddd !important;
  }

  .report-label {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shadbala-fill,
  .dasha-dot {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .atlas-lagna .svg-wrap {
    max-width: 380px;
  }
}


/* ─── Expanded personal booklet ─── */
.report-section-note {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 62ch;
  margin: -0.35rem 0 1.15rem;
}

.report-for-you {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.report-bullets {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.report-bullets li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.report-bullets li::marker {
  color: var(--gold);
}

.report-health-disclaimer {
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  color: var(--text-muted) !important;
  background: rgba(184, 146, 42, 0.08);
  border: 1px solid rgba(184, 146, 42, 0.22);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
}

.atlas-caption {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  max-width: 42ch;
}

.report-card--portrait {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(201, 162, 39, 0.1), transparent 55%),
    var(--surface-elevated);
}

#report-personal-chunk .report-card,
#report-periods-chunk .report-card {
  padding-top: 1.5rem;
}

@media print {
  .report-health-disclaimer {
    break-inside: avoid;
  }
  .atlas-caption {
    color: #444 !important;
  }
}


/* ─── Your Jyoti in 60 Seconds (lead executive) ─── */
.report-page--sixty {
  background:
    radial-gradient(ellipse 75% 50% at 50% 0%, rgba(201, 162, 39, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(252, 247, 238, 0.96));
}

.report-card--sixty {
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(201, 162, 39, 0.12), transparent 50%),
    var(--surface-elevated);
  border: 1px solid rgba(184, 146, 42, 0.28);
  box-shadow: 0 8px 28px rgba(92, 64, 28, 0.06);
}

.report-card--sixty .report-label {
  color: var(--gold-deep);
  letter-spacing: 0.12em;
}

.report-bullets--sixty {
  margin-top: 0.35rem;
}

.report-bullets--sixty li {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
  padding-left: 0.15rem;
}

.report-bullets--sixty li::marker {
  color: var(--gold-deep);
  font-size: 0.95em;
}

@media print {
  .report-page--sixty,
  .report-card--sixty {
    break-inside: avoid;
  }
}
