/* jyotish.vip — calculators computed on our server, over tool.css; var(--…) only.
   Two sets of fields (fieldset#person-1, #person-2) with their lists of cities, the state of #result, the tables of
   the result and the marks of quality. */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.desk-grid2{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2);margin-top:var(--space-2)}
#calc-form fieldset{margin:0;padding:var(--space-2) var(--space-3) var(--space-3);display:grid;gap:var(--space-2)}
#calc-form legend{font-family:var(--font-body);font-weight:500;font-size:var(--fs-caption);line-height:var(--lh-dense);text-transform:uppercase;letter-spacing:var(--track-caps);color:var(--accent-struct-text)}
#desk-places-1,#desk-places-2{position:absolute;top:100%;left:0;right:0;z-index:20;margin:0;padding:0;list-style:none;background-color:var(--surface-focal);border:1px solid var(--accent-struct-text);border-top:0;border-radius:0 0 var(--radius-inner) var(--radius-inner);box-shadow:var(--shadow-focal);font-size:var(--fs-body);line-height:var(--lh-dense)}
#desk-places-1[hidden],#desk-places-2[hidden]{display:none}
#desk-places-1 li,#desk-places-2 li{min-height:44px;display:flex;align-items:center;padding:var(--space-2) var(--space-3);border-top:1px solid var(--hairline-2);color:var(--text-ink);cursor:pointer;overflow-wrap:anywhere;transition:background-color var(--duration-fast) var(--ease-inout)}
#desk-places-1 li:first-child,#desk-places-2 li:first-child{border-top:0}
#desk-places-1 li:hover,#desk-places-1 li[aria-selected="true"],#desk-places-2 li:hover,#desk-places-2 li[aria-selected="true"]{background-color:var(--surface-card)}
#desk-places-1 li[aria-selected="true"],#desk-places-2 li[aria-selected="true"]{box-shadow:inset 2px 0 0 var(--accent-action)}
#calc-status:empty:not([data-kept]){display:none}
#calc-status{color:var(--text-ink)}
/* The result */
#result{transition:opacity var(--duration-fast) var(--ease-inout)}
#result h3{margin:var(--space-6) 0 var(--space-2)}
#result .res{color:var(--text-body);max-width:44em;margin:0 0 var(--space-3)}
#match-total{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:var(--fs-h3);line-height:var(--lh-snug);color:var(--text-ink);margin:0 0 var(--space-1)}
#match-verdict,#ss-status,#md-status,#ks-status,#mu-overall{font-weight:500;color:var(--text-ink)}
td[data-role="dosha"][data-dosha="formed"]{color:var(--status-bad)}
td[data-role="dosha"][data-dosha="cancelled"]{color:var(--text-muted)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
#mu-chog tr.half th{padding-top:var(--space-4);color:var(--text-ink);border-bottom:1px solid var(--hairline-2)}
#mu-cal td{white-space:nowrap;position:relative}
#mu-cal td[data-quality="excellent"] .mono{color:var(--status-good);font-weight:500}
#mu-cal td[data-quality="good"] .mono{color:var(--status-good)}
#mu-cal td[data-quality="avoid"] .mono{color:var(--status-bad)}
#mu-best li,#moons-list li{font-variant-numeric:tabular-nums}
/* Full and new moons */
#moons{margin:0 0 var(--space-10)}
#moons-list{margin:0 0 var(--space-4);padding-left:var(--space-6)}
#moons-list li{padding:var(--space-1) 0;color:var(--text-body)}
#moons .desk-actions{margin-top:var(--space-3)}
#moons-zone{margin:0}
/* The privacy line of the form wraps into more lines in Fira Sans than in a fallback face at phone width: the lines
   are reserved, so the font swap does not push what follows (as tool.css does for #desk-privacy). */
@media(max-width:760px){#calc-form #calc-privacy{min-height:calc(4em * var(--lh-dense))}}
/* Result tables at phone width: no column sits behind a horizontal scroll. The cells may wrap, and the two wide tables
   (the eight kūṭas, the seven-kind calendar) become one card per row: the name, then label and value pairs. */
@media(max-width:600px){
  #result .table-wrap th,#result .table-wrap td{white-space:normal;padding:var(--space-2) var(--space-1)}
  #result .table-wrap td{overflow-wrap:anywhere}
  #kuta-table,#mu-cal,#kuta-table tbody,#mu-cal tbody,#kuta-table tr,#mu-cal tr{display:block}
  #kuta-table thead,#mu-cal thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
  #kuta-table tr,#mu-cal tr{border-top:1px solid var(--hairline-2);padding:var(--space-2) 0}
  #kuta-table tr>:first-child,#mu-cal tr>:first-child{display:block;padding:var(--space-1) 0;font-weight:500;color:var(--text-ink);border:0}
  #kuta-table td,#mu-cal td{display:flex;justify-content:space-between;gap:var(--space-3);padding:var(--space-1) 0;text-align:right}
  #kuta-table td::before,#mu-cal td::before{flex:none;color:var(--text-muted);text-align:left}
  #kuta-table td:empty{display:none}
  #kuta-table td:nth-child(2)::before{content:"Groom"}
  #kuta-table td:nth-child(3)::before{content:"Bride"}
  #kuta-table td:nth-child(4)::before{content:"Points"}
  #kuta-table td:nth-child(5)::before{content:"Out of"}
  #kuta-table td:nth-child(6)::before{content:"Doṣa"}
  #mu-cal td:nth-child(2)::before{content:"Marriage"}
  #mu-cal td:nth-child(3)::before{content:"Moving in"}
  #mu-cal td:nth-child(4)::before{content:"Business"}
  #mu-cal td:nth-child(5)::before{content:"Travel"}
  #mu-cal td:nth-child(6)::before{content:"Treatment"}
  #mu-cal td:nth-child(7)::before{content:"Study"}
  #mu-cal td:nth-child(8)::before{content:"Legal"}
}
