.ps-product,
.ps-network {
  margin-block: clamp(3rem, 7vw, 7rem);
}

.ps-component-intro {
  max-inline-size: 48rem;
  margin-block-end: 1.5rem;
}

.ps-component-eyebrow {
  color: var(--accent-ink, #a94200);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ps-component-intro h2 {
  margin-block: 0.25rem 0.65rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.07;
  text-wrap: balance;
}

.ps-component-intro p:last-child {
  max-inline-size: 42rem;
  margin-block: 0;
}

.ps-model,
.ps-network-panel {
  border: 1px solid #344354;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0d1825;
  color: #f6f3eb;
}

.ps-model-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-block-size: clamp(17rem, 49vw, 35rem);
  background:
    radial-gradient(ellipse at 50% 72%, #f7f5ef, #e3ded3 72%);
}

.ps-model-photo,
.ps-model-scene,
.ps-model-viewer {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.ps-model-photo {
  object-fit: cover;
  object-position: 50% 54%;
}

.ps-model-stage::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0d18255e, transparent 44%);
  content: "";
  pointer-events: none;
}

.ps-model-scene {
  opacity: 0;
  pointer-events: none;
}

.ps-model[data-state="ready"] .ps-model-scene {
  opacity: 1;
  pointer-events: auto;
}

.ps-model-viewer.is-panning {
  cursor: move;
}

.ps-model-viewer > [slot="pan-target"] {
  display: block;
  inline-size: 0.375rem;
  block-size: 0.375rem;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px 1px #0d182580;
  pointer-events: none;
}

.ps-model[data-state="ready"] .ps-model-photo,
.ps-model[data-state="ready"] .ps-model-stage::after {
  visibility: hidden;
}

.ps-model-launch,
.ps-model-reset {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-block-size: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ps-model-launch {
  align-self: end;
  margin-block-end: 1.15rem;
  background: #ff9838;
  color: #141b23;
  box-shadow: 0 8px 24px #0d182544;
}

.ps-model-launch:hover {
  background: #ffae62;
}

.ps-model-launch:disabled {
  cursor: progress;
}

.ps-model-reset {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  border-color: #c9c2b1;
  background: #faf7ef;
  color: #0d1825;
}

.ps-model-reset:hover {
  border-color: #0d1825;
}

.ps-model [hidden] {
  display: none;
}

.ps-model-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 0.85rem;
  min-block-size: 3.5rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.86rem;
}

.ps-model-id {
  grid-column: 1;
  grid-row: 1;
  color: #ffb371;
  font-weight: 700;
}

.ps-model-status {
  grid-column: 1;
  grid-row: 2;
  color: #cbd4df;
}

.ps-model-shortcuts {
  grid-column: 1 / -1;
  color: #cbd4df;
}

.ps-model-shortcuts summary {
  width: fit-content;
  color: #ffb371;
  cursor: pointer;
}

.ps-model-shortcuts summary:focus-visible {
  outline-color: #ffb371;
}

.ps-model-shortcuts p {
  margin-block: 0.35rem 0;
}

@media (max-width: 620px) {
  .ps-model-reset {
    grid-row: 1;
    max-inline-size: 48vw;
  }

  .ps-model-status {
    grid-column: 1 / -1;
  }
}

.ps-network-map {
  position: relative;
  container-type: inline-size;
  inline-size: 100%;
  aspect-ratio: 12 / 5;
  min-block-size: 12rem;
  background-color: #0e1c2a;
  background-image:
    linear-gradient(#e2eaf00b 1px, transparent 1px),
    linear-gradient(90deg, #e2eaf00b 1px, transparent 1px),
    radial-gradient(ellipse at 34% 34%, #21334a, transparent 65%);
  background-size: 5% 10%, 5% 10%, 100% 100%;
}

.ps-network-map svg {
  inline-size: 100%;
  block-size: 100%;
}

.ps-map-dots {
  fill: none;
  stroke: #8fa4b8;
  stroke-opacity: 0.7;
  stroke-linecap: round;
  stroke-width: 5;
}

.ps-map-route {
  fill: none;
  stroke: #ff9838;
  stroke-width: 1.25;
  stroke-opacity: 0.68;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
}

.ps-map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  display: grid;
  place-items: center;
  inline-size: clamp(0.45rem, 1.05cqw, 1.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ps-map-pin-hq {
  inline-size: clamp(0.65rem, 1.45cqw, 1.75rem);
}

.ps-map-marker {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border: 1px solid #ff9838;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb371 0 36%, #ff98384a 40% 100%);
}

.ps-map-pin-hq .ps-map-marker {
  box-shadow: 0 0 0 4px #ff983831, 0 0 16px 4px #ff983850;
}

.ps-map-pin:hover .ps-map-marker,
.ps-map-pin:focus-visible .ps-map-marker,
.ps-map-pin[aria-current="location"] .ps-map-marker {
  background: #ffb371;
  box-shadow: 0 0 0 4px #ff98386c, 0 0 16px 4px #ff983880;
}

.ps-map-pin:is(:hover, :focus-visible, [aria-current="location"]) {
  z-index: 1;
}

.ps-map-label path {
  fill: none;
  stroke: #ffad64;
  stroke-opacity: 0.45;
  vector-effect: non-scaling-stroke;
}

.ps-map-label text {
  fill: #f6f3eb;
  stroke: #0d1825;
  stroke-width: 4px;
  paint-order: stroke;
  font-size: 16px;
  font-weight: 650;
}

.ps-map-label-key text {
  fill: #ffbc81;
  font-weight: 800;
}

.ps-map-mobile-label {
  display: none;
}

.ps-map-pin:focus-visible,
.ps-region a:focus-visible,
.ps-region h3:focus-visible,
.ps-region summary:focus-visible,
.ps-model button:focus-visible {
  outline: 2px solid #ffb371;
  outline-offset: 3px;
}

.ps-map-caption {
  margin: 0;
  padding: 0.875rem 1.15rem;
  border-block: 1px solid #344354;
  color: #cbd4df;
  font-size: 0.78rem;
}

.ps-network-regions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.ps-region {
  min-inline-size: 0;
  padding: 1rem 1.15rem;
  scroll-margin-block-start: 6rem;
}

.ps-region + .ps-region {
  border-inline-start: 1px solid #344354;
}

.ps-region h3,
.ps-region summary {
  margin: 0;
  color: #f6f3eb;
  font-size: 1.07rem;
  font-weight: 700;
  line-height: 1.45;
}

.ps-region address,
.ps-region ul {
  margin-block: 0.65rem 0;
  color: #cbd4df;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ps-region address {
  font-style: normal;
  unicode-bidi: isolate;
}

.ps-region ul {
  display: grid;
  gap: 0.4rem;
  padding-inline-start: 0;
  list-style: none;
}

.ps-region li {
  scroll-margin-block: 4rem;
}

.ps-region li[data-map-selected] a {
  color: #ffb371;
}

.ps-region a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #8fa4b8;
  text-underline-offset: 0.19em;
}

.ps-region a:hover,
.ps-region a svg {
  color: #ffb371;
}

.ps-region a svg {
  flex-shrink: 0;
}

.ps-region summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.ps-region summary::-webkit-details-marker {
  display: none;
}

.ps-region summary span {
  display: grid;
  place-items: center;
  min-inline-size: 1.4rem;
  min-block-size: 1.4rem;
  border-radius: 50%;
  background: #253449;
  color: #ffb371;
}

.ps-region summary span::before {
  content: "+";
}

.ps-region[open] summary span::before {
  content: "−";
}

@container (max-width: 800px) {
  .ps-map-label {
    display: none;
  }

  .ps-map-mobile-label {
    position: absolute;
    right: calc(100% + 0.35rem);
    bottom: 50%;
    display: block;
    min-inline-size: max-content;
    padding: 0.18rem 0.32rem;
    border-radius: 0.25rem;
    background: #0d1825;
    color: #ffbc81;
    font-size: 0.68rem;
    font-weight: 700;
  }

  .ps-map-pin-hq .ps-map-mobile-label {
    right: auto;
    left: calc(100% + 0.35rem);
    bottom: calc(100% + 0.2rem);
  }
}

@media (max-width: 620px) {
  .ps-network-regions {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-region + .ps-region {
    border-inline-start: 0;
    border-block-start: 1px solid #344354;
  }

  .ps-map-dots {
    stroke-width: 7;
  }

  .ps-map-route {
    stroke-width: 1;
  }

  .ps-region a {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.75rem;
  }
}
