.atlas-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.atlas-heading .title-block {
  margin: 0;
  max-width: 780px;
}
.atlas-picker {
  position: relative;
  flex: none;
}
.atlas-picker summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: white;
}
.atlas-picker summary::-webkit-details-marker {
  display: none;
}
.atlas-picker[open] summary {
  background: var(--light);
  border-color: #afc1a7;
}
.atlas-picker-body {
  position: absolute;
  z-index: 2;
  right: 0;
  top: calc(100% + 7px);
  background: white;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  width: min(340px, 85vw);
  max-height: min(60vh, 480px);
  overflow: auto;
  box-shadow: 0 12px 40px #16372021;
}
.atlas-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f6f8f2;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.atlas-filter input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.atlas-picker h3 {
  font: 600 12px var(--sans);
  color: #56704f;
  margin: 13px 4px 4px;
}
.atlas-picker section a {
  display: block;
  padding: 4px;
  font-size: 14px;
}
.atlas-picker section a:hover,
.atlas-picker section [aria-current] {
  background: #eff4ea;
}
.atlas-no-match {
  font-size: 14px;
  padding: 12px 0;
}
.atlas-board {
  padding: 30px clamp(18px, 3vw, 48px) 14px;
  border-radius: 10px;
  background-color: #10271c;
  background-image: radial-gradient(#8ca98238 0.75px, transparent 0.85px);
  background-size: 14px 14px;
  color: white;
}
.atlas-graph {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22px, 6%) minmax(0, 1.08fr) minmax(22px, 6%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 255px;
  padding: 24px 0 8px;
}
.atlas-branch,
.atlas-current {
  position: relative;
}
.atlas-label {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #c6d8b9;
  font: 600 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.atlas-label span {
  font-size: 10px;
  border: 1px solid #687f66;
  border-radius: 3px;
  min-width: 20px;
  text-align: center;
}
.atlas-branch {
  display: grid;
  grid-template-rows: repeat(var(--nodes), 1fr);
  align-items: center;
  gap: 0;
}
.atlas-node {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #203c2d;
  border: 1px solid #5a765e;
  color: #ecf4e9;
  padding: 10px 12px;
  border-radius: 6px;
  font: 500 15px/1.25 var(--sans);
  min-height: 45px;
}
.atlas-node:hover,
.atlas-node:focus-visible {
  background: #2f513a;
  border-color: #b3c89b;
}
.atlas-node > .icon {
  margin-left: auto;
}
.atlas-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tint);
  flex: none;
}
.atlas-current {
  display: flex;
  justify-content: center;
  align-items: center;
}
.atlas-focus {
  width: 100%;
  border-radius: 8px;
  padding: 19px 16px;
  text-align: center;
  background: #e3efce;
  border: 1px solid #c8d6a9;
  color: #18301d;
}
.atlas-focus .tile-icon {
  background: #d4e4bf;
  width: 37px;
  height: 37px;
}
.atlas-focus-topic {
  display: block;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 0 3px;
  color: #476341;
}
.atlas-focus h2 {
  font: 400 clamp(27px, 2.8vw, 43px) / 1.06 var(--serif);
  letter-spacing: -0.6px;
}
.atlas-focus a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.atlas-wires {
  width: 100%;
  height: 100%;
  align-self: stretch;
  stroke: #91aa7f;
  stroke-width: 1.5;
}
.atlas-wires.flip {
  transform: scaleX(-1);
}
.atlas-board-note {
  color: #c5d4c3;
  text-align: center;
  font-size: 12px;
  margin-top: 12px;
}
.atlas-none {
  font-size: 13px;
  color: #d4dfce;
  text-align: center;
}
.atlas-description {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 1px;
  border-bottom: 1px solid var(--rule);
}
.atlas-description .topic-chip {
  flex: none;
}
.atlas-description p {
  color: var(--text);
  font-size: 15px;
}
.atlas-lists {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.atlas-list h2 {
  font: 400 33px/1.2 var(--serif);
  margin: 0 0 11px;
}
.atlas-list h2 small {
  font: 500 12px var(--sans);
  border-radius: 4px;
  padding: 3px 6px;
  background: var(--light);
  vertical-align: middle;
}
.atlas-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.atlas-list li {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.atlas-list li:last-child {
  border: 0;
}
.connection-name {
  font-size: 15px;
  font-weight: 600;
}
.connection-context {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  width: fit-content;
}
.connection-name:hover,
.connection-context:hover {
  text-decoration: underline;
}
@media (max-width: 760px) {
  .atlas-heading {
    display: block;
  }
  .atlas-picker {
    margin-top: 15px;
    width: max-content;
  }
  .atlas-picker-body {
    right: auto;
    left: 0;
  }
  .atlas-graph {
    grid-template-columns: 1fr 18px 1fr 18px 1fr;
  }
  .atlas-board {
    padding-inline: 15px;
  }
  .atlas-node {
    padding: 7px;
    font-size: 13px;
  }
  .atlas-node > .icon {
    display: none;
  }
  .atlas-focus {
    padding: 12px 9px;
  }
  .atlas-lists {
    gap: 15px;
  }
  .atlas-list h2 {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .atlas-graph {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 33px 12px;
    padding-top: 20px;
  }
  .atlas-current {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .atlas-focus {
    width: 100%;
    text-align: left;
    display: grid;
    align-items: center;
    grid-template-columns: 36px 1fr;
    gap: 3px 10px;
  }
  .atlas-focus .tile-icon {
    grid-row: 1/3;
  }
  .atlas-focus-topic {
    margin: 0;
  }
  .atlas-focus h2 {
    font-size: 27px;
  }
  .atlas-focus a {
    grid-column: 2;
    margin-top: 3px;
  }
  .atlas-current > .atlas-label {
    justify-content: flex-start;
    bottom: calc(100% + 6px);
  }
  .atlas-wires {
    display: none;
  }
  .atlas-branch {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }
  .atlas-label {
    justify-content: flex-start;
    bottom: calc(100% + 6px);
    font-size: 10px;
  }
  .atlas-board {
    padding: 15px 11px 12px;
  }
  .atlas-node {
    min-height: 40px;
  }
  .atlas-board-note {
    font-size: 12px;
    text-align: left;
  }
  .atlas-description {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .atlas-lists {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
@media print {
  .atlas-picker,
  .atlas-board-note {
    display: none;
  }
  .atlas-board {
    print-color-adjust: exact;
  }
}
