/* Shared route switcher for the Leaf Solution Atlas. Namespaced to stay out of page styles. */
:root {
  --atlas-nav-ink: #111614;
  --atlas-nav-panel: #171d1a;
  --atlas-nav-panel-2: #202822;
  --atlas-nav-paper: #f1ead8;
  --atlas-nav-muted: #a9aa9f;
  --atlas-nav-line: rgba(241, 234, 216, 0.14);
  --atlas-nav-copper: #e6a34a;
  --atlas-nav-teal: #69cabb;
  --atlas-nav-rose: #dc7668;
  --atlas-nav-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.atlas-nav-launcher,
.atlas-nav-panel,
.atlas-nav-panel * {
  box-sizing: border-box;
}

.atlas-nav-launcher {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 2147483000 !important;
  min-width: 154px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 15px 0 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(230, 163, 74, 0.55) !important;
  border-radius: 4px !important;
  color: var(--atlas-nav-paper) !important;
  background:
    linear-gradient(110deg, rgba(230, 163, 74, 0.11), transparent 46%),
    var(--atlas-nav-ink) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28) !important;
  font-family: "IBM Plex Mono", "Noto Sans SC", ui-monospace, monospace !important;
  text-align: left !important;
  cursor: pointer !important;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

.atlas-nav-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.23;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 7px,
    rgba(255, 255, 255, 0.08) 8px
  );
  pointer-events: none;
}

.atlas-nav-launcher:hover {
  transform: translateY(-2px) !important;
  border-color: var(--atlas-nav-copper) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36), 0 0 0 3px rgba(230, 163, 74, 0.1) !important;
}

.atlas-nav-launcher:focus-visible,
.atlas-nav-close:focus-visible,
.atlas-nav-home:focus-visible,
.atlas-nav-link:focus-visible,
.atlas-nav-jump:focus-visible {
  outline: 2px solid var(--atlas-nav-copper) !important;
  outline-offset: 3px !important;
}

.atlas-nav-launcher__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 163, 74, 0.42);
  border-radius: 50%;
  color: var(--atlas-nav-copper);
  font-size: 17px;
  line-height: 1;
}

.atlas-nav-launcher__mark::before,
.atlas-nav-launcher__mark::after {
  content: "";
  position: absolute;
  background: rgba(230, 163, 74, 0.35);
}

.atlas-nav-launcher__mark::before {
  width: 1px;
  height: 44px;
}

.atlas-nav-launcher__mark::after {
  width: 44px;
  height: 1px;
}

.atlas-nav-launcher__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.atlas-nav-launcher__copy strong,
.atlas-nav-launcher__copy small {
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

.atlas-nav-launcher__copy strong {
  color: var(--atlas-nav-paper) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.12em !important;
  font-weight: 700 !important;
}

.atlas-nav-launcher__copy small {
  color: var(--atlas-nav-muted) !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  letter-spacing: 0.08em !important;
}

.atlas-nav-shell[hidden] {
  display: none !important;
}

.atlas-nav-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483001 !important;
  width: 100vw !important;
  height: 100vh !important;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif !important;
}

.atlas-nav-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(6, 9, 8, 0.6) !important;
  backdrop-filter: blur(5px);
  cursor: default !important;
  animation: atlas-nav-fade 180ms ease both;
}

.atlas-nav-panel {
  position: absolute !important;
  right: 18px !important;
  bottom: 18px !important;
  width: min(430px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 36px) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid rgba(230, 163, 74, 0.38) !important;
  border-radius: 7px !important;
  color: var(--atlas-nav-paper) !important;
  background:
    radial-gradient(500px 260px at 100% 0, rgba(105, 202, 187, 0.09), transparent 62%),
    linear-gradient(160deg, rgba(230, 163, 74, 0.06), transparent 45%),
    var(--atlas-nav-panel) !important;
  box-shadow: var(--atlas-nav-shadow) !important;
  text-align: left !important;
  isolation: isolate;
  animation: atlas-nav-rise 240ms cubic-bezier(0.2, 0.78, 0.22, 1) both;
}

.atlas-nav-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.atlas-nav-head {
  min-height: 74px;
  padding: 15px 16px 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--atlas-nav-line);
}

.atlas-nav-brand {
  display: grid;
  gap: 3px;
}

.atlas-nav-brand small {
  color: var(--atlas-nav-copper) !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  font-size: 9px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.25em !important;
}

.atlas-nav-brand strong {
  color: var(--atlas-nav-paper) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
}

.atlas-nav-close {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--atlas-nav-line) !important;
  border-radius: 50% !important;
  color: var(--atlas-nav-muted) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  font: 400 21px/1 "IBM Plex Mono", monospace !important;
  cursor: pointer !important;
}

.atlas-nav-close:hover {
  color: var(--atlas-nav-paper) !important;
  border-color: rgba(230, 163, 74, 0.55) !important;
}

.atlas-nav-scroll {
  min-height: 0;
  padding: 14px 12px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 163, 74, 0.42) transparent;
}

.atlas-nav-home,
.atlas-nav-link,
.atlas-nav-jump {
  text-decoration: none !important;
}

.atlas-nav-home {
  min-height: 52px;
  margin: 0 2px 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--atlas-nav-line);
  border-radius: 4px;
  color: var(--atlas-nav-paper) !important;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease;
}

.atlas-nav-home:hover,
.atlas-nav-home.is-active {
  border-color: rgba(230, 163, 74, 0.55);
  background: rgba(230, 163, 74, 0.08);
}

.atlas-nav-home span:first-child {
  display: grid;
  gap: 2px;
}

.atlas-nav-home b {
  color: var(--atlas-nav-paper) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.atlas-nav-home small {
  color: var(--atlas-nav-muted) !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
}

.atlas-nav-home em {
  color: var(--atlas-nav-copper) !important;
  font: 400 18px/1 "IBM Plex Mono", monospace !important;
  font-style: normal !important;
}

.atlas-nav-track + .atlas-nav-track {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--atlas-nav-line);
}

.atlas-nav-track__head {
  margin: 0 5px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.atlas-nav-track__head strong {
  color: var(--atlas-nav-paper) !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.04em !important;
}

.atlas-nav-track__head span {
  color: var(--atlas-nav-muted) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 8px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.15em !important;
}

.atlas-nav-list {
  display: grid;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.atlas-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.atlas-nav-link {
  min-height: 50px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--atlas-nav-muted) !important;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.atlas-nav-link:hover {
  color: var(--atlas-nav-paper) !important;
  border-color: var(--atlas-nav-line);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}

.atlas-nav-link.is-active {
  color: var(--atlas-nav-paper) !important;
  border-color: rgba(230, 163, 74, 0.42);
  background: linear-gradient(90deg, rgba(230, 163, 74, 0.12), rgba(230, 163, 74, 0.025));
}

.atlas-nav-link__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--atlas-nav-line);
  border-radius: 50%;
  color: var(--atlas-nav-muted) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 9px !important;
}

.atlas-nav-link.is-active .atlas-nav-link__num {
  color: var(--atlas-nav-ink) !important;
  border-color: var(--atlas-nav-copper);
  background: var(--atlas-nav-copper);
}

.atlas-nav-link__text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.atlas-nav-link__text b {
  overflow: hidden;
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-nav-link__text small {
  overflow: hidden;
  color: #81887f !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-nav-link__here {
  color: var(--atlas-nav-copper) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 8px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.12em !important;
}

.atlas-nav-foot {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--atlas-nav-line);
  background: rgba(4, 7, 6, 0.22);
}

.atlas-nav-jump {
  min-height: 50px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--atlas-nav-line);
  border-radius: 4px;
  color: var(--atlas-nav-paper) !important;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 150ms ease, background 150ms ease;
}

.atlas-nav-jump:hover {
  border-color: rgba(230, 163, 74, 0.52);
  background: rgba(230, 163, 74, 0.08);
}

.atlas-nav-jump--next {
  justify-content: flex-end;
  text-align: right;
}

.atlas-nav-jump__arrow {
  color: var(--atlas-nav-copper) !important;
  font: 400 15px/1 "IBM Plex Mono", monospace !important;
}

.atlas-nav-jump__text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.atlas-nav-jump__text small {
  color: var(--atlas-nav-muted) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 8px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.12em !important;
}

.atlas-nav-jump__text b {
  overflow: hidden;
  color: var(--atlas-nav-paper) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.atlas-nav-open {
  overflow: hidden !important;
}

@keyframes atlas-nav-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes atlas-nav-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .atlas-nav-launcher {
    right: 12px !important;
    bottom: 12px !important;
    min-width: 122px !important;
    height: 50px !important;
    padding: 0 12px 0 8px !important;
  }

  .atlas-nav-launcher__mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .atlas-nav-launcher__mark::before { height: 38px; }
  .atlas-nav-launcher__mark::after { width: 38px; }
  .atlas-nav-launcher__copy small { display: none !important; }

  .atlas-nav-panel {
    right: 8px !important;
    bottom: 8px !important;
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 6px !important;
  }

  .atlas-nav-head { min-height: 66px; padding: 12px 13px 11px 15px; }
  .atlas-nav-brand strong { font-size: 17px !important; }
  .atlas-nav-scroll { padding: 11px 9px 7px; }
  .atlas-nav-link { min-height: 47px; }
  .atlas-nav-foot { padding: 9px; gap: 6px; }
  .atlas-nav-jump { min-height: 48px; padding: 7px 8px; }
}

/* The Helix posters keep their authored 1600px canvas, but narrow screens can pan it.
   Navigation remains tied to the real device viewport instead of being scaled to 1600px. */
@media (max-width: 1599px) {
  html.atlas-fixed-layout {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
  }

  html.atlas-fixed-layout body {
    width: 100% !important;
    height: auto !important;
    min-height: var(--canvas-height) !important;
    overflow: visible !important;
  }

  html.atlas-fixed-layout body.atlas-nav-open {
    overflow: hidden !important;
  }

  html.atlas-fixed-layout .canvas {
    max-width: none !important;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-nav-launcher,
  .atlas-nav-link,
  .atlas-nav-jump,
  .atlas-nav-backdrop,
  .atlas-nav-panel {
    animation: none !important;
    transition: none !important;
  }
}
