/* ================================================================
   KAUSHIKA JOTHIDAM — CLEAN FINAL REPORT OVERRIDES
   Load after birth-chart-premium.css.
   Contains only report-specific refinements and print layout.
   No calculation or API logic.
=============================================================== */

/* Premium report identity and page headings */
.birth-chart-page.kj-royal #report-root .rp-brand-banner{
  display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:16px;
  margin:-1px -1px 24px;padding:18px 22px;border:1px solid #d8ad5d;border-bottom:4px solid #d99a25;
  border-radius:10px;background:linear-gradient(110deg,#3b0611,#760d29 52%,#3b0611);color:#ffedbd;
  box-shadow:0 5px 16px rgba(65,8,25,.16)
}
.birth-chart-page.kj-royal #report-root .rp-brand-emblem{
  width:62px;height:62px;display:grid;place-items:center;border:3px double #f2cf79;border-radius:50%;
  background:radial-gradient(circle at 35% 25%,#fff1bc,#d99a2b 62%,#8c4a10);color:#5b0b1b;font:700 38px/1 Georgia,serif
}
.birth-chart-page.kj-royal #report-root .rp-brand-copy{display:grid;gap:3px;min-width:0}
.birth-chart-page.kj-royal #report-root .rp-brand-copy span{color:#f1d69a;font-size:12px;font-weight:600;letter-spacing:.5px}
.birth-chart-page.kj-royal #report-root .rp-brand-copy strong{color:#ffedbd;font:700 27px/1.2 "Noto Sans Tamil",serif}
.birth-chart-page.kj-royal #report-root .rp-brand-copy small{color:#e9d6b1;font-size:13px}
.birth-chart-page.kj-royal #report-root .rp-brand-contact{display:grid;gap:4px;text-align:right;color:#f7e6c1}
.birth-chart-page.kj-royal #report-root .rp-brand-contact small{font-size:12px}
.birth-chart-page.kj-royal #report-root .rp-brand-contact strong{font-size:17px;letter-spacing:.4px}
.birth-chart-page.kj-royal #report-root .rp-report-title{
  margin:0 0 22px;padding:17px 14px;text-align:center;border:1px solid #dfc58f;border-radius:10px;
  background:linear-gradient(135deg,#fff4d7,#fffdf6 55%,#f8e8c6)
}
.birth-chart-page.kj-royal #report-root .rp-report-title>span{color:#99713a;font:700 11px/1.4 Georgia,serif;letter-spacing:2px}
.birth-chart-page.kj-royal #report-root .rp-report-title h1{margin:5px 0;color:#780e2a;font:800 30px/1.35 "Noto Sans Tamil",serif}
.birth-chart-page.kj-royal #report-root .rp-report-title p{margin:4px 0 0;color:#654b36;font-size:14px}
.birth-chart-page.kj-royal #report-root .rp-page-head{
  display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 18px;padding:0 0 14px;
  border-bottom:2px solid #d7ad63;text-align:center
}
.birth-chart-page.kj-royal #report-root .rp-page-om{
  width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border:2px double #d2a24f;border-radius:50%;
  color:#7b1029;background:#fff2d1;font:700 27px Georgia,serif
}
.birth-chart-page.kj-royal #report-root .rp-page-head .rp-org{color:#8a142d;font-size:14px;font-weight:800}
.birth-chart-page.kj-royal #report-root .rp-page-head h2{margin:2px 0;color:#650b20;font-size:23px;line-height:1.35}
.birth-chart-page.kj-royal #report-root .rp-page-head small{color:#9b7948;font:700 11px Georgia,serif;letter-spacing:1px}
.birth-chart-page.kj-royal #report-root .rp-page-sub{margin:-8px 0 18px;color:#775d43;text-align:center;font-size:13px;line-height:1.6}

/* Report cards, horoscope charts, tables and closing page */
.birth-chart-page.kj-royal #report-root .rp-kv{grid-template-columns:repeat(3,minmax(0,1fr))}
.birth-chart-page.kj-royal #report-root .rp-kv small,
.birth-chart-page.kj-royal #report-root .rp-tile small,
.birth-chart-page.kj-royal #report-root .rp-card small{font-size:13px;line-height:1.5}
.birth-chart-page.kj-royal #report-root .rp-kv b{font-size:16px;line-height:1.55}
.birth-chart-page.kj-royal #report-root .rp-h{font-size:21px;margin-top:23px}
.birth-chart-page.kj-royal #report-root .rp-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.birth-chart-page.kj-royal #report-root .rp-tile{padding:13px 14px}
.birth-chart-page.kj-royal #report-root .rp-tile b{font-size:16px;line-height:1.55}
.birth-chart-page.kj-royal #report-root .rp-tile em{font-size:13px;line-height:1.55}
.birth-chart-page.kj-royal #report-root .rp-dual-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.birth-chart-page.kj-royal #report-root .rp-chartbox figcaption b{font-size:17px}
.birth-chart-page.kj-royal #report-root .rp-chartbox figcaption small{font-size:12.5px}
.birth-chart-page.kj-royal #report-root .rp-chart{width:100%;aspect-ratio:1/1}
.birth-chart-page.kj-royal #report-root .rp-cell{padding:5px 3px;align-items:center}
.birth-chart-page.kj-royal #report-root .rp-cell>i,
.birth-chart-page.kj-royal #report-root .rp-sign-name{display:none!important}
.birth-chart-page.kj-royal #report-root .rp-cell-planets{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px;max-width:100%}
.birth-chart-page.kj-royal #report-root .rp-chip{font-size:13px;line-height:1.55;padding:2px 6px;white-space:nowrap}
.birth-chart-page.kj-royal #report-root .rp-empty{color:#c4b08e;font-size:13px}
.birth-chart-page.kj-royal #report-root .rp-center b{font-size:15px}
.birth-chart-page.kj-royal #report-root .rp-center small{font-size:12px}
.birth-chart-page.kj-royal #report-root .rp-chart-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 15px;margin:15px 0;color:#624936;font-size:13px}
.birth-chart-page.kj-royal #report-root .rp-chart-legend>span{display:inline-flex;align-items:center;gap:6px}
.birth-chart-page.kj-royal #report-root .rp-chart-legend .rp-chip{font-size:12px}
.birth-chart-page.kj-royal #report-root .rp-balance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.birth-chart-page.kj-royal #report-root .rp-report-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:20px 0 8px}
.birth-chart-page.kj-royal #report-root .rp-service-button,
.birth-chart-page.kj-royal #report-root .rp-print-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid #d19a3e;
  border-radius:24px;background:linear-gradient(110deg,#720c27,#a31335);color:#fff0c9;text-decoration:none;
  font:700 14px "Noto Sans Tamil",sans-serif;cursor:pointer
}
.birth-chart-page.kj-royal #report-root .rp-print-button{background:linear-gradient(110deg,#fff0c8,#f4d58e);color:#641026}
.birth-chart-page.kj-royal #report-root .rp-planet-table-wrap{width:100%;overflow-x:auto}
.birth-chart-page.kj-royal #report-root .rp-period-table,
.birth-chart-page.kj-royal #report-root .rp-antara-table{table-layout:fixed}
.birth-chart-page.kj-royal #report-root .rp-table{font-size:14px}
.birth-chart-page.kj-royal #report-root .rp-table th{font-size:14px;line-height:1.45}
.birth-chart-page.kj-royal #report-root .rp-table td{font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.birth-chart-page.kj-royal #report-root .rp-dasha-index-page .rp-table td,
.birth-chart-page.kj-royal #report-root .rp-dasha-detail-page .rp-table td{font-size:14px}
.birth-chart-page.kj-royal #report-root .rp-mahadasha-summary,
.birth-chart-page.kj-royal #report-root .rp-bhukti-heading{
  display:grid;grid-template-columns:1fr 1.5fr auto;align-items:center;gap:10px;margin:12px 0;padding:12px 14px;
  border:1px solid #e0c58e;border-radius:9px;background:#fff5dc;color:#5c321e;font-size:14px
}
.birth-chart-page.kj-royal #report-root .rp-mahadasha-summary b,
.birth-chart-page.kj-royal #report-root .rp-bhukti-heading strong{color:#780e2a;font-size:15px}
.birth-chart-page.kj-royal #report-root .rp-mahadasha-summary span,
.birth-chart-page.kj-royal #report-root .rp-bhukti-heading span{text-align:center}
.birth-chart-page.kj-royal #report-root .rp-bhukti-heading{background:#fffaf0}
.birth-chart-page.kj-royal #report-root .rp-end-ornament{
  width:86px;height:86px;display:grid;place-items:center;margin:48px auto 20px;border:4px double #d8a64c;border-radius:50%;
  background:radial-gradient(circle,#fff4cc,#e8b54f);color:#710d28;font:700 50px Georgia,serif
}
.birth-chart-page.kj-royal #report-root .rp-report-end-page h2{margin:15px 0;text-align:center;color:#760d29;font-size:32px}
.birth-chart-page.kj-royal #report-root .rp-report-end-page>p{max-width:600px;margin:0 auto 28px;text-align:center;color:#6d5139;font-size:16px;line-height:1.8}
.birth-chart-page.kj-royal #report-root .rp-end-contact{display:grid;gap:8px;max-width:440px;margin:0 auto;padding:20px;border:1px solid #d9b978;border-radius:12px;background:#fff6df;text-align:center;color:#65452d;font-size:15px}
.birth-chart-page.kj-royal #report-root .rp-end-contact strong{color:#760d29;font-size:20px}
.birth-chart-page.kj-royal #report-root .rp-end-contact a{color:#780e2a;font-weight:800}

/* Responsive report layout */
.birth-chart-page.kj-royal #report-root .rp-sheet{overflow:visible}
.birth-chart-page.kj-royal #report-root .rp-sheet-wrap{gap:26px}
.birth-chart-page.kj-royal #report-root .rp-note{font-size:14px;line-height:1.75}
.birth-chart-page.kj-royal #report-root .rp-person strong{font-size:21px}
@media(max-width:900px){
  .birth-chart-page.kj-royal #report-root .rp-sheet{padding:34px 25px 28px}
  .birth-chart-page.kj-royal #report-root .rp-brand-banner{grid-template-columns:56px minmax(0,1fr);}
  .birth-chart-page.kj-royal #report-root .rp-brand-emblem{width:52px;height:52px;font-size:31px}
  .birth-chart-page.kj-royal #report-root .rp-brand-copy strong{font-size:22px}
  .birth-chart-page.kj-royal #report-root .rp-brand-contact{grid-column:2;text-align:left}
}
@media(max-width:680px){
  .birth-chart-page.kj-royal #report-root .rp-sheet{padding:27px 17px 24px;border-radius:10px}
  .birth-chart-page.kj-royal #report-root .rp-brand-banner{gap:10px;padding:13px}
  .birth-chart-page.kj-royal #report-root .rp-brand-copy strong{font-size:19px}
  .birth-chart-page.kj-royal #report-root .rp-report-title h1{font-size:25px}
  .birth-chart-page.kj-royal #report-root .rp-page-head h2{font-size:19px}
  .birth-chart-page.kj-royal #report-root .rp-kv{grid-template-columns:repeat(2,minmax(0,1fr))}
  .birth-chart-page.kj-royal #report-root .rp-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .birth-chart-page.kj-royal #report-root .rp-dual-charts{grid-template-columns:1fr;gap:18px}
  .birth-chart-page.kj-royal #report-root .rp-chartbox{max-width:440px;width:100%;margin:0 auto}
  .birth-chart-page.kj-royal #report-root .rp-balance-grid{grid-template-columns:1fr}
  .birth-chart-page.kj-royal #report-root .rp-mahadasha-summary,
  .birth-chart-page.kj-royal #report-root .rp-bhukti-heading{grid-template-columns:1fr;gap:5px}
  .birth-chart-page.kj-royal #report-root .rp-mahadasha-summary span,
  .birth-chart-page.kj-royal #report-root .rp-bhukti-heading span{text-align:left}
  .birth-chart-page.kj-royal #report-root .rp-table{min-width:650px}
  .birth-chart-page.kj-royal #report-root .rp-planet-table-wrap{overflow-x:auto}
  .birth-chart-page.kj-royal #report-root .rp-table th,
  .birth-chart-page.kj-royal #report-root .rp-table td{padding:9px 8px}
  .birth-chart-page.kj-royal #report-root .rp-report-end-page>p{font-size:14px}
}
@media(max-width:390px){
  .birth-chart-page.kj-royal #report-root .rp-sheet{padding:23px 12px 20px}
  .birth-chart-page.kj-royal #report-root .rp-kv,
  .birth-chart-page.kj-royal #report-root .rp-tiles{grid-template-columns:1fr}
  .birth-chart-page.kj-royal #report-root .rp-brand-copy strong{font-size:17px}
  .birth-chart-page.kj-royal #report-root .rp-chip{font-size:11px;padding:1px 4px}
}

/* Small-screen polish: prevent long labels and controls from overflowing. */
@media(max-width:520px){
  .birth-chart-page.kj-royal #report-root .rp-brand-banner{
    grid-template-columns:44px minmax(0,1fr);gap:9px;padding:12px;
  }
  .birth-chart-page.kj-royal #report-root .rp-brand-emblem{
    width:42px;height:42px;font-size:25px;
  }
  .birth-chart-page.kj-royal #report-root .rp-brand-contact{
    grid-column:1/-1;text-align:center;padding-top:8px;border-top:1px solid rgba(242,207,121,.35);
  }
  .birth-chart-page.kj-royal #report-root .rp-page-head{gap:8px;}
  .birth-chart-page.kj-royal #report-root .rp-page-om{width:38px;height:38px;flex-basis:38px;font-size:22px;}
  .birth-chart-page.kj-royal #report-root .rp-page-head h2{font-size:17px;}
  .birth-chart-page.kj-royal #report-root .rp-chartbox{min-width:0;}
  .birth-chart-page.kj-royal #report-root .rp-report-actions>*{width:100%;}
}

/* A4 print: show only the report and preserve readable page flow. */
@media print{
  @page{size:A4 portrait;margin:9mm}
  html,body.birth-chart-page.kj-royal{width:auto!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;color:#24170f!important}
  body.birth-chart-page.kj-royal .topline,
  body.birth-chart-page.kj-royal .site-header,
  body.birth-chart-page.kj-royal .kj-hero,
  body.birth-chart-page.kj-royal .kj-progress,
  body.birth-chart-page.kj-royal .footer,
  body.birth-chart-page.kj-royal .bc-footer,
  body.birth-chart-page.kj-royal .bc-results-heading,
  body.birth-chart-page.kj-royal .rp-toolbar{display:none!important}
  body.birth-chart-page.kj-royal .kj-workspace{display:block!important;width:auto!important;margin:0!important;padding:0!important;background:#fff!important}
  body.birth-chart-page.kj-royal .kj-layout{display:none!important}
  body.birth-chart-page.kj-royal .kj-report-wrap{display:block!important;width:auto!important;margin:0!important;padding:0!important;background:#fff!important}
  body.birth-chart-page.kj-royal #chart-results{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}
  body.birth-chart-page.kj-royal #report-root{display:block!important;width:auto!important;margin:0!important;padding:0!important;background:#fff!important}
  body.birth-chart-page.kj-royal #report-root .rp-sheet-wrap{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;gap:0!important}
  body.birth-chart-page.kj-royal #report-root .rp-sheet{
    display:block!important;position:relative!important;box-sizing:border-box!important;width:auto!important;max-width:none!important;
    height:auto!important;min-height:279mm!important;max-height:none!important;overflow:visible!important;
    margin:0!important;padding:9mm 8mm 12mm!important;border:1px solid #d4b36f!important;border-radius:0!important;
    box-shadow:none!important;animation:none!important;break-after:page!important;page-break-after:always!important;
    -webkit-print-color-adjust:exact!important;print-color-adjust:exact!important
  }
  body.birth-chart-page.kj-royal #report-root .rp-sheet:last-child{break-after:auto!important;page-break-after:auto!important}
  body.birth-chart-page.kj-royal #report-root .rp-sheet:before{inset:3mm!important;border:1px solid #d6b36b!important}
  body.birth-chart-page.kj-royal #report-root .rp-sheet:after{inset:4.5mm!important;border:1px solid #ead9b4!important}
  body.birth-chart-page.kj-royal #report-root .rp-foot{position:static!important;display:flex!important;margin:10mm 0 0!important;padding-top:3mm!important;font-size:9pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-brand-banner{margin:0 0 7mm!important;padding:4mm!important;grid-template-columns:17mm 1fr auto!important}
  body.birth-chart-page.kj-royal #report-root .rp-brand-emblem{width:15mm!important;height:15mm!important;font-size:25pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-brand-copy strong{font-size:17pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-brand-copy span,
  body.birth-chart-page.kj-royal #report-root .rp-brand-copy small,
  body.birth-chart-page.kj-royal #report-root .rp-brand-contact small{font-size:9pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-brand-contact strong{font-size:11pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-report-title{margin-bottom:6mm!important;padding:4mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-report-title h1{font-size:22pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-page-head{margin-bottom:5mm!important;padding-bottom:3mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-page-head h2{font-size:17pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-page-sub{font-size:10pt!important;margin-bottom:4mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-h{font-size:14pt!important;margin:5mm 0 2mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-kv small,
  body.birth-chart-page.kj-royal #report-root .rp-tile small{font-size:9.5pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-kv b,
  body.birth-chart-page.kj-royal #report-root .rp-tile b{font-size:11pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-tile em{font-size:9pt!important}
  body.birth-chart-page.kj-royal #report-root .rp-tiles{gap:2mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-tile{padding:2.5mm!important;break-inside:avoid!important}
  body.birth-chart-page.kj-royal #report-root .rp-dual-charts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-chart{break-inside:avoid!important}
  body.birth-chart-page.kj-royal #report-root .rp-chip{font-size:8.5pt!important;padding:1px 4px!important}
  body.birth-chart-page.kj-royal #report-root .rp-chart-legend{font-size:9pt!important;margin:3mm 0!important}
  body.birth-chart-page.kj-royal #report-root .rp-balance-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-table{width:100%!important;min-width:0!important;font-size:10.5pt!important;table-layout:auto!important}
  body.birth-chart-page.kj-royal #report-root .rp-table th{font-size:10pt!important;padding:2.2mm 1.5mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-table td{font-size:10pt!important;padding:2mm 1.5mm!important;line-height:1.4!important;overflow-wrap:anywhere!important}
  body.birth-chart-page.kj-royal #report-root .rp-period-table th,
  body.birth-chart-page.kj-royal #report-root .rp-period-table td,
  body.birth-chart-page.kj-royal #report-root .rp-antara-table th,
  body.birth-chart-page.kj-royal #report-root .rp-antara-table td{font-size:10pt!important}
  body.birth-chart-page.kj-royal #report-root tr,
  body.birth-chart-page.kj-royal #report-root .rp-kv>div,
  body.birth-chart-page.kj-royal #report-root .rp-balance-grid>div{break-inside:avoid!important;page-break-inside:avoid!important}
  body.birth-chart-page.kj-royal #report-root .rp-mahadasha-summary,
  body.birth-chart-page.kj-royal #report-root .rp-bhukti-heading{font-size:10pt!important;padding:2.5mm!important;margin:3mm 0!important}
  body.birth-chart-page.kj-royal #report-root .rp-end-ornament{margin:20mm auto 8mm!important}
  body.birth-chart-page.kj-royal #report-root .rp-report-end-page>p{font-size:12pt!important}
}

/* Keep the shared home-page footer out of the printable horoscope PDF. */
@media print{
  body.birth-chart-page.kj-royal .site-footer{display:none!important}
}
