/* Marriage Matching v357 — a compact, print-safe and mobile-safe factual appendix.
 * Sign names are intentionally absent in the 12-house CHARTS; tables retain full
 * longitude/rasi/nakshatra evidence for auditing. No planetary calculation changes.
 */
.mm-basic-report{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:visible}
.mm-basic-report>h2{text-align:center;font-size:1.2rem;margin:20px auto 8px;color:#842026}
.mm-basic-report .mm-base-note{text-align:center;font-size:.86rem;line-height:1.6;margin:0 0 12px}
.mm-basic-report .mm-base-person{
 box-sizing:border-box;display:block;min-width:0;max-width:100%;
 margin:12px 0 20px;padding:10px 8px;border:1px solid #dfcdae;border-radius:8px;
 background:#fffdfb;break-inside:auto;page-break-inside:auto;overflow:visible;
}
.mm-basic-report .mm-base-person>h3{font-size:1.12rem;color:#842026;text-align:center;margin:5px 0 12px}
.mm-basic-report .mm-base-person>h4{font-size:.99rem;color:#82242d;margin:20px 0 8px;break-after:avoid;page-break-after:avoid}
.mm-basic-report .mm-base-identity{display:flex;justify-content:center;flex-wrap:wrap;gap:7px 14px;margin:8px auto 14px;font-size:.86rem;line-height:1.5}
.mm-basic-report .mm-base-identity>span{min-width:0;overflow-wrap:anywhere}
.mm-basic-report .mm-base-unavailable{padding:8px;color:#7b2e2e}
.mm-basic-report .mm-base-chart-row{
 display:flex;justify-content:space-evenly;align-items:flex-start;flex-wrap:wrap;gap:14px;
 max-width:100%;margin:14px auto 18px;
}
.mm-basic-report .mm-base-chart-wrap{
 box-sizing:border-box;width:min(100%,310px);max-width:310px;min-width:0;
 margin:0 auto;flex:0 1 310px;break-inside:avoid;page-break-inside:avoid;
}
.mm-basic-report .mm-base-chart-wrap h4{font-size:.97rem;color:#842026;text-align:center;margin:3px auto 7px;break-after:avoid}
.mm-basic-report .mm-base-chart{
 position:relative;display:block!important;box-sizing:border-box;
 width:100%;max-width:310px;aspect-ratio:1/1;height:auto;
 margin:auto;background:white;border:0!important;overflow:hidden;
}
.mm-basic-report .mm-base-geometry{
 box-sizing:border-box;position:absolute;top:0;left:0;width:100%;height:100%;
 display:block;pointer-events:none;z-index:0;
}
.mm-basic-report .mm-base-geometry rect,
.mm-basic-report .mm-base-geometry path{fill:none;stroke:#796552;stroke-width:.8}
.mm-basic-report .mm-base-cell{
 position:absolute;box-sizing:border-box;min-width:0;min-height:0;z-index:1;
 display:flex;align-items:center;justify-content:center;flex-direction:column;
 text-align:center;padding:2px;overflow:hidden;
 background:transparent!important;border:0!important;
}
.mm-basic-report .mm-base-index{
 position:absolute;top:1px;left:3px;font:600 9px/1.1 system-ui,sans-serif;
 opacity:.8;white-space:nowrap;pointer-events:none;
}
.mm-basic-report .mm-base-planets{
 display:flex!important;align-items:center;justify-content:center;
 flex-direction:row;flex-wrap:wrap;align-content:center;gap:2px 5px;
 margin:0;min-width:0;max-width:100%;line-height:1.15;
}
.mm-basic-report .mm-base-planet{
 display:inline-block!important;flex:0 0 auto;font-weight:650;
 font-size:clamp(12px,3.5vw,15px)!important;line-height:1.15!important;
 white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;
 letter-spacing:0!important;
}
/* South: 12 sign-fixed positions around a single, blank 2x2 central square.
   Explicit absolute coordinates are independent of generic site grid rules. */
.mm-basic-report .mm-base-south>.mm-base-cell{width:25%;height:25%;transform:none}
.mm-basic-report .mm-base-south>.mm-base-pos-11{top:0;left:0}
.mm-basic-report .mm-base-south>.mm-base-pos-0{top:0;left:25%}
.mm-basic-report .mm-base-south>.mm-base-pos-1{top:0;left:50%}
.mm-basic-report .mm-base-south>.mm-base-pos-2{top:0;left:75%}
.mm-basic-report .mm-base-south>.mm-base-pos-10{top:25%;left:0}
.mm-basic-report .mm-base-south>.mm-base-pos-3{top:25%;left:75%}
.mm-basic-report .mm-base-south>.mm-base-pos-9{top:50%;left:0}
.mm-basic-report .mm-base-south>.mm-base-pos-4{top:50%;left:75%}
.mm-basic-report .mm-base-south>.mm-base-pos-8{top:75%;left:0}
.mm-basic-report .mm-base-south>.mm-base-pos-7{top:75%;left:25%}
.mm-basic-report .mm-base-south>.mm-base-pos-6{top:75%;left:50%}
.mm-basic-report .mm-base-south>.mm-base-pos-5{top:75%;left:75%}
/* North: the standard diamond geometry has fixed houses, sign numbers only. */
.mm-basic-report .mm-base-north>.mm-base-cell,
.mm-basic-report .mm-base-east>.mm-base-cell{
 width:24%;height:21%;transform:translate(-50%,-50%);
}
.mm-basic-report .mm-base-north>.mm-base-pos-0{left:50%;top:23%}
.mm-basic-report .mm-base-north>.mm-base-pos-1{left:28%;top:11%}
.mm-basic-report .mm-base-north>.mm-base-pos-2{left:11%;top:28%}
.mm-basic-report .mm-base-north>.mm-base-pos-3{left:23%;top:50%}
.mm-basic-report .mm-base-north>.mm-base-pos-4{left:11%;top:72%}
.mm-basic-report .mm-base-north>.mm-base-pos-5{left:28%;top:89%}
.mm-basic-report .mm-base-north>.mm-base-pos-6{left:50%;top:77%}
.mm-basic-report .mm-base-north>.mm-base-pos-7{left:72%;top:89%}
.mm-basic-report .mm-base-north>.mm-base-pos-8{left:89%;top:72%}
.mm-basic-report .mm-base-north>.mm-base-pos-9{left:77%;top:50%}
.mm-basic-report .mm-base-north>.mm-base-pos-10{left:89%;top:28%}
.mm-basic-report .mm-base-north>.mm-base-pos-11{left:72%;top:11%}
/* East/Bengali: fixed-sign chart. Same geometry and coordinates in print. */
.mm-basic-report .mm-base-east>.mm-base-pos-0{left:50%;top:16%}
.mm-basic-report .mm-base-east>.mm-base-pos-1{left:24%;top:11%}
.mm-basic-report .mm-base-east>.mm-base-pos-2{left:9%;top:24%}
.mm-basic-report .mm-base-east>.mm-base-pos-3{left:16%;top:50%}
.mm-basic-report .mm-base-east>.mm-base-pos-4{left:9%;top:76%}
.mm-basic-report .mm-base-east>.mm-base-pos-5{left:24%;top:89%}
.mm-basic-report .mm-base-east>.mm-base-pos-6{left:50%;top:84%}
.mm-basic-report .mm-base-east>.mm-base-pos-7{left:76%;top:89%}
.mm-basic-report .mm-base-east>.mm-base-pos-8{left:91%;top:76%}
.mm-basic-report .mm-base-east>.mm-base-pos-9{left:84%;top:50%}
.mm-basic-report .mm-base-east>.mm-base-pos-10{left:91%;top:24%}
.mm-basic-report .mm-base-east>.mm-base-pos-11{left:76%;top:11%}
/* Horizontal scrolling is essential on small phones. Never break Tamil
   numeric/planet column labels into individual glyphs. */
.mm-basic-report .mm-base-scroll{
 display:block;box-sizing:border-box;max-width:100%;width:100%;
 overflow-x:auto!important;overflow-y:hidden!important;
 -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
 margin:6px 0 16px;border:0;
}
.mm-basic-report table.mm-base-table{
 box-sizing:border-box;border-collapse:collapse!important;table-layout:auto!important;
 width:max-content!important;min-width:100%!important;max-width:none!important;
 font-size:.78rem;line-height:1.35;margin:0;background:#fff;
}
.mm-basic-report table.mm-base-table th,
.mm-basic-report table.mm-base-table td{
 border:1px solid #c8bca8!important;padding:6px 8px!important;
 min-width:45px!important;max-width:none!important;
 white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
 text-align:center;vertical-align:middle;font-size:inherit;line-height:1.35;
}
.mm-basic-report table.mm-base-table th{
 font-weight:700!important;background:#f4ead8!important;color:#4b251b!important;
}
.mm-basic-report table.mm-base-table tr{break-inside:avoid;page-break-inside:avoid}
.mm-basic-report table.mm-base-av th,
.mm-basic-report table.mm-base-av td{min-width:34px!important;padding:5px 6px!important}
/* Shadbala is intentionally wide: keep complete labels/values intact on screen;
   .mm-base-scroll provides horizontal touch scrolling on narrow viewports. */
.mm-basic-report table.smv-shadbala-table{min-width:1120px!important;width:max-content!important;max-width:none!important;font-size:.72rem;line-height:1.3}
.mm-basic-report table.smv-shadbala-table th,
.mm-basic-report table.smv-shadbala-table td{min-width:74px!important;padding:5px 6px!important}
.mm-basic-report table.smv-shadbala-table th:first-child,
.mm-basic-report table.smv-shadbala-table td:first-child{min-width:100px!important}
.mm-basic-report .smv-shadbala-method-note{font-size:.76rem;line-height:1.45;text-align:start;color:#62534a;margin:4px 0 8px}
.mm-basic-report .smv-shadbala-status{display:inline-block;white-space:normal;font-size:.7rem;font-weight:700;line-height:1.25}
.mm-basic-report .smv-strength-pass{color:#286341}
.mm-basic-report .smv-strength-below{color:#8b2727}

#smvMarriageMatching .mm-calculated-offset{background:#fff9ed;color:#382c22;font-weight:600}
#smvMarriageMatching .mm-offset-message{display:block;font-size:.78rem;line-height:1.5;margin-top:3px;color:#694e36}
@media(max-width:640px){
 .mm-basic-report .mm-base-person{padding:9px 6px}
 .mm-basic-report .mm-base-chart-wrap{max-width:310px}
 .mm-basic-report .mm-base-chart{max-width:310px}
}
@media print{
 .mm-basic-report,.mm-basic-report *{print-color-adjust:exact;-webkit-print-color-adjust:exact}
 /* Keep the Shadbala heading, methodology note and complete seven-graha table
    on one page so the table never starts without its identifying heading. */
 .mm-basic-report .smv-shadbala-section{break-inside:avoid!important;page-break-inside:avoid!important}
 .mm-basic-report .smv-shadbala-section>h3,
 .mm-basic-report .smv-shadbala-section>h4{break-after:avoid!important;page-break-after:avoid!important}
 .mm-basic-report .mm-base-person{
   width:100%;max-width:100%;margin:4mm auto 6mm;border:0;background:#fff;box-shadow:none;
   padding:0;break-inside:auto;page-break-inside:auto;
 }
 .mm-basic-report .mm-base-scroll{
   overflow:visible!important;width:100%;max-width:100%;margin:2mm auto 4mm;
   break-inside:avoid;page-break-inside:avoid;
 }
 .mm-basic-report table.mm-base-table{
   box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;
   table-layout:fixed!important;font-size:8.2pt!important;
 }
 .mm-basic-report table.mm-base-table th,
 .mm-basic-report table.mm-base-table td{
   box-sizing:border-box;padding:2pt 2pt!important;min-width:0!important;
   font-size:inherit!important;white-space:normal!important;overflow-wrap:normal!important;
   word-break:keep-all!important;line-height:1.3!important;
 }
 .mm-basic-report table.mm-base-av{font-size:7.3pt!important}
 .mm-basic-report table.mm-base-av th,
 .mm-basic-report table.mm-base-av td{padding:1.5pt!important}
 .mm-basic-report table.smv-shadbala-table{
   width:100%!important;min-width:0!important;max-width:100%!important;
   table-layout:fixed!important;font-size:5.8pt!important;line-height:1.2!important;
 }
 .mm-basic-report table.smv-shadbala-table th,
 .mm-basic-report table.smv-shadbala-table td{
   min-width:0!important;padding:.8pt .55pt!important;white-space:normal!important;
   overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.2!important;
 }
 .mm-basic-report .smv-shadbala-method-note{font-size:7pt!important;line-height:1.3!important;margin:1mm 0 1.5mm}
 .mm-basic-report .smv-shadbala-status{font-size:5.5pt!important;line-height:1.15!important}
 .mm-basic-report .mm-base-chart-row{break-inside:avoid;page-break-inside:avoid;gap:4mm}
 .mm-basic-report .mm-base-chart-wrap{flex:0 0 64mm;width:64mm;max-width:64mm;margin:0 auto}
 .mm-basic-report .mm-base-chart{
   display:block!important;width:62mm;max-width:62mm;height:62mm;aspect-ratio:1/1;margin:0 auto;
 }
 .mm-basic-report .mm-base-planet{font-size:9pt!important;line-height:1.15!important}
 .mm-basic-report .mm-base-index{font-size:6.5pt}
 .mm-basic-report .mm-base-planets{gap:1mm 1.2mm}
 .mm-basic-report table.mm-base-table thead{display:table-header-group}
 .mm-basic-report .mm-base-person>h4{break-after:avoid;page-break-after:avoid}
}
/* Keep each house/sign number inside its polygon, not clipped by chart edges. */
.mm-basic-report .mm-base-index{
 top:1px!important;left:50%!important;right:auto!important;
 transform:translateX(-50%)!important;
 width:max-content;max-width:85%;padding:0 2px;
 text-align:center;line-height:1.05!important;font-size:10px!important;
 background:rgba(255,255,255,.88);border-radius:3px;z-index:3;
}
.mm-basic-report .mm-base-cell{overflow:visible!important}
.mm-basic-report .mm-base-centerlabel{
 position:absolute;display:flex;align-items:center;justify-content:center;
 text-align:center;z-index:2;overflow-wrap:normal;word-break:keep-all;
 font-size:clamp(12px,3.4vw,17px)!important;font-weight:700;line-height:1.4;
 padding:3px;background:#faf2e4;color:#6b2b26;
}
.mm-basic-report .mm-base-south>.mm-base-centerlabel{
 top:25%;left:25%;width:50%;height:50%;
}
.mm-basic-report .mm-base-east>.mm-base-centerlabel{
 top:33.333%;left:33.333%;width:33.334%;height:33.334%;font-size:clamp(10px,2.9vw,14px)!important;
}
.mm-basic-report .mm-base-flag{
 font-size:8px!important;font-weight:700;line-height:1;position:relative;top:-.1em;margin-left:1px;
}
.mm-basic-report .mm-base-legend{font-size:.72rem;text-align:center;line-height:1.55;margin:2px auto 6px}
@media print{
 .mm-basic-report .mm-base-index{font-size:7pt!important}
 .mm-basic-report .mm-base-centerlabel{font-size:10pt!important}
 .mm-basic-report .mm-base-east>.mm-base-centerlabel{font-size:8pt!important}
 .mm-basic-report .mm-base-flag{font-size:5.5pt!important}
}


/* A single continuous result surface for the FULL marriage report.
   Keep only semantic headings, table rules and true chart lines; no card-in-card
   surfaces, shadows, outlines or separate colored blocks on screen or PDF. */
.mm-v281-results{
 background:#fff!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;outline:0!important;padding:0!important;
}
.mm-v281-results :is(
 .mm-basic-report,.mm-base-person,.mm-person-result,.mm-facts,
 .mm-facts>div,.mm-front-porutham,.mm-front-porutham-row,
 .mm-front-dosha-summary,.mm-front-dosha-card,.mm-front-dosha-status,
 .mm-base-identity,.mm-base-note,.mm-base-legend
){
 background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;outline:none!important;
 max-width:100%;min-width:0;
}
.mm-v281-results :is(.mm-person-result,.mm-base-person){
 display:block;box-sizing:border-box;padding:0!important;margin:12px 0 16px!important;
}
.mm-v281-results .mm-basic-report{
 display:block;box-sizing:border-box;padding:0!important;margin:0!important;
}
.mm-v281-results .mm-front-dosha-card{
 padding:5px 0!important;margin:5px 0!important;
 break-inside:auto!important;
}
.mm-v281-results .mm-front-porutham-row{padding:5px 0!important}
.mm-v281-results .mm-facts>div{padding:5px 0!important}
.mm-v281-results .mm-base-scroll{
 background:transparent!important;border:0!important;
 box-shadow:none!important;
}
.mm-v281-results .mm-base-identity{
 display:flex!important;gap:7px 14px!important;
 padding:2px 0!important;margin:4px 0 10px!important;
}
@media print{
 .mm-v281-results :is(
  .mm-basic-report,.mm-base-person,.mm-person-result,
  .mm-front-dosha-card,.mm-front-dosha-status,.mm-front-porutham,
  .mm-front-porutham-row,.mm-facts,.mm-facts>div
 ){
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;background-image:none!important;
  outline:0!important;
 }
 .mm-v281-results :is(.mm-base-person,.mm-person-result){
  padding:0!important;margin:2.5mm 0 4mm!important;
  break-inside:auto!important;page-break-inside:auto!important;
 }
 .mm-v281-results .mm-basic-report{margin:0!important;padding:0!important}
}
