/* The path of a chronicle (campaign-path.js): a line down the left margin from the first act to the last,
   drawn as the reader scrolls; each act is a mark on it that lights up when reached. Decoration, aria-hidden. */
#camp{position:relative}
.cpath{position:absolute;z-index:5;width:0;pointer-events:none;
  left:calc(max((100% - var(--wrap)) / 2,0px) + var(--gut) / 2)}
.cpath-line,.cpath-lit{position:absolute;top:0;left:-1px;width:2px;transform-origin:50% 0}
.cpath-line{height:100%;background:repeating-linear-gradient(180deg,var(--rule-2) 0 4px,transparent 4px 10px)}
.cpath-lit{height:var(--played,100%);background:linear-gradient(180deg,rgba(185,208,234,.5),var(--light));transform:scaleY(var(--lit,0))}
.cpath-m{position:absolute;left:0;width:11px;height:11px;margin:-5.5px 0 0 -5.5px;rotate:45deg;background:var(--ink);border:1px solid var(--rule-2);
  transition:background-color .4s var(--ease),border-color .4s var(--ease)}
.cpath-m.on{background:var(--light);border-color:var(--light)}
.cpath-m::after{content:"";position:absolute;inset:-1px;border:1px solid var(--light);opacity:0}
@media (prefers-reduced-motion:no-preference){
  .cpath-m.hit::after{animation:cpathHit .8s var(--rise) both}
  .cpath-m.hit{animation:cpathPop .5s var(--rise) both}
}
@keyframes cpathHit{from{opacity:.9;scale:1}to{opacity:0;scale:3.2}}
@keyframes cpathPop{40%{scale:1.5}}
/* a phone has no margin to spare: the line would sit on the text */
@media (max-width:720px){.cpath{display:none}}
@media print{.cpath{display:none}}
