/* ============================================================
   Tektome — Intelligence Graph section (#intelligence-graph)
   Two-column: copy + legend + explainer on the left, a
   browser-window card embedding the live agent map on the right.
   Reuses the shared .section-* classes from mip.css.
   ============================================================ */

.agent-map-section {
  background: var(--color-draft-white);
  padding: var(--space-24) 0;
  font-family: var(--font-sans);
  color: var(--fg-primary);
}
.agent-map-section .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.agent-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
}
/* Keep the shared section header left-aligned in this two-column layout
   (mip.css centers .section-sub with auto margins). */
.agent-map-section .section-header { margin: 0; max-width: 560px; }
.agent-map-section .section-sub { margin: 24px 0 0; max-width: 540px; }

/* ---- Legend chips ---- */
.agent-nodes-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  max-width: 520px;
}
.agent-node-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--fg-primary);
  white-space: nowrap;
}
.agent-node-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ---- Explainer box ---- */
.agent-box {
  margin-top: 36px;
  padding: 26px 28px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-lg);
  max-width: 560px;
}
.agent-box-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-arch-purple);
  margin-bottom: 12px;
}
.agent-box-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* ---- Browser-window card with the embedded map ---- */
.agent-map-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.agent-map-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--gray-100);
}
.m-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.m-dot.r { background: #FF5F57; }
.m-dot.y { background: #FEBC2E; }
.m-dot.g { background: #28C840; }
.agent-map-title {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-tertiary);
}
.agent-map-visual .agent-map-placeholder {
  display: block;
  width: 100%;
  height: 620px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--gray-100) 0,
      var(--gray-100) 14px,
      var(--bg-surface) 14px,
      var(--bg-surface) 28px);
}
.agent-map-visual .agent-map-iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: none;
}

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .agent-map-grid { grid-template-columns: 1fr; gap: 40px; }
  .agent-map-visual .agent-map-placeholder { height: 520px; }
  .agent-map-visual .agent-map-iframe { height: 555px; }
}
@media (max-width: 560px) {
  .agent-map-section { padding: var(--space-16) 0; }
  .agent-map-visual .agent-map-placeholder { height: 420px; }
  .agent-map-visual .agent-map-iframe { height: 315px; }
}
