/* /saturn-transit/ (#st-…) and /jupiter-transit/ (#jt-…): the path of the graha through the signs, time running down
   (path-chart.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 chart, the answer, the live line; from 1100 px the chart stands in the right column beside them. Its place
   (360 : 400) is taken before scripts and data. The type size of the chart is geometry: path-chart.js writes it on
   each text. */
#st-figure,#jt-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}
.path-chart{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:360 / 400;margin:0 auto;overflow:visible}
.path-chart line,.path-chart circle,.path-chart path{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.path-chart .pc-path,.path-chart .pc-mark,.path-chart .pc-dot{stroke-width:2}
.path-chart .pc-path,.path-chart .pc-mark{stroke:var(--text-muted)}
.path-chart .pc-mark.is-on,.path-chart .pc-now,.path-chart .pc-dot{stroke:var(--text-body)}
.path-chart text{font-family:var(--font-body);font-weight:500;text-anchor:middle;dominant-baseline:central;fill:var(--text-muted)}
.path-chart .pc-yl,.path-chart #pc-n{font-family:var(--font-mono)}
.path-chart .pc-sl.is-on,.path-chart #pc-state,.path-chart #pc-n{fill:var(--text-body)}
@media (prefers-reduced-motion:no-preference){
  /* the line of this minute and the point enter; the frame and every text stand at full contrast from the first frame */
  .path-chart.is-entering #pc-live>*{animation:pc-in var(--duration-picture) var(--ease-picture) both}
}
@keyframes pc-in{from{opacity:0}to{opacity:1}}

/* The lines under the chart: their place is kept before the data comes, by the longest view measured over every row
   of the table (the frame and «now»). Saturn: 7 lines below 760 px (146.1 px at 360 and 375, the frame; 9 below 360),
   4 from 760 to 1099 (85.2 px, the frame), 7 from 1100 (146.1 px, «now» of 20 Sep 2030). Jupiter: 7 lines below
   760 px (146.1 px at 350 to 375, the frame and «now»; 10 below 360: the frame at 310 to 330; 11 below 310), 4 from
   760 to 1099 (85.2 px), 7 from 1100 (146.1 px: the frame, «now» of 13 Mar 2030). A long line wraps, nothing is cut. */
#st-readout,#jt-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(max-width:359.98px){#st-readout{min-height:calc(9 * var(--fs-small) * var(--lh-dense) + var(--space-1))}#jt-readout{min-height:calc(10 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(max-width:309.98px){#jt-readout{min-height:calc(11 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:760px) and (max-width:1099.98px){#st-readout,#jt-readout{min-height:calc(4 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
#st-readout p,#jt-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#st-readout #st-chart-caption,#jt-readout #jt-chart-caption{font-weight:500;color:var(--text-body)}
#st-readout #st-cue,#jt-readout #jt-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; in the link they take its colour */
#st-readout .mono,#jt-readout .mono{font-size:var(--fs-small);line-height:1;color:var(--text-body)}
#st-readout a .mono,#jt-readout a .mono{color:inherit}

@media(max-width:759.98px){
  section.sky-hero.has-chart>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-chart>#st-figure,section.sky-hero.has-chart>#jt-figure{margin-inline:calc(50% - 50vw);width:100vw;max-width:none;border-radius:0}
}
@media(min-width:760px) and (max-width:1099.98px){
  .path-chart{max-width:520px}
}
@media(min-width:1100px){
  /* the column keeps the chart (padding 2 × 16, height 400/360 of its width) inside the window below the header */
  section.sky-hero.has-chart{display:grid;grid-template-columns:minmax(0,1fr) min(552px,calc(90vh - 80px));column-gap:var(--space-8);grid-template-rows:auto auto auto 1fr;align-items:start}
  section.sky-hero.has-chart>*{grid-column:1;min-width:0}
  section.sky-hero.has-chart>#st-figure,section.sky-hero.has-chart>#jt-figure{grid-column:2;grid-row:1 / span 4}
  section.sky-hero.has-chart>h1{font-size:var(--fs-h3);margin-bottom:var(--space-3)}
}
