.development .atlas {
  --atlas-ink: #183b31;
  --atlas-muted: #4c574a;
  --atlas-gold: #d0ac65;
  --atlas-rule: #cbb994;
  --atlas-incoming: #c2e4ec;
  --atlas-outgoing: #ffe19a;
  container: plumora-atlas / inline-size;
}

.atlas-scope {
  display: grid;
  gap: 6px 24px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-block-end: 13px;
  padding-block: 10px;
  border-block-start: 1px solid var(--atlas-rule);
}

.atlas .atlas-eyebrow {
  margin: 0;
  padding: 0;
  color: #75532c;
  font: 700 .75rem/1.3 var(--sans);
  letter-spacing: .065em;
  text-transform: uppercase;
}

.development .atlas-name #atlas-title {
  text-wrap: wrap;
  margin: 4px 0 0;
  color: var(--atlas-ink);
  font-size: clamp(1.9rem, 4.55cqw, 3.05rem);
  line-height: .98;
}

.atlas-scope #development-map-scope { margin-block-end: 3px; }

.atlas #development-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(11px, 2.2cqw, 28px);
  margin: 0;
  padding: 0;
  border: 0;
}

.atlas #development-metrics div {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 0;
  border: 0;
}

.atlas #development-metrics dt { order: 1; color: var(--atlas-muted); font-size: .84rem; }
.atlas #development-metrics dd { margin: 0; color: var(--atlas-ink); font: 700 .9rem/1.3 var(--sans); }

.atlas-graph { position: relative; isolation: isolate; }

.atlas-scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: #2688a5;
  outline: 1px solid #7c653e;
  outline-offset: -1px;
}

.atlas-landscape, .atlas-edge-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.atlas-landscape { object-fit: cover; }
.atlas-edge-layer { z-index: 2; overflow: visible; pointer-events: none; }

.atlas-edge, .atlas-edge-underlay {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.atlas-edge { stroke: #fff2bd; stroke-opacity: .48; stroke-width: 1.3; }
.atlas-edge-underlay { stroke: #153d3b; stroke-opacity: .36; stroke-width: 2.8; }
.atlas-overview-routes { opacity: .54; }
.atlas-graph[data-emphasis] .atlas-overview-routes { opacity: .29; }
.atlas-edge[data-highlighted] { stroke-width: 2.3; stroke-opacity: 1; }
.atlas-highlighted-routes .atlas-edge-underlay { stroke-opacity: .97; stroke-width: 5.1; }
.atlas-edge--incoming[data-highlighted] { stroke: var(--atlas-incoming); stroke-dasharray: 5 3; }
.atlas-edge--outgoing[data-highlighted] { stroke: var(--atlas-outgoing); }
.atlas-arrow { stroke: #193e39; stroke-width: .8; }
.atlas-arrow--overview { fill: #fff1b6; opacity: .7; }
.atlas-arrow--incoming { fill: var(--atlas-incoming); }
.atlas-arrow--outgoing { fill: var(--atlas-outgoing); }
.atlas-signal :is(rect,path) { stroke: #544519; stroke-width: 1; }
.atlas-signal rect { fill: #fff9e4; }
.atlas-signal path { fill: none; }
.atlas-map-point { fill: #fff3d6; stroke: #184438; stroke-width: 1; }
.atlas-map-point[data-related] { stroke-width: 2.5; }
.atlas-map-point[data-active] { fill: #ffdc91; stroke-width: 3.5; }
.atlas-graph[data-emphasis] .atlas-map-point:not([data-active], [data-related]) { opacity: .44; }

.atlas-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(10px, 3cqw, 30px);
  margin-block-start: 18px;
}

.atlas-group { min-inline-size: 0; }

.development .atlas-plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-block-size: 32px;
  margin: 0 0 6px;
  padding: 5px 6px 5px 10px;
  border: 1px solid #d6b369;
  border-radius: 7px;
  background: #173e36;
  box-shadow: inset 0 0 0 2px #173e36, inset 0 0 0 3px #b08c4e80, 0 1px 2px #342b22b3;
  color: #fff6dd;
  font: 400 clamp(1.1rem, 3.2cqw, 1.48rem)/1 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}

.atlas-count {
  display: grid;
  flex: none;
  place-items: center;
  min-inline-size: 1.62em;
  min-block-size: 1.48em;
  border-inline-start: 1px solid #d6b36975;
  color: #f1d28f;
  font: 700 .72rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

.atlas-nodes { display: grid; gap: 4px; }

.atlas-node {
  --atlas-sign-paper: #fff9ed;
  --atlas-sign-relief: inset 0 1px #fff8e5, inset 0 -1px #b6834440, 0 1px 2px #43372142;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 5px 8px;
  border: 1px solid #a27b48;
  border-radius: 5px;
  background:
    linear-gradient(180deg, #fff9ed75, #d39a4f17),
    var(--atlas-sign-paper) url("assets/atlas-parchment.webp") center / 180px auto;
  background-blend-mode: normal, multiply;
  box-shadow: var(--atlas-sign-relief);
  color: var(--atlas-ink);
  cursor: pointer;
  font: 650 .84rem/1.2 var(--sans);
  text-align: start;
  -webkit-tap-highlight-color: transparent;
}

.atlas-node::before {
  flex: none;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: #795c2e;
  content: "";
}

.atlas-node-label { min-inline-size: 0; overflow-wrap: anywhere; }

.atlas-node[data-related] {
  --atlas-sign-paper: #fffdf2;
  border-color: #2c5c4b;
  box-shadow: inset 0 0 0 1px #2c5c4b, var(--atlas-sign-relief);
}

.atlas-node:is([aria-pressed="true"], [data-active]) {
  --atlas-sign-paper: #f7d894;
  border-color: #8a601d;
}

.atlas-node[aria-pressed="true"]::before { border-radius: 1px; background: #755223; rotate: 45deg; }
.atlas-node[data-active] { z-index: 2; box-shadow: 0 0 0 2px #214b40, 0 0 0 4px #f7e4a2, var(--atlas-sign-relief); }
.atlas-node[data-active]::before { background: #755223; }
.development .atlas-node:focus-visible { z-index: 3; outline-color: #143f36; box-shadow: 0 0 0 3px #fff3cd; }

.atlas-detail {
  position: relative;
  display: grid;
  align-content: start;
  gap: 15px clamp(16px, 4cqw, 48px);
  margin-block-start: 15px;
  padding: 18px clamp(12px, 2.15cqw, 26px) 12px;
  border: 1px solid #c2a676;
  border-block-start: 2px solid #bf9a56;
  border-radius: 5px;
  background: linear-gradient(125deg, #fcf6e8, #f4e8ce);
  color: var(--atlas-ink);
}

.development .atlas-detail h4 {
  margin-block: 3px 6px;
  color: var(--atlas-ink);
  font-size: clamp(1.75rem, 4.6cqw, 2.6rem);
  line-height: 1.01;
}

.atlas-detail p { max-inline-size: 48ch; color: var(--atlas-muted); font-size: .89rem; line-height: 1.5; }
.atlas-detail #development-node-group { color: #75532c; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.atlas-relationships { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(10px, 2cqw, 24px); }
.atlas-direction { min-inline-size: 0; }

.atlas-detail .atlas-direction h5 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-block-size: 24px;
  margin: 0 0 5px;
  border-block-end: 1px solid #c8b188;
  font: 700 .76rem/1.25 var(--sans);
}

.atlas-direction--incoming h5 { color: #315b66; }
.atlas-direction--outgoing h5 { color: #7b531f; }
.atlas-direction h5::before { inline-size: 14px; border-block-start: 2px solid currentColor; content: ""; }
.atlas-direction--incoming h5::before { border-block-start-style: dashed; }
.atlas-direction ul { margin: 0; padding: 0; list-style: none; }
.atlas-direction li { margin-block-end: 5px; color: var(--atlas-muted); font-size: .79rem; line-height: 1.38; }
.atlas-direction li strong { color: var(--atlas-ink); font-weight: 700; }
.atlas-direction li strong::after { color: #a18445; content: " · "; }

.atlas-status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.atlas-clear {
  justify-self: start;
  min-block-size: 44px;
  margin: 0;
  padding: 5px 1px;
  border: 0;
  background: transparent;
  color: #68471d;
  cursor: pointer;
  font: 700 .81rem/1.3 var(--sans);
  text-decoration: underline;
  text-underline-offset: .23em;
}

.atlas .atlas-clear[hidden] { display: block; visibility: hidden; }

.atlas figcaption { display: flex; flex-wrap: wrap; gap: 2px 22px; line-height: 1.55; }
.atlas-text-map { margin-block-start: 10px; border-block: 1px solid var(--atlas-rule); color: var(--atlas-ink); }
.atlas-text-map summary { display: flex; align-items: center; justify-content: space-between; min-block-size: 48px; padding: 7px 4px; font: 700 .875rem/1.35 var(--sans); }
.atlas-text-map summary::after { margin-inline-start: 12px; color: #75532c; font-weight: 500; font-size: 1.18rem; content: "+"; }
.atlas-text-map[open] summary::after { content: "−"; }
.atlas-text-map ul { margin: 0 0 16px; padding-inline-start: 21px; color: var(--atlas-muted); font-size: .86rem; }
.atlas-text-map li { break-inside: avoid; margin-block-end: 7px; }

@container plumora-atlas (min-width: 520px) {
  .atlas-detail { grid-template-columns: minmax(0, .72fr) minmax(0, 1.3fr); }
  .atlas-detail-intro { min-inline-size: 0; }
  .atlas-text-map ul { columns: 2; column-gap: 30px; }
}

@container plumora-atlas (width < 930px) {
  .atlas-edge[data-highlighted] { stroke-width: clamp(1.7px, .3cqw, 2.3px); }
  .atlas-highlighted-routes .atlas-edge-underlay { stroke-width: clamp(3.7px, .66cqw, 5.1px); }
  .atlas-group[data-group="services"] { grid-column: 1 / -1; }
  .atlas-group[data-group="services"] .atlas-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container plumora-atlas (650px <= width < 930px) {
  .atlas-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-group[data-group="services"] .atlas-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container plumora-atlas (520px <= width < 930px) {
  .atlas-detail { min-block-size: 268px; }
}

@container plumora-atlas (width < 620px) {
  .atlas-scope { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (pointer: fine) {
  @container plumora-atlas (min-width: 930px) {
    .atlas-groups {
      position: absolute;
      z-index: 3;
      inset: 0 0 auto;
      display: block;
      aspect-ratio: 3 / 2;
      margin: 0;
      pointer-events: none;
    }

    .atlas-group {
      position: absolute;
      inset-inline-start: var(--group-x);
      inset-block-start: var(--group-y);
      inline-size: var(--group-width, 25%);
      translate: -50% 0;
    }

    .atlas-group[data-group="surfaces"] { --group-x: 19.6%; --group-y: 23.3%; --group-width: 26%; }
    .atlas-group[data-group="experience"] { --group-x: 20.3%; --group-y: 66.9%; --group-width: 32%; }
    .atlas-group[data-group="services"] { --group-x: 50.9%; --group-y: 41.7%; --group-width: 33%; }
    .atlas-group[data-group="connections"] { --group-x: 79.8%; --group-y: 22.7%; --group-width: 25%; }
    .atlas-group[data-group="operations"] { --group-x: 81.1%; --group-y: 67.4%; --group-width: 27%; }

    .development .atlas-plaque {
      inline-size: max-content;
      max-inline-size: 100%;
      margin-inline: auto;
      min-block-size: clamp(28px, 2.75cqw, 35px);
      padding-inline: clamp(7px, .95cqw, 13px) 5px;
      font-size: clamp(1.23rem, 2.1cqw, 1.63rem);
      line-height: 1;
      text-wrap: nowrap;
    }

    .atlas-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(4px, .55cqw, 8px); }

    .atlas-node {
      inline-size: max-content;
      max-inline-size: 100%;
      min-block-size: clamp(27px, 2.32cqw, 33px);
      padding: 3px clamp(6px, .78cqw, 10px);
      align-self: center;
      pointer-events: auto;
      justify-self: start;
      font-size: clamp(.75rem, 1.155cqw, .89rem);
    }

    .atlas-node:nth-child(odd) { justify-self: end; }
    .atlas-detail { min-block-size: 232px; }
  }

  @container plumora-atlas (930px <= width < 1150px) {
    .atlas-detail { min-block-size: 270px; }
  }
}

@media (pointer: coarse) {
  @container plumora-atlas (min-width: 930px) {
    .atlas-group[data-group="services"] { grid-column: 1 / -1; }
    .atlas-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .atlas-group[data-group="services"] .atlas-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .atlas-detail { min-block-size: 268px; }
  }
}

@container plumora-atlas (width < 520px) {
  .atlas-scope { padding-block: 8px 2px; }
  .atlas #development-metrics { gap: 3px 12px; }
  .atlas #development-metrics dt { font-size: .76rem; }
  .atlas #development-metrics dd { font-size: .81rem; }
  .atlas-detail { gap: 8px; margin-block-start: 11px; }
  .atlas-detail-intro { display: flex; flex-direction: column; align-items: flex-start; min-block-size: 9.7rem; }
  .development .atlas-detail h4 { font-size: clamp(1.52rem, 7.3cqw, 2rem); }
  .atlas-detail .atlas-clear { margin-block-start: auto; }
  .atlas-relationships {
    align-content: start;
    block-size: 13rem;
    padding: 4px 5px 6px 1px;
    border-block-start: 1px solid #d3bc93;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #947447 transparent;
  }

  .development .atlas-relationships:focus-visible { outline-color: #846033; outline-offset: 1px; }
  .development .atlas-plaque { gap: 5px; padding-inline: 7px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-signal { display: none; }
}

/* Center the overview in the space reserved for component details. */
.atlas-graph:not([data-emphasis]) .atlas-detail {
  align-content: center;
  align-items: center;
  padding-block: 15px;
}
.atlas-graph:not([data-emphasis]) .atlas-clear[hidden] { display: none; }
@container plumora-atlas (width < 520px) {
  .atlas-graph:not([data-emphasis]) .atlas-detail {
    min-block-size: calc(22.7rem + 41px);
  }
  .atlas-graph:not([data-emphasis]) .atlas-detail-intro { min-block-size: 0; }
  .atlas-graph:not([data-emphasis]) .atlas-relationships { block-size: auto; }
}
@container plumora-atlas (width < 520px) {
  .atlas-graph:not([data-emphasis]) .atlas-relationships { padding-block-end: 0; }
  .atlas-graph:not([data-emphasis]) .atlas-direction li:last-child { margin-block-end: 0; }
}

.atlas-instruction {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin-block-start: 8px;
  color: var(--atlas-muted);
  font: .84rem/1.45 var(--sans);
}
.atlas-instruction svg { flex: 0 0 17px; height: 17px; color: #876126; }
.atlas-instruction-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .atlas-instruction-pointer { display: none; }
  .atlas-instruction-touch { display: inline; }
}

.atlas-graph[data-demo] .atlas-node[data-active] {
  box-shadow: var(--atlas-sign-relief), 0 0 0 2px #f4d38b, 0 0 16px #f4ca67b0;
}
.atlas-graph[data-demo] .atlas-map-point[data-active] { filter: drop-shadow(0 0 9px #ffcf69); }
@media (prefers-reduced-motion: no-preference) {
  .atlas-graph[data-demo] :is(.atlas-node, .atlas-map-point, .atlas-highlighted-routes) {
    transition: box-shadow .32s ease, filter .32s ease, opacity .32s ease;
  }
}
.atlas-graph[data-demo-fading] .atlas-node[data-active] { box-shadow: var(--atlas-sign-relief); }
.atlas-graph[data-demo-fading] .atlas-map-point[data-active] { filter: none; }
.atlas-graph[data-demo-fading] .atlas-highlighted-routes { opacity: .42; }

.atlas-mobile-panel[hidden], [data-mobile-atlas] .atlas-group[hidden] { display: none; }

[data-mobile-atlas] :is(.atlas-scene, .atlas-mobile-panel) { touch-action: pan-y pinch-zoom; }
[data-mobile-atlas] .atlas-overview-routes { opacity: .38; }
[data-mobile-atlas] .atlas-map-point { stroke-width: 4; }
[data-mobile-atlas] .atlas-map-point[data-related] { stroke-width: 5; }
[data-mobile-atlas] .atlas-map-point[data-active] { stroke-width: 7; }
.atlas-group-pin circle { fill: #f7ebce; stroke: #23483c; stroke-width: 6; }
.atlas-group-pin text {
  fill: #23483c;
  text-anchor: middle;
  dominant-baseline: central;
  font: 700 52px var(--sans);
}
.atlas-group-pin[data-current] circle { fill: #23483c; stroke: #f7d48e; stroke-width: 9; }
.atlas-group-pin[data-current] text { fill: #fff3d4; }

.atlas-mobile-panel {
  margin-block-start: 10px;
  padding: clamp(7px, 2.4vw, 14px);
  border: 1px solid #c2a676;
  border-radius: 6px;
  background: #f4e8ce;
}
.atlas-group-index { display: flex; flex-wrap: wrap; gap: 5px; }
.atlas-group-nav button {
  min-block-size: 44px;
  border: 1px solid #bca47a;
  border-radius: 4px;
  color: #23483c;
  background: #fff8e9;
  font: 650 .77rem/1.2 var(--sans);
  cursor: pointer;
}
.atlas-group-tab {
  flex: 1 1 28%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 5px 6px;
  text-align: start;
}
.atlas-group-tab span:first-child { color: #715022; font-weight: 750; }
.atlas-group-tab[aria-pressed="true"] { border-color: #23483c; background: #23483c; color: #fff3d4; }
.atlas-group-tab[aria-pressed="true"] span:first-child { color: #f5cf83; }
.atlas-group-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  margin-block-start: 8px;
  color: #23483c;
}
.atlas-group-step .atlas-group-arrow { font-size: 1.15rem; }
.atlas-group-current { text-align: center; font: 650 .92rem/1.2 var(--sans); }
[data-mobile-atlas] .atlas-groups { display: block; margin-block-start: 8px; }
[data-mobile-atlas] .atlas-group .atlas-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
[data-mobile-atlas] .atlas-plaque { display: none; }
[data-mobile-atlas] .atlas-node {
  min-block-size: 44px;
  width: 100%;
  padding: 5px 7px;
  font-size: .82rem;
}

[data-mobile-atlas] .atlas-detail {
  grid-template-columns: minmax(0, 1fr);
  min-block-size: 0;
  padding: 11px 12px;
}
[data-mobile-atlas] .atlas-detail-intro { min-block-size: 0; }
[data-mobile-atlas] .atlas-detail .atlas-clear { min-block-size: 44px; margin-block-start: 3px; }
[data-mobile-atlas] .atlas-detail .atlas-clear[hidden] { display: none; }
[data-mobile-atlas] .atlas-relationships { block-size: auto; overflow: visible; }
[data-mobile-atlas] .atlas-graph:not([data-emphasis]) .atlas-detail { min-block-size: 0; padding-block: 11px; }

.atlas-instruction-mobile { display: none; }
[data-mobile-atlas] .atlas-instruction :is(.atlas-instruction-pointer, span.atlas-instruction-touch) { display: none; }
[data-mobile-atlas] .atlas-instruction :is(path.atlas-instruction-touch, .atlas-instruction-mobile) { display: inline; }
