/* msc-years.css — the four yearly series of thesis figures 4.83 to 4.86 (msc-years.js, mount [data-msc="years"]): stacked as small
   multiples in a row of the evidence, on phones and under calm motion; carried sideways by the page's scroll where it stands in the
   page on a wide screen. Its colours (--my-*) are for black, or for the white plate of an ivory section. */

/* the chapter around the journey clips its overflow without becoming a scroll box, so that the frame can pin */
.msc-years-host{overflow:visible}
@supports (overflow:clip){.msc-years-host{overflow:clip}}

.my{--my-fg:#f1ece0;--my-mut:#a7a69c;--my-acc:#d4ad62;--my-ground:#0b100e;--my-chip:rgba(21,32,26,.94);--my-rgb:241,236,224}
section.ivory .my{--my-fg:#11100f;--my-mut:#66625b;--my-acc:#8f6b22;--my-ground:#fff;--my-chip:#fff;--my-rgb:17,16,15}
.my{position:relative;box-sizing:border-box;max-width:1440px;margin:clamp(28px,5vh,56px) auto 0;color:var(--my-fg);font-family:'JetBrains Mono',monospace}
.my.is-journey{max-width:none;margin-top:clamp(12px,3vh,32px)}
.my-frame{position:relative;display:flex;flex-direction:column;gap:clamp(10px,1.6vh,16px);opacity:0;transform:translateY(18px);transition:opacity .9s cubic-bezier(.215,.61,.355,1),transform .9s cubic-bezier(.215,.61,.355,1)}
.my.in .my-frame{opacity:1;transform:none}
.my.is-journey .my-frame{position:sticky;top:0;height:100vh;box-sizing:border-box;padding:calc(var(--pad,24px) + 40px) 0 calc(var(--pad,24px) * .5)}

/* the source line and the legend */
.my-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 28px;font-size:11px;line-height:1.4;letter-spacing:.06em;color:var(--my-mut)}
.my-src{color:var(--my-mut)}
.my-legend{display:flex;flex-wrap:wrap;gap:6px 20px}
.my-legend .lg{display:inline-flex;align-items:center;gap:8px}
.my-legend i{position:relative;display:inline-block;flex:none;width:20px}
.my-legend .lg-pt{height:1px;background:rgba(var(--my-rgb),.5)}
.my-legend .lg-pt::after{content:"";position:absolute;left:7px;top:-2.5px;width:6px;height:6px;border-radius:50%;background:var(--my-fg)}
.my-legend .lg-trend{height:2px;background:var(--my-acc)}
.my-legend .lg-band{height:10px;background:rgba(180,138,58,.3)}

/* the stage: one drawing, the reading laid over it */
.my-stage{position:relative;flex:1 1 auto;min-height:0}
.my-svg{position:absolute;left:0;top:0;display:block;width:100%;height:100%;overflow:visible;cursor:crosshair;touch-action:pan-y;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.my.is-journey .my-svg{cursor:default;touch-action:auto}
.my.is-journey .my-svg.reading{cursor:crosshair}
.my-svg:focus{outline:none}
.my-svg:focus-visible{outline:2px solid #b48a3a;outline-offset:8px}

.my-svg .base{stroke:rgba(var(--my-rgb),.2);stroke-width:1}
.my-svg .tk{transition:opacity .45s}
.my-svg .tk.off{opacity:0}
.my-svg .tk line{stroke:rgba(var(--my-rgb),.075);stroke-width:1}
.my-svg .tk text{font:400 10px 'JetBrains Mono',monospace;font-variant-numeric:tabular-nums;fill:var(--my-mut);text-anchor:end}
.my-band{fill:rgba(180,138,58,.17)}
.my-trend{fill:none;stroke:var(--my-acc);stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;opacity:.9}
.my-line{fill:none;stroke:rgba(var(--my-rgb),.46);stroke-width:1.1;stroke-linejoin:round}
.my-dots{fill:none;stroke:var(--my-fg);stroke-linecap:round}
.my-name{font:600 15px Figtree,sans-serif;letter-spacing:-.01em;fill:var(--my-fg)}
.my-unit .uv{font:600 14px Figtree,sans-serif;letter-spacing:-.01em;font-variant-numeric:tabular-nums;fill:var(--my-fg)}
.my.is-narrow .my-chip{display:none}
.my-unit{font:400 10px 'JetBrains Mono',monospace;letter-spacing:.04em;fill:var(--my-mut)}
.my-axt{font:400 10px 'JetBrains Mono',monospace;letter-spacing:.04em;fill:var(--my-mut)}
.my-axis .ax{stroke:rgba(var(--my-rgb),.28);stroke-width:1}
.my-axis .ticks{fill:none;stroke:rgba(var(--my-rgb),.34);stroke-width:1}
.my-axis text{font:400 10px 'JetBrains Mono',monospace;fill:var(--my-mut);text-anchor:middle;transition:opacity .25s}
.my-axis text.off{opacity:0}
.my-fade{pointer-events:none}
.my-stop{stop-color:var(--my-ground)}
.my-pen,.my-pen-glow,.my-read{fill:none}
.my-pen{stroke:#b48a3a;stroke-width:1.3}
.my-pen-glow{stroke:rgba(180,138,58,.16);stroke-width:8}
.my-read{stroke:rgba(var(--my-rgb),.42);stroke-width:1;stroke-dasharray:2 3}
.my-ring{fill:none;stroke:var(--my-acc);stroke-width:1.5;pointer-events:none}

/* the annotations, as the figures print them, arriving with the pen */
.mk circle{fill:none;stroke:var(--my-acc);stroke-width:1.4;opacity:0;r:11px;transition:r .8s cubic-bezier(.16,1,.3,1),opacity .5s}
.mk text{font:700 15px Figtree,sans-serif;letter-spacing:-.01em;fill:var(--my-acc);opacity:0;transform:translateY(7px);transition:opacity .6s,transform .8s cubic-bezier(.16,1,.3,1)}
.mk text .l{font:400 10px 'JetBrains Mono',monospace;letter-spacing:.04em;fill:var(--my-mut)}
.mk.on circle{opacity:1;r:4px}
.mk.on text{opacity:1;transform:none}

/* the reading: a value beside each series, the year on the axis */
.my-tips{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none}
.my-chip,.my-pill{position:absolute;left:0;top:0;white-space:nowrap;will-change:transform;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .3s}
.my-chip{box-sizing:border-box;padding:3px 7px 3px 6px;background:var(--my-chip);border:1px solid rgba(var(--my-rgb),.12);border-left:2px solid #b48a3a;font:600 13px/1.25 Figtree,sans-serif;font-variant-numeric:tabular-nums;color:var(--my-fg)}
.my-pill{padding:3px 6px;background:#b48a3a;color:var(--my-ground);font:500 11px/1.2 'JetBrains Mono',monospace;letter-spacing:.04em}

.my-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.my-msg{margin:24px 0 0;font:400 15px/1.5 Figtree,sans-serif;color:var(--my-mut)}
.my.my-failed .my-frame{display:none}

/* calm: everything in place at once */
.my.my-calm .my-frame,.my.my-calm .my-chip,.my.my-calm .my-pill,.my.my-calm .tk,.my.my-calm .mk circle,.my.my-calm .mk text,.my.my-calm .my-axis text{transition:none}

@media (max-width:699.98px){
  .my-top{font-size:10px;gap:6px 16px}
  .my-legend{gap:4px 14px}
  .my-name{font-size:14px}
  .my-chip{padding:2px 6px 2px 5px;font-size:12px}
  .my-pill{font-size:10px}
}
@media (prefers-reduced-motion:reduce){
  .my-frame,.my-chip,.my-pill,.my-svg .tk,.mk circle,.mk text,.my-axis text{transition:none}
}
