/* /planetary-positions/: the wheel of this minute (wheel.js, pp-wheel.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, and text on the sky is no brighter than --text-body. Below 1100 px: kicker, h1, the
   wheel, the answer, the form; from 1100 px the wheel stands under the h1 in the left column and the form keeps the
   right one. Its place is taken before scripts and data: the square of the wheel and the lines under it. */
#pp-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}
#pp-svg{max-width:560px;margin:0 auto}

/* The wheel (wheel.js): the rules of the home page (dome.css), which this page does not load. */
.sky-wheel{display:block;width:100%;height:auto;aspect-ratio:1;overflow:visible}
.sky-wheel .w-line{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.sky-wheel .w-moon-nak{stroke-width:2}
.sky-wheel .w-leader{stroke-opacity:.6}
.sky-wheel .w-sign{fill:var(--accent-struct);font-size:28px}
.sky-wheel .w-house{fill:var(--text-muted);font-family:var(--font-mono);font-size:20px}
.sky-wheel .w-graha{cursor:pointer;outline:none}
.sky-wheel .w-graha:focus-visible{outline:2px solid var(--accent-action);outline-offset:2px}
.sky-wheel .w-glyph{fill:var(--text-body);font-size:36px;transition:fill var(--duration-fast) var(--ease-inout)}
.sky-wheel .w-node .w-glyph{fill:var(--planet-rahu)}
.sky-wheel .w-retro{fill:var(--text-muted);font-family:var(--font-mono);font-size:60%}
.sky-wheel .w-graha:hover .w-glyph,.sky-wheel .w-graha.is-picked .w-glyph{fill:var(--accent-struct)}
.sky-wheel .w-tick{transition:stroke-width var(--duration-mid) var(--ease-inout)}
.sky-wheel .w-graha.is-picked .w-tick{stroke-width:2}
.sky-wheel .w-text{fill:var(--text-body)}
/* The stamp line of a picked graha is «sign degrees′ seconds″» in one run (wheel.js): Source Serif 4. */
.sky-wheel .w-stamp-mono{font-family:var(--font-display);font-variant-numeric:lining-nums tabular-nums;font-size:28px}
.sky-wheel .w-stamp-muted{fill:var(--text-muted);font-family:var(--font-mono);font-size:26px}
.sky-wheel .w-stamp-serif{font-family:var(--font-display);font-size:30px}
.sky-wheel .w-stamp-glyph-line{font-family:var(--font-display),var(--font-glyph);font-size:34px}
@media (prefers-reduced-motion:no-preference){
  .sky-wheel.is-entering .w-graha .w-line{animation:w-in var(--duration-mid) var(--ease-inout) both;animation-delay:calc(var(--duration-picture) / 2 + var(--i) * var(--stagger-picture))}
}
/* the frame, the glyphs and the stamp stand from the first paint in full contrast; only the lines of a graha enter */
@keyframes w-in{from{opacity:0}to{opacity:1}}
/* the frame before the data has no sizes of its own: its sign glyphs keep 14 px where the wheel is narrow — on a phone,
   as on the home page, and in the island of 460 px from 760 to 1099 px (a wheel of 428 px) */
@media(max-width:600px){.sky-wheel .w-sign{font-size:43px}}
@media(min-width:760px) and (max-width:1099.98px){.sky-wheel .w-sign{font-size:33px}}

/* The lines under the wheel: their place is kept before the data comes, for the longest view (a moment in the longest
   zone name, five retrograde planets, the line of a picked graha), measured: seven lines on a phone (3 + 2 + 2 at
   360 px), five from 760 px (the island of 460 px: 2 + 2 + 1), four from 1100 px (2 + 1 + 1 at 1100 and 1440 px).
   A long line wraps, nothing is cut. */
#pp-readout{margin-top:var(--space-3);min-height:calc(7 * var(--fs-small) * var(--lh-dense));font-size:var(--fs-small);line-height:var(--lh-dense)}
@media(min-width:760px){#pp-readout{min-height:calc(5 * var(--fs-small) * var(--lh-dense))}}
@media(min-width:1100px){#pp-readout{min-height:calc(4 * var(--fs-small) * var(--lh-dense))}}
#pp-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense);overflow-wrap:break-word}
#pp-readout #pp-ring-caption{font-weight:500}

section.tool-hero.has-sky>.kicker{order:0}
section.tool-hero.has-sky>h1{order:1}
section.tool-hero.has-sky>#pp-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>#pp-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>#pp-figure{grid-column:1;max-width:none}
  section.tool-hero.has-sky>h1{font-size:var(--fs-h3);margin-bottom:var(--space-3)}
  /* the wheel whole in the window at 1366 × 768 too */
  #pp-svg{max-width:min(560px,calc(100vh - 248px))}
}
