/* /ashtakavarga/: Śani's path through the kakṣyās of his sign (kakshya-path.js) is the first screen. Tokens and type
   roles: /assets/canon.css; values here are var(--…) only. The figure is a sky island: inside it the contract names
   take the obsidian values in both themes. Below 1100 px: kicker, h1, the path, the answer, the form; from 1100 px the
   path stands in the left column under h1 and the form keeps its place on the right. Its place is taken before
   scripts and data. The type size of the path is geometry: kakshya-path.js writes it on each text. */
#kv-figure{width:100%;max-width:none;margin:0 0 var(--space-4);padding:var(--space-4);background-color:var(--surface-sky);color:var(--text-body);border-radius:var(--radius-card);min-width:0}
.kakshya-path{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1;margin:0 auto;overflow:visible}
.kakshya-path line,.kakshya-path path,.kakshya-path circle{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.kakshya-path .kk-ahead,.kakshya-path .kk-sat,.kakshya-path .kk-bindu{stroke:var(--text-body);stroke-width:2}
.kakshya-path .kk-past,.kakshya-path .kk-rekha{stroke:var(--text-muted)}
.kakshya-path text{font-family:var(--font-body);font-weight:500;fill:var(--text-muted)}
.kakshya-path .is-on{fill:var(--text-body)}
@media (prefers-reduced-motion:no-preference){
  /* the year lines, the path, Śani and the marks enter; the frame and every text stand from the first frame */
  .kakshya-path.is-entering #kk-live>:not(text){animation:kk-in var(--duration-picture) var(--ease-picture) both}
}
@keyframes kk-in{from{opacity:0}to{opacity:1}}

/* The lines under the path: their place is kept before the data comes, by the longest view measured at every width
   240–1920 (the frame; «now» and «own» with every sign, every lord, «a bindu» and «no bindu», the stretch last or
   not). A long line wraps, nothing is cut. */
#kv-readout{margin-top:var(--space-3);min-height:calc(13 * var(--fs-small) * var(--lh-dense) + var(--space-1));font-size:var(--fs-small);line-height:var(--lh-dense)}
@media(min-width:275px){#kv-readout{min-height:calc(12 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:286px){#kv-readout{min-height:calc(11 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:364px){#kv-readout{min-height:calc(10 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:369px){#kv-readout{min-height:calc(9 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:382px){#kv-readout{min-height:calc(8 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:424px){#kv-readout{min-height:calc(7 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:541px){#kv-readout{min-height:calc(6 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:726px){#kv-readout{min-height:calc(5 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:760px){#kv-readout{min-height:calc(6 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:766px){#kv-readout{min-height:calc(5 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:1054px){#kv-readout{min-height:calc(4 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:1100px){#kv-readout{min-height:calc(7 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:1102px){#kv-readout{min-height:calc(6 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
#kv-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#kv-readout #kv-caption{font-weight:500}
#kv-readout #kv-cue{margin-top:var(--space-1);color:var(--text-muted)}
/* text on the sky is no brighter than --text-body: the figures of the lines too; their taller face does not grow the
   line, so the kept place holds the longest view; in the link they take its colour */
#kv-readout .mono{font-size:var(--fs-small);line-height:1;color:var(--text-body)}
#kv-readout a .mono{color:inherit}

section.tool-hero#calculator>.kicker{order:0}
section.tool-hero#calculator>h1{order:1}
section.tool-hero#calculator>#kv-figure{order:2}
section.tool-hero#calculator>p.answer{order:3}
section.tool-hero#calculator>.tool-desk{order:4}
@media(max-width:759.98px){
  section.tool-hero#calculator>h1{font-size:var(--fs-h4);line-height:var(--lh-tight);margin-bottom:var(--space-3)}
  main h2{font-size:var(--fs-h4)}
  main h3{font-size:var(--fs-lead)}
  section.tool-hero#calculator>#kv-figure{margin-inline:calc(50% - 50vw);width:100vw;max-width:none;border-radius:0}
}
@media(min-width:760px) and (max-width:1099.98px){
  .kakshya-path{max-width:520px}
}
@media(min-width:1100px){
  section.tool-hero#calculator{grid-template-rows:auto auto auto 1fr}
  section.tool-hero#calculator>.tool-desk{grid-column:2;grid-row:1 / span 4}
  section.tool-hero#calculator>#kv-figure{grid-column:1}
  section.tool-hero#calculator>h1{font-size:var(--fs-h3);margin-bottom:var(--space-3)}
  /* the path whole in the window at 1366 × 768 too */
  .kakshya-path{max-width:min(560px,calc(100vh - 264px))}
}
