/* The same blue trace connects the hero, its topic links and the atlas. */
body.current-experience {
  --current-blue: #83c6eb;
  --current-light: #e8f6ff;
  --current-soft-blue: rgba(131, 198, 235, .45);
}

.hero-current.has-topic-links .current-caption {
  min-height: 146px;
}

.hero-current.has-topic-links .current-topic-link {
  position: relative;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  color: var(--current-blue);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.current-topic-link::before {
  content: '';
  width: 15px;
  height: 1px;
  flex: 0 0 15px;
  background: currentColor;
}

.hero-current.has-topic-links .current-topic-link:is(:hover, :focus-visible) {
  color: var(--current-light);
  text-decoration-color: currentColor;
}

.hero-current .current-node[aria-pressed='true'] {
  color: var(--current-light);
}

.hero-current .current-node[aria-pressed='true'] .current-node-marker {
  background-color: var(--current-blue);
  box-shadow: 0 0 0 7px rgba(131, 198, 235, .18);
}

@media (min-width: 761px) {
  .hero-current.has-topic-links .current-nodes {
    inset-block-end: 154px;
  }
}

@media (max-width: 760px) {
  .hero-current .current-node-marker {
    margin-block-start: .48em;
  }
}

/* Marker positions and all base geography remain in their original coordinate space. */
.current-atlas-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.atlas-route-outline,
.atlas-route-line,
.atlas-preview-line {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.atlas-route-outline,
.atlas-route-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.atlas-route-outline {
  stroke: #061f25;
  stroke-width: 4px;
}

.atlas-route-line {
  stroke: #69c5f5;
  stroke-width: 1.8px;
}

.atlas-route-outline.is-programme,
.atlas-route-line.is-programme {
  stroke-dasharray: .025 .02;
}

.atlas-route-line.is-programme {
  stroke: #afd8eb;
}

.atlas-preview-line {
  stroke: var(--current-soft-blue);
  stroke-width: 1.25px;
  stroke-dasharray: 2px 4px;
}

.atlas-origin {
  fill: none;
  stroke: var(--current-blue);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

.current-atlas.has-atlas-route .atlas-origin {
  opacity: .82;
}

.current-atlas .place-marker.is-atlas-preview {
  background: var(--current-blue);
  box-shadow: 0 0 0 5px rgba(131, 198, 235, .2);
}

.current-atlas .place-marker.is-atlas-preview.is-active {
  background: var(--accent);
}

.current-atlas .region-scope.is-atlas-preview:not(.is-active) {
  opacity: .65;
  border-color: var(--current-blue);
}

.current-atlas.is-atlas-targeting {
  cursor: pointer;
}

.has-current-atlas > .map-location {
  position: relative;
  inset: auto;
  z-index: auto;
  max-width: none;
  min-block-size: 5.5rem;
  padding: .8rem .95rem;
  border-inline-start: 2px solid var(--current-blue);
  background: linear-gradient(to right, rgba(131, 198, 235, .09), transparent 70%);
  display: grid;
  align-content: center;
  overflow-wrap: anywhere;
}

[dir='rtl'] .has-current-atlas > .map-location {
  left: auto;
  background: linear-gradient(to left, rgba(131, 198, 235, .09), transparent 70%);
}

.has-current-atlas > .map-location > span {
  margin-block-end: 2px;
  color: var(--current-blue);
}

.has-current-atlas > .map-legend {
  margin-block-start: 14px;
}

body.current-experience .geo-place {
  padding-inline-start: 0;
  transition-property: color, border-color, background-color;
}

body.current-experience .geo-place:is(:hover, :focus-visible) {
  color: var(--current-light);
  border-color: var(--current-blue);
}

.current-art-lens {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.current-art-image {
  translate: var(--art-drift-x, 0px) var(--art-drift-y, 0px);
}

.current-art-light {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: clamp(8rem, 19vw, 16rem);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--art-light-opacity, 0);
  transform: translate3d(var(--art-light-x, 0px), var(--art-light-y, 0px), 0) translate(-50%, -50%);
  background: radial-gradient(circle, rgba(131, 198, 235, .16), rgba(131, 198, 235, 0) 70%);
}

/* Keep the click point precise while the ring catches up. */
@media (hover: hover) and (pointer: fine) {
  body.current-experience.cursor-active,
  body.current-experience.cursor-active :is(a, button, summary),
  body.current-experience.cursor-active .current-atlas.is-atlas-targeting {
    cursor: none;
  }

  body.current-experience #fluid-cursor {
    visibility: hidden;
    mix-blend-mode: normal;
    transition: none;
  }

  body.current-experience.cursor-active #fluid-cursor.is-visible {
    visibility: visible;
  }

  body.current-experience #fluid-cursor .cursor-core {
    z-index: 1;
    width: 5px;
    height: 5px;
    opacity: 1;
    background: #f0feff;
    box-shadow: 0 0 0 1px #073044;
  }

  body.current-experience #fluid-cursor .cursor-ring {
    width: 28px;
    height: 28px;
    border: 1px solid rgb(236 244 238 / 75%);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 1px rgb(7 48 68 / 72%);
    transition: background-color .16s ease, border-color .16s ease, scale .12s ease;
  }

  body.current-experience #fluid-cursor.is-target .cursor-ring {
    border-color: var(--current-blue);
    background-color: rgb(131 198 235 / 8%);
  }

  body.current-experience[data-current-cursor='expertise-choose'] #fluid-cursor .cursor-ring {
    border-style: dashed;
  }

  body.current-experience[data-current-cursor='expertise-open'] #fluid-cursor .cursor-ring {
    border-color: var(--current-light);
  }

  body.current-experience #fluid-cursor.is-pressed .cursor-ring {
    scale: .9;
  }

  body.current-experience #fluid-cursor .cursor-ring::after {
    top: auto;
    bottom: -20px;
    padding: 2px 5px;
    border-radius: 4px;
    transform: translateX(-50%) scale(var(--cursor-label-scale, 1));
    font-size: 12px;
    color: #f0feff;
    background: #0a3044;
  }

  body.current-experience #fluid-cursor .cursor-ring[data-label='']::after {
    display: none;
  }
}

@media print, (prefers-reduced-motion: reduce) {
  .current-art-image { translate: none; }
  .current-art-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-current.has-topic-links .current-topic-link,
  .current-atlas .place-marker,
  body.current-experience .geo-place {
    transition: none;
  }
}
