/* #plan: the three problems, each under its pictogram (plan.js draws them) */

#plan, #outlook { --pg-hole: #120D0A; }
:root[data-theme="dark"] :is(#plan, #outlook) { --pg-hole: #0B0807; }

#plan .pg-three { margin-top: 40px; }
#plan .pg-three > div { border-top: none; padding-top: 0; text-align: center; }

#plan .pg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
}

:is(#plan, #outlook) .pg-hole { fill: var(--pg-hole); stroke: var(--accent); stroke-width: 2.5; }
:is(#plan, #outlook) .pg-wave { fill: none; stroke-linecap: round; }
:is(#plan, #outlook) .pg-lin  { stroke: var(--accent); stroke-width: 3.5; }
:is(#plan, #outlook) .pg-quad { stroke: var(--muted); stroke-width: 2.5; }
:is(#plan, #outlook) .pg-ring { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 4 6; opacity: 0.7; }
:is(#plan, #outlook) .pg-orbit { fill: none; stroke: var(--muted); stroke-width: 2.5; opacity: 0.6; }
:is(#plan, #outlook) .pg-dot  { fill: var(--accent); }

/* second order in its own ink, here and in the coupling rings */
:is(#plan, #outlook) .pg-quad { stroke: var(--accent-2); }

/* the ultrarelativistic collision */
:is(#plan, #outlook) .pg-shock { stroke: var(--accent); stroke-width: 2; }
:is(#plan, #outlook) .pg-trail { stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
:is(#plan, #outlook) .pg-flash { fill: var(--accent); }

/* ----- the overview with timelines ---------------------------------- */
#plan .pg-three { margin-top: 0; }
#plan .pg { width: 300px; margin: 0 auto 10px; }
#plan .ol-h { font-size: 48px; }
#plan .ol-n { font-size: 40px; color: var(--accent); }

#plan .tl-svg { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: visible; }
#plan .tl-grid { stroke: var(--hair); stroke-width: 1.2; stroke-dasharray: 2 7; }
#plan .tl-year { font-size: 22px; fill: var(--muted); text-anchor: end; font-variant-numeric: lining-nums; }
#plan .tl-spine { stroke: var(--hair); stroke-width: 2; }
#plan .tl-dot { fill: var(--ink); opacity: 0.75; }
#plan .tl-dot.tl-mark { fill: var(--accent); opacity: 1; }
#plan .tl-label { font-size: 22px; fill: var(--muted); text-anchor: end; }
#plan .tl-count { font-size: 24px; fill: var(--muted); text-anchor: middle; font-style: italic; }
#plan .tl-cite { position: absolute; right: 140px; bottom: 96px; margin: 0; font-size: 22px; }

/* the dots of a timeline arrive in order of year when its press comes */
#plan .tl-dot, #plan .tl-label {
  transition: opacity 0.25s ease var(--d, 0s);
}
#plan .tl-col:not(.shown) .tl-dot,
#plan .tl-col:not(.shown) .tl-label { opacity: 0; transition: none; }
#plan .tl-lead { fill: none; stroke: var(--hair); stroke-width: 1.5; transition: opacity 0.25s ease var(--d, 0s); }
#plan .tl-col:not(.shown) .tl-lead { opacity: 0; transition: none; }
#plan .tl-cite { top: 40px; bottom: auto; }

/* hover a dot: who and when; click: the paper */
#plan .tl-svg { pointer-events: none; }
#plan .tl-link { pointer-events: auto; cursor: pointer; }
#plan .tl-dot { stroke: transparent; stroke-width: 7; transition-property: opacity, r; }
#plan .tl-link:hover .tl-dot { fill: var(--accent); opacity: 1; transition-delay: 0s; }
#plan .tl-tip {
  position: absolute;
  z-index: 5;
  padding: 4px 14px 7px;
  border: 1.5px solid var(--hair);
  border-radius: 6px;
  background: var(--bg);
  font-size: 26px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
#plan .tl-tip.on { opacity: 1; }
#plan .tl-tip-yr { color: var(--muted); }

/* who wrote it: the speaker, a member of the collaboration, or others */
#plan { --tl-me: var(--accent); --tl-sc: #3A6EA5; }
:root[data-theme="dark"] #plan { --tl-sc: #8FB4DC; }
#plan .tl-dot { fill: var(--muted); opacity: 0.7; }
#plan .tl-dot.tl-sc { fill: var(--tl-sc); opacity: 0.8; }
#plan .tl-dot.tl-me { fill: var(--tl-me); opacity: 1; }

#plan .tl-key {
  position: absolute;
  top: 44px;
  right: 140px;
  display: flex;
  gap: 30px;
  font-size: 24px;
  color: var(--muted);
}
#plan .tl-key i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: 2px;
}
#plan .tl-key .k-me { background: var(--tl-me); }
#plan .tl-key .k-sc { background: var(--tl-sc); opacity: 0.8; }
#plan .tl-key .k-ot { background: var(--muted); opacity: 0.7; }
