/*
 * Extra visuals of the migration guides Mailgun and Postmark (tools/site/pages/migrate_b.py).
 * Flat components: 1px lines, no shadows.
 */

.mb-plain .ly-step-body {
  padding-left: 0;
}

.mb-swap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.mb-swap-side {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mb-swap-new {
  border-color: #111;
  background: var(--soft);
}

.mb-swap-side small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mb-swap-side code {
  display: block;
  padding: 0;
  background: none;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mb-swap-arrow {
  align-self: center;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
}

.mb-swap-arrow svg {
  width: 18px;
  height: 18px;
}

.mb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.95rem;
}

.mb-map {
  display: grid;
  gap: 10px;
}

.mb-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch;
}

.mb-map-old,
.mb-map-new {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.mb-map-new {
  border-color: #111;
  background: var(--soft);
}

.mb-map-old b,
.mb-map-new b {
  font-weight: 600;
}

.mb-map-old span,
.mb-map-new span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mb-map-new code,
.mb-map-old code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(17, 17, 17, 0.07);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.85em;
}

.mb-map-arrow {
  align-self: center;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #fff;
}

.mb-map-arrow svg {
  width: 14px;
  height: 14px;
}

.ly-step-body code {
  overflow-wrap: anywhere;
}

.ly-step-body > .mk-grid {
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .mb-swap,
  .mb-map-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mb-swap-arrow,
  .mb-map-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

.mb-plain .mk-faq {
  max-width: none;
  margin: 0;
}

@media (min-width: 761px) {
  .ly-table td,
  .ly-table tbody th {
    overflow-wrap: anywhere;
  }
}
