/* AstraOS system figure: an explicit type hierarchy and shared communication bus. */
.module-row .os-visual.os-map {
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 1px solid #DCD3F0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 16px 48px #4C2DBF0D;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  container-type: inline-size;
}
.os-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px 23px;
}
.os-map-eyebrow {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.5;
  margin-bottom: 8px;
}
.os-map-header h4 {
  color: #211D2E;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.os-map-version {
  padding: 7px 10px;
  border: 1px solid #DDD3F8;
  border-radius: 6px;
  color: #674F97;
  background: #F8F5FF;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.os-map-canvas {
  padding: 21px 24px;
  border-top: 1px solid #EAE4F6;
  border-bottom: 1px solid #EAE4F6;
  background: #F8F6FF;
}
.os-map-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.os-map-node {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid #E3DCF0;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 3px 10px #25144804;
}
.os-node-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.os-node-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--primary);
  background: #F0EAFF;
}
.os-map svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.os-node-top>span:last-child { color: #9A8CA9; font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.os-map-node h5 {
  margin: 12px 0 6px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -.025em;
  color: #292035;
}
.os-map-node p { color: #796A88; font-size: 12px; font-weight: 450; line-height: 1.7; letter-spacing: .015em; }
.os-map-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; height: 17px; }
.os-map-links i { display: block; width: 2px; height: 100%; margin: auto; background: #A98AF4; }
.os-map-core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #7758E7;
  border-radius: 10px;
  padding: 14px 16px;
  background: linear-gradient(110deg, var(--primary-dark), var(--primary));
  box-shadow: 0 5px 18px #6C4CF126;
  color: #FFFFFF;
}
.os-map-core>svg { width: 27px; height: 27px; stroke-width: 1.5; flex-shrink: 0; }
.os-map-core strong { display: block; font-size: 17px; font-weight: 750; line-height: 1.2; letter-spacing: -.015em; }
.os-map-core span { display: block; margin-top: 5px; font-size: 11px; font-weight: 500; line-height: 1.5; color: #EBE4FF; letter-spacing: .045em; }
.os-map-caption { display: grid; grid-template-columns: 1fr 1fr; padding: 21px 24px; gap: 20px; }
.os-map-caption>div { display: flex; align-items: flex-start; gap: 9px; }
.os-map-caption>div+div { padding-left: 20px; border-left: 1px solid #E4DDEF; }
.os-map-caption svg { width: 16px; height: 16px; color: var(--primary); margin-top: 1px; flex-shrink: 0; }
.os-map-caption strong { display: block; font-size: 12px; font-weight: 700; line-height: 1.4; color: #372746; }
.os-map-caption span { display: block; margin-top: 5px; font-size: 11px; font-weight: 450; line-height: 1.5; color: #81718F; }
@container(max-width:420px) {
  .os-map-header { padding: 20px 18px; gap: 12px; }
  .os-map-header h4 { font-size: 23px; }
  .os-map-eyebrow { font-size: 9px; letter-spacing: .11em; }
  .os-map-version { padding: 6px 8px; font-size: 9px; }
  .os-map-canvas { padding: 16px; }
  .os-map-nodes, .os-map-links { gap: 12px; }
  .os-map-node { padding: 12px; border-radius: 8px; }
  .os-map-node h5 { font-size: 17px; margin-top: 10px; }
  .os-map-node p { font-size: 11px; line-height: 1.7; }
  .os-node-icon { width: 27px; height: 27px; border-radius: 7px; }
  .os-node-top>span:last-child { font-size: 8px; letter-spacing: .04em; }
  .os-map-core { padding: 12px; gap: 10px; }
  .os-map-core strong { font-size: 16px; }
  .os-map-caption { padding: 18px 16px; gap: 12px; }
  .os-map-caption>div { gap: 7px; }
  .os-map-caption>div+div { padding-left: 12px; }
  .os-map-caption strong { font-size: 11px; }
  .os-map-caption span { font-size: 11px; }
}
@container(max-width:300px) {
  .os-map-version { display: none; }
  .os-map-canvas { padding: 12px; }
  .os-map-node { padding: 10px; }
  .os-map-node h5 { font-size: 16px; }
  .os-node-top>span:last-child { font-size: 7px; }
  .os-map-caption { gap: 8px; padding: 16px 12px; }
  .os-map-caption>div+div { padding-left: 8px; }
  .os-map-caption svg { display: none; }
}
