/* The new graph renderer's own pieces. Labels and the tooltip keep their fasra.css classes (.gl-label, .gl-tip). */

/* The name of the region in front. It arrives under a soft edge that sweeps across it and leaves the same way. */
.gl-region { position: absolute; left: var(--sp-5); top: var(--sp-4); z-index: 1; pointer-events: none;
  font-size: 13px; line-height: var(--lh-1); font-weight: 500; color: var(--text-primary);
  text-shadow: 0 0 2px var(--surface-2), 0 0 6px var(--surface-2);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 600ms var(--ease-out), mask-position 600ms var(--ease-out); }
.gl-region.in { -webkit-mask-position: 0 0; mask-position: 0 0; }
.gl-label.gl-agent { cursor: default; }
.gl-label.gl-agent b { font-size: 12px; font-weight: 500; color: var(--leaf); }
/* A label short of room gives up its second line before it gives up its place: the line wipes shut as it folds away. */
/* No text on the map is under 12 px. */
button.gl-label span { font-size: 12px; }
.gl-label span { max-height: 24px; overflow: hidden; clip-path: inset(0); transition: max-height 480ms var(--ease-out), clip-path 480ms var(--ease-out); }
.gl-label.gl-nosub span { max-height: 0; clip-path: inset(0 100% 0 0); }
/* A record named only while its node is in front keeps to a short line: the whole name is on its tooltip and card. */
.gl-label.gl-kid b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
/* The line only the node in front shows: real data from the node, wiped open as it comes forward. */
/* Folded, it has no width either, so the label's box is the size the placement pass measured. */
.gl-label .gl-more { max-height: 0; max-width: 0; clip-path: inset(0 100% 0 0);
  transition: max-height 480ms var(--ease-out), max-width 480ms var(--ease-out), clip-path 480ms var(--ease-out); }
.gl-label.gl-front .gl-more { max-height: 24px; max-width: 240px; clip-path: inset(0); }
.gl-label.gl-front.gl-nosub .gl-more { max-height: 0; max-width: 0; clip-path: inset(0 100% 0 0); }
/* On touch a label's tap area is at least 44 px tall, centred on it, whatever its own height. */
@media (pointer: coarse) {
  .gl-label::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: max(44px, 100%); transform: translateY(-50%); }
}

/* Reduced motion keeps the wipes as short moves rather than cuts. */
@media (prefers-reduced-motion: reduce) {
  .gl-label, .gl-label span { transition-duration: 120ms !important; }
}
