/* /eclipses/: the eclipses of 2026–2030 on the spiral of the nodes (eclipse-ring.js) are 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: eclipse-ring.js writes it on each text. */
#ec-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}
.eclipse-ring{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1;margin:0 auto;overflow:visible}
.eclipse-ring line,.eclipse-ring circle,.eclipse-ring path{fill:none;stroke:var(--accent-struct);stroke-width:1;vector-effect:non-scaling-stroke}
.eclipse-ring .er-round,.eclipse-ring .er-tick,.eclipse-ring .er-next{stroke-width:2}
.eclipse-ring .er-e circle,.eclipse-ring .er-tick,.eclipse-ring .er-next{stroke:var(--text-body)}
/* the eclipses passed, dot and all, step back */
.eclipse-ring .er-e.is-past circle{stroke:var(--text-muted)}
.eclipse-ring text{font-family:var(--font-body);font-weight:500;text-anchor:middle;dominant-baseline:central;fill:var(--text-muted)}
.eclipse-ring .er-yl,.eclipse-ring #er-n{font-family:var(--font-mono)}
.eclipse-ring .er-sl.is-on,.eclipse-ring .er-node,.eclipse-ring #er-n{fill:var(--text-body)}
@media (prefers-reduced-motion:no-preference){
  /* the ticks and the ring of the live layer enter; the frame and every text stand at full contrast from the first frame */
  .eclipse-ring.is-entering #er-live>*{animation:er-in var(--duration-picture) var(--ease-picture) both}
}
@keyframes er-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 from 365 to 759 px (186.7 px at 375), 10 below 365 (207 px at 340 to
   360), 11 below 340 (227.3 px at 300 to 330), 5 from 760 to 1099 (105.5 px), 6 from 1100 (125.8 px). A long line
   wraps, nothing is cut. */
#ec-readout{margin-top:var(--space-3);min-height:calc(6 * var(--fs-small) * var(--lh-dense) + var(--space-1));font-size:var(--fs-small);line-height:var(--lh-dense)}
@media(max-width:409.98px){#ec-readout{min-height:calc(7 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(max-width:389.98px){#ec-readout{min-height:calc(8 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(max-width:358.98px){#ec-readout{min-height:calc(9 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(max-width:339.98px){#ec-readout{min-height:calc(10 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:760px){#ec-readout{min-height:calc(4 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
@media(min-width:1100px){#ec-readout{min-height:calc(6 * var(--fs-small) * var(--lh-dense) + var(--space-1))}}
#ec-readout p{margin:0;color:var(--text-body);font-size:var(--fs-small);line-height:var(--lh-dense)}
#ec-readout #ec-ring-caption{font-weight:500;color:var(--text-body)}
#ec-readout #ec-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 */
#ec-readout .mono{font-size:var(--fs-small);line-height:1;color:var(--text-body)}
#ec-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>#ec-figure{margin-inline:calc(50% - 50vw);width:100vw;max-width:none;border-radius:0}
}
@media(min-width:760px) and (max-width:1099.98px){
  .eclipse-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>#ec-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)}
}
