/* /kundli-matching/: the staircase of the 36 points (kuta-steps.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 staircase, the answer, the form; from 1100 px the
   staircase stands under the h1 in the left column and the form keeps the right one. Its place is taken before data. */
#kuta-figure{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}
.kuta-steps{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:360 / 332;margin:0 auto;overflow:visible}
.kuta-steps line,.kuta-steps rect,.kuta-steps path{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.kuta-steps .kt-tick,.kuta-steps .kt-got{stroke-width:2}
.kuta-steps .kt-got{stroke:var(--text-body)}
.kuta-steps .kt-scale{stroke:var(--text-muted)}
.kuta-steps .kt-hatch-line{stroke:var(--accent-struct)}
.kuta-steps text{font-family:var(--font-mono);font-size:14px;dominant-baseline:central;fill:var(--text-body)}
.kuta-steps .kt-name{font-family:var(--font-body);font-weight:500;text-anchor:end}
.kuta-steps .kt-num{text-anchor:end}
.kuta-steps .kt-at{text-anchor:middle;fill:var(--text-muted)}
@media (prefers-reduced-motion:no-preference){
  /* the points enter; the figures stand at full contrast from the first frame */
  .kuta-steps.is-entering #kt-live>:not(clipPath){animation:kt-in var(--duration-picture) var(--ease-picture) both}
}
/* the frame stands from the first paint and does not blink */
@keyframes kt-in{from{opacity:0}to{opacity:1}}

/* The lines under the staircase: their place is kept before the data comes; a long line wraps, nothing is cut. */
#kuta-readout{margin-top:var(--space-3);min-height:calc(7 * var(--fs-small) * var(--lh-dense) + var(--space-1));font-size:var(--fs-small);line-height:var(--lh-dense)}
@media(min-width:760px){#kuta-readout{min-height:calc(5 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
#kuta-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#kuta-readout p:empty{display:none}
#kuta-readout #kuta-caption{font-weight:500;color:var(--text-body)}
#kuta-readout #kuta-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 */
#kuta-readout .mono{font-size:var(--fs-small);color:var(--text-body)}

section.tool-hero.has-sky>.kicker{order:0}
section.tool-hero.has-sky>h1{order:1}
section.tool-hero.has-sky>#kuta-figure{order:2}
section.tool-hero.has-sky>p.answer{order:3}
section.tool-hero.has-sky>.tool-desk{order:4}
@media(max-width:759.98px){
  section.tool-hero.has-sky>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.has-sky>#kuta-figure{margin-inline:calc(50% - 50vw);width:100vw;max-width:none;border-radius:0}
}
@media(min-width:1100px){
  section.tool-hero.has-sky{grid-template-rows:auto auto auto 1fr}
  section.tool-hero.has-sky>.tool-desk{grid-column:2;grid-row:1 / span 4}
  section.tool-hero.has-sky>#kuta-figure{grid-column:1;max-width:none}
}
