/* /mercury-retrograde/: the calendar of Mercury retrograde (cal-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. The type size of the ring is geometry:
   cal-ring.js writes it on each text. */
#mr-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}
.cal-ring{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1;margin:0 auto;overflow:visible}
.cal-ring line,.cal-ring circle,.cal-ring path{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.cal-ring .cr-round,.cal-ring .cr-hand,.cal-ring .cr-arc.is-on{stroke-width:2}
.cal-ring .cr-hand,.cal-ring .cr-track.is-on,.cal-ring .cr-arc.is-on{stroke:var(--text-body)}
.cal-ring text{font-family:var(--font-body);font-weight:500;text-anchor:middle;dominant-baseline:central;fill:var(--text-muted)}
.cal-ring #cr-state,.cal-ring #cr-n{fill:var(--text-body)}
.cal-ring #cr-n{font-family:var(--font-mono)}
@media (prefers-reduced-motion:no-preference){
  /* the hand enters; the frame and every text stand at full contrast from the first frame */
  .cal-ring.is-entering #cr-live>line{animation:cr-in var(--duration-picture) var(--ease-picture) both}
}
@keyframes cr-in{from{opacity:0}to{opacity:1}}

/* The lines under the ring: their place is kept before the scripts run, by the longest view measured over every row
   of the table (the frame and «now», both phases; 186.7 px at 360 and 375, 125.8 px at 760 and from 1100): 9 lines
   below 760 px, 6 from 760; a long line wraps, nothing is cut. */
#mr-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){#mr-readout{min-height:calc(6 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
#mr-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#mr-readout #mr-ring-caption{font-weight:500;color:var(--text-body)}
#mr-readout #mr-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 */
#mr-readout .mono{font-size:var(--fs-small);line-height:1;color:var(--text-body)}
#mr-readout a .mono{color:inherit}

@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>#mr-figure{margin-inline:calc(50% - 50vw);width:100vw;max-width:none;border-radius:0}
}
@media(min-width:760px) and (max-width:1099.98px){
  .cal-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>#mr-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)}
}
