/* /rahu-ketu-transit/: the path of Rāhu and Ketu on the ring of signs (node-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 live line; from 1100 px
   the ring stands in the right column beside them. Its place is taken before scripts and data. The type size of the
   ring is geometry: node-ring.js writes it on each text. */
#rk-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}
.node-ring{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1;margin:0 auto;overflow:visible}
.node-ring line,.node-ring circle,.node-ring path{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.node-ring .nr-round,.node-ring .nr-cross,.node-ring .nr-axis,.node-ring .nr-band{stroke-width:2}
.node-ring .nr-cross,.node-ring .nr-axis,.node-ring .nr-band{stroke:var(--text-body)}
.node-ring text{font-family:var(--font-body);font-weight:500;text-anchor:middle;dominant-baseline:central;fill:var(--text-muted)}
.node-ring .nr-sl.is-on,.node-ring .nr-node,.node-ring #nr-n{fill:var(--text-body)}
.node-ring #nr-n{font-family:var(--font-mono)}
@media (prefers-reduced-motion:no-preference){
  /* the lines of the live layer enter; the frame and every text stand at full contrast from the first frame */
  .node-ring.is-entering #nr-live>line{animation:nr-in var(--duration-picture) var(--ease-picture) both}
}
@keyframes nr-in{from{opacity:0}to{opacity:1}}

/* The lines under the ring: their place is kept before the data comes, by the longest view measured over every row
   of the table (the frame and «now»): 9 lines below 760 px, 6 from 760; a long line wraps,
   nothing is cut. */
#rk-readout{margin-top:var(--space-3);min-height:calc(9 * var(--fs-small) * var(--lh-dense) + var(--space-1));font-size:var(--fs-small);line-height:var(--lh-dense)}
@media(min-width:760px){#rk-readout{min-height:calc(6 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
#rk-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#rk-readout #rk-ring-caption{font-weight:500;color:var(--text-body)}
#rk-readout #rk-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 */
#rk-readout .mono{font-size:var(--fs-small);line-height:1;color:var(--text-body)}

@media(max-width:759.98px){
  section.sky-hero.has-ring>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.sky-hero.has-ring>#rk-figure{margin-inline:calc(50% - 50vw);width:100vw;max-width:none;border-radius:0}
}
@media(min-width:760px) and (max-width:1099.98px){
  .node-ring{max-width:520px}
}
@media(min-width:1100px){
  section.sky-hero.has-ring{display:grid;grid-template-columns:minmax(0,1fr) min(552px,calc(100vh - 136px));column-gap:var(--space-8);grid-template-rows:auto auto auto 1fr;align-items:start}
  section.sky-hero.has-ring>*{grid-column:1;min-width:0}
  section.sky-hero.has-ring>#rk-figure{grid-column:2;grid-row:1 / span 4}
  section.sky-hero.has-ring>h1{font-size:var(--fs-h3);margin-bottom:var(--space-3)}
}
