/* Native light-mode SVG/HTML visual panels for AMD / World Labs.
   Spacious McKinsey-style canvas. No raster charts. */

.acq-panel {
  --ap-bg: #ffffff;
  --ap-card: #f8fafc;
  --ap-line: #e2e8f0;
  --ap-ink: #0f172a;
  --ap-muted: #64748b;
  --ap-gold: #b45309;
  --ap-gold-soft: #fef3c7;
  margin: 1.75rem 0 2rem;
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--ap-bg);
  border: 1px solid var(--ap-line);
  border-radius: 0.5rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.acq-panel__chrome {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ap-line);
}

.acq-panel__title {
  margin: 0;
  font-family: var(--sans, "Poppins", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-ink);
}

.acq-panel__brand {
  margin: 0;
  font-family: var(--mono, "Rubik", ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gold);
  white-space: nowrap;
}

/* ---- 3-node horizontal timeline ------------------------------------ */

.acq-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.acq-flow__node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.35rem 1.15rem;
  background: var(--ap-card);
  border: 1px solid var(--ap-line);
  border-radius: 0.45rem;
}

.acq-flow__node.is-accent {
  background: var(--ap-gold-soft);
  border-color: rgba(180, 83, 9, 0.45);
}

.acq-flow__kicker {
  font-family: var(--mono, "Rubik", ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-muted);
}

.acq-flow__node.is-accent .acq-flow__kicker {
  color: var(--ap-gold);
}

.acq-flow__label {
  font-family: var(--sans, "Poppins", ui-sans-serif, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ap-ink);
}

.acq-flow__node.is-accent .acq-flow__label {
  color: var(--ap-gold);
}

.acq-flow__sub {
  font-family: var(--sans, "Poppins", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ap-muted);
}

.acq-flow__arrow {
  flex: 0 0 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.acq-flow__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* ---- Vertical stack lattice ---------------------------------------- */

.acq-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acq-stack__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.2rem 1.25rem;
  background: var(--ap-card);
  border: 1px solid var(--ap-line);
  border-radius: 0.45rem;
}

.acq-stack__row.is-accent {
  background: var(--ap-gold-soft);
  border-color: rgba(180, 83, 9, 0.5);
}

.acq-stack__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.acq-stack__tag {
  font-family: var(--mono, "Rubik", ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-muted);
}

.acq-stack__row.is-accent .acq-stack__tag {
  color: var(--ap-gold);
}

.acq-stack__main {
  font-family: var(--sans, "Poppins", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ap-ink);
}

.acq-stack__row.is-accent .acq-stack__main {
  color: #92400e;
}

.acq-stack__badge {
  justify-self: end;
  max-width: 100%;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ap-line);
  border-radius: 0.3rem;
  background: #ffffff;
  font-family: var(--mono, "Rubik", ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ap-muted);
  white-space: nowrap;
}

.acq-stack__row.is-accent .acq-stack__badge {
  border-color: rgba(180, 83, 9, 0.45);
  color: var(--ap-gold);
  background: #fffbeb;
}

@media (max-width: 720px) {
  .acq-panel {
    padding: 1.15rem 1rem 1.1rem;
  }

  .acq-flow {
    flex-direction: column;
    gap: 0.55rem;
  }

  .acq-flow__arrow {
    flex: 0 0 auto;
    transform: rotate(90deg);
    height: 1.25rem;
  }

  .acq-stack__row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .acq-stack__badge {
    justify-self: start;
    white-space: normal;
  }
}

/* Keep ma-visual figure chrome quiet when hosting native panels */
.ma-visual-container:has(.acq-panel) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.ma-visual-container:has(.acq-panel) .figure-caption-layer {
  margin-top: 0.65rem;
}
