/* Pure Stack architecture blocks — container map + actor map.
   Same rule as pure_cms explainer blocks: no background of our own. Everything
   is mixed from currentColor, so these sit inside whatever section colour the
   editor chose instead of dragging their own palette onto the page. */

.ps-app {
  border: 1.5px solid var(--ex-line-strong);
  border-radius: var(--ex-radius);
  padding: 1rem;
}
.ps-app-band {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}
.ps-app-band b {
  font-size: 1.15rem;
  font-weight: 900;
}
.ps-app-band span {
  color: var(--ex-muted);
  font-size: 0.88rem;
}

.ps-layer {
  border: 1.5px solid var(--ex-accent);
  border-radius: var(--ex-radius-sm);
  background: color-mix(in srgb, var(--ex-accent) 7%, transparent);
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}
.ps-layer:last-child {
  margin-bottom: 0;
}
.ps-layer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.ps-layer-head h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ex-accent);
  margin: 0;
}
.ps-layer-head .ex-code {
  margin: 0;
}
.ps-layer-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.ps-node {
  border: 1.5px solid var(--ex-line);
  border-radius: var(--ex-radius-sm);
  background: var(--ex-surface);
  padding: 0.65rem 0.75rem;
}
.ps-node b {
  font-size: 0.92rem;
  font-weight: 800;
  display: block;
}
.ps-node p {
  color: var(--ex-muted);
  font-size: 0.82rem;
  margin: 0.15rem 0 0;
}

.ps-db {
  margin-top: 0.9rem;
  border: 2px solid var(--ex-line-strong);
  border-radius: var(--ex-radius-sm);
  padding: 0.8rem 1rem;
  text-align: center;
}
.ps-db b {
  font-weight: 900;
  display: block;
}
.ps-db div {
  color: var(--ex-muted);
  font-size: 0.88rem;
}

.ps-centre {
  border: 2px solid var(--ex-line-strong);
  border-radius: var(--ex-radius);
  padding: 1rem 1.1rem;
  text-align: center;
  margin-bottom: 1rem;
}
.ps-centre b {
  font-size: 1.2rem;
  font-weight: 900;
  display: block;
}
.ps-centre > span {
  color: var(--ex-muted);
  font-size: 0.9rem;
}
.ps-facets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.6rem 0 0.4rem;
}
.ps-facets span {
  font-size: 0.76rem;
  font-weight: 700;
  border: 1.5px solid var(--ex-line);
  border-radius: 999px;
  padding: 0.15em 0.7em;
}
.ps-foundation {
  font-size: 0.78rem;
  color: var(--ex-faint);
  letter-spacing: 0.04em;
}

.ps-groups {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ps-group {
  border: 1.5px solid var(--ex-accent);
  border-radius: var(--ex-radius);
  padding: 0.85rem 1rem;
}
.ps-group-tag {
  color: var(--ex-accent);
}
.ps-actor {
  padding: 0.55rem 0;
  border-top: 1px solid var(--ex-line);
}
.ps-actor:first-of-type {
  border-top: 0;
}
.ps-actor b {
  font-size: 0.95rem;
  font-weight: 800;
}
.ps-actor p {
  color: var(--ex-muted);
  font-size: 0.85rem;
  margin: 0.1rem 0 0;
}
.ps-edge {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ex-faint);
  margin-top: 0.2rem;
}
