/* /vimshottari-dasha/: the ring of 120 years (dasha-ring.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 ring, the answer, the form; from 1100 px the ring
   stands on the right for the whole height of the hero. Its place is taken before scripts and data. */
#dasha-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}
.dasha-ring{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1;margin:0 auto;overflow:visible}
.dasha-ring line,.dasha-ring circle,.dasha-ring path{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.dasha-ring .dr-round,.dasha-ring #dr-live line,.dasha-ring #dr-nak-now,.dasha-ring #dr-maha-now{stroke-width:2}
.dasha-ring #dr-live line,.dasha-ring #dr-live path{stroke:var(--text-body)}
.dasha-ring #dr-nak-passed,.dasha-ring #dr-maha-passed,.dasha-ring #dr-antar-now,.dasha-ring #dr-life,.dasha-ring #dr-day-moon,.dasha-ring #dr-day-birth{stroke-width:3}
.dasha-ring #dr-live .dr-aspoke{stroke:var(--text-muted);stroke-width:1}
.dasha-ring text{font-family:var(--font-body);font-weight:500;font-size:14px;text-anchor:middle;dominant-baseline:central;fill:var(--text-body)}
.dasha-ring .dr-cap{fill:var(--text-muted)}
@media (prefers-reduced-motion:no-preference){
  /* the marks and the hand enter; the labels stand at full contrast from the first frame */
  .dasha-ring.is-entering #dr-live>line{animation:dr-in var(--duration-picture) var(--ease-picture) both}
}
/* the frame stands from the first paint and does not blink */
@keyframes dr-in{from{opacity:0}to{opacity:1}}

/* The lines under the ring: their place is kept before the data comes; a long line wraps, nothing is cut. */
#dasha-readout{margin-top:var(--space-3);min-height:calc(10 * var(--fs-small) * var(--lh-dense));font-size:var(--fs-small);line-height:var(--lh-dense)}
#dasha-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#dasha-readout p:empty{display:none}
#dasha-readout #dasha-caption{font-weight:500;color:var(--text-body)}
#dasha-readout #dasha-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 */
#dasha-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>#dasha-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>#dasha-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-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto 1fr}
  section.tool-hero.has-sky>.tool-desk{grid-column:1;grid-row:auto}
  section.tool-hero.has-sky>#dasha-figure{grid-column:2;grid-row:1 / span 4;max-width:none;width:calc(clamp(420px,100vh - 300px,500px) + 2 * var(--space-4));margin:0}
  section.tool-hero.has-sky>h1{font-size:var(--fs-h3);margin-bottom:var(--space-3)}
}
