/* Lost in Notation: what only the essay needs (writing slots, graphics). The page shell is /reading.css. */
/* An empty place to write: dashed, unfilled, plainly not finished text. */
.write-here {
  margin: 8px 0 22px;
  min-height: 92px;
  border: 1.5px dashed var(--annotation);
  padding: 12px 16px;
  font: 13px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--annotation);
  background: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--annotation) 14%, transparent) 27px 28px);
}

/* Graphics */
.g { margin: 6px 0 30px; padding: 0; }
.g svg { display: block; width: 100%; height: auto; overflow: visible; }
.g text { font-family: var(--mono); fill: var(--ink); }
.g .label { font-size: 21px; }
.g .muted { fill: var(--muted); }
.g .readout { font-size: 40px; font-weight: 300; }
.g .readout-small { font-size: 24px; }
.g .big-label { font-size: 30px; }
.g .notch-num, .g .dot-label { font-size: 20px; fill: var(--muted); }
.g .dot-label { fill: var(--ink); }
.g .chip-num { font-size: 18px; }
.g .gold-text { fill: var(--annotation); }
.g .ring { fill: none; stroke: var(--ink); stroke-width: 2; }
.g .tick { stroke: var(--ink); stroke-width: 1.5; opacity: .7; }
.g .hand { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.g .hand.gold, .g .gold { stroke: var(--annotation); }
.g .hub { fill: var(--ink); }
.g .dot { fill: var(--ink); }
.g .gold-fill { fill: var(--annotation); }
.g .gold-arc { fill: none; stroke: var(--annotation); stroke-width: 8; stroke-linecap: round; opacity: .85; }
.g .chord { fill: none; stroke: var(--annotation); stroke-width: 3; stroke-linejoin: round; }
.g .axis { stroke: var(--ink); stroke-width: 1.5; }
.g .guide { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 4 5; }
.g .bar { fill: var(--rule); }
.g .bar.runner { fill: var(--ink); }
.g .bar.gold-fill { fill: var(--annotation); }
.g .gap { stroke: var(--annotation); stroke-width: 3; }
.g .chip { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.g .block { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.g .link { stroke: var(--annotation); stroke-width: 3; stroke-dasharray: 6 6; }
.g .link-solid { stroke: var(--ink); stroke-width: 2; }
.g .self-mark { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; }
.g figcaption { font: 12px/1.5 var(--sans); color: var(--muted); margin-top: 10px; letter-spacing: .01em; }

/* The one slider */
.g-slider { position: relative; padding: 6px 11px 0; }
.g-slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 34px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
  touch-action: pan-y; /* vertical swipes still scroll the page */
}
.g-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; background: linear-gradient(to right, var(--annotation) var(--p, 0%), var(--rule) var(--p, 0%));
}
.g-slider input[type="range"]::-moz-range-track { height: 3px; background: var(--rule); }
.g-slider input[type="range"]::-moz-range-progress { height: 3px; background: var(--annotation); }
.g-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--annotation);
}
.g-slider input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--annotation); }
.g-slider input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* labels and marks sit on the thumb's travel: inset by half a thumb on each side */
.g-stops, .g-marks { position: relative; margin: 0 11px; }
.g-stops { height: 22px; font: 12px/1.4 var(--mono); color: var(--muted); }
.g-stops span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.g-stops span.first { transform: translateX(-11px); }
.g-stops span.last { transform: translateX(calc(-100% + 11px)); }
.g-marks { height: 34px; }
.g-marks span { position: absolute; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.g-marks b { font: 12px/1 var(--mono); color: var(--annotation); font-weight: 400; margin-bottom: 3px; }
.g-marks i { order: 2; width: 2px; height: calc(4px + 12px * var(--h)); background: var(--annotation); }

/* Placeholder frames for graphics whose data is not exported yet */
.g-pending { border: 1px solid var(--rule); padding: 18px 20px; }
.g-pending p { font-size: 15px; margin: 0 0 8px; }
.g-pending .g-pending-note { font: 12px/1.5 var(--sans); color: var(--muted); margin: 0; }

@media (max-width: 600px) {
  .g-stops { font-size: 12px; }
}
