/* /navamsa-chart/: the ring of 108 padas (pada-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. */
#pada-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}
.pada-ring{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1;margin:0 auto;overflow:visible}
.pada-ring line,.pada-ring circle,.pada-ring path,.pada-ring rect{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.pada-ring .pr-sign,.pada-ring .pr-varg,.pada-ring .pr-hand{stroke-width:2}
.pada-ring .pr-varg,.pada-ring .pr-hand{stroke:var(--text-body)}
.pada-ring .pr-grid,.pada-ring .pr-frame{stroke:var(--text-muted)}
.pada-ring text{font-family:var(--font-body);font-weight:500;font-size:14px;text-anchor:middle;dominant-baseline:central;fill:var(--text-body)}
.pada-ring .pr-cap,.pada-ring .pr-more{fill:var(--text-muted)}
@media (prefers-reduced-motion:no-preference){
  /* the marks enter; the labels stand at full contrast from the first frame */
  .pada-ring.is-entering #pr-live>line{animation:pr-in var(--duration-picture) var(--ease-picture) both}
}
/* the frame stands from the first paint and does not blink */
@keyframes pr-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. */
#pada-readout{margin-top:var(--space-3);min-height:calc(9 * var(--fs-small) * var(--lh-dense));font-size:var(--fs-small);line-height:var(--lh-dense)}
#pada-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#pada-readout p:empty{display:none}
#pada-readout #pada-caption{font-weight:500;color:var(--text-body)}
#pada-readout #pada-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 */
#pada-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>#pada-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>#pada-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>#pada-figure{grid-column:2;grid-row:1 / span 4;max-width:none;width:calc(clamp(420px,100vh - 300px,540px) + 2 * var(--space-4));margin:0}
  section.tool-hero.has-sky>h1{font-size:var(--fs-h3)}
}
