/* /tools/mx-router/ + /api — Mailganer native */

.mg-mx__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 8px;
}

body.mg-site--v2b .mg-mx a.mg2-btn--fill,
body.mg-site--v2b .mg-mx button.mg2-btn--fill {
  color: var(--mg-on-accent, #fff);
}

body.mg-site--v2b .mg-mx a.mg2-textlink {
  color: var(--mg-blue-link);
}

body.mg-site--v2b .mg-mx a.mg2-textlink:hover {
  color: var(--mg-blue-hover);
}

.mg-mx__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-mx__card {
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  background: var(--mg-white, #fff);
}

.mg-mx__card h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--mg-black, #000);
}

.mg-mx__card p {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--mg-black, #000);
}

.mg-mx__steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: mx-step;
  display: grid;
  gap: 16px;
  max-width: 52rem;
}

.mg-mx__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: start;
  counter-increment: mx-step;
}

.mg-mx__steps li::before {
  content: counter(mx-step);
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--mg-blue, #0062ad);
  color: var(--mg-white, #fff);
  font-size: 14px;
  font-weight: 700;
}

.mg-mx__steps strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--mg-black, #000);
}

.mg-mx__steps span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mg-black, #000);
}

.mg-mx__list {
  margin: 0 0 16px;
  padding: 0 0 0 1.2em;
  max-width: 46ch;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--mg-black, #000);
}

.mg-mx__list li {
  margin-bottom: 8px;
}

.mg-mx__split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.mg-mx__cta-panel {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 3px;
  background: var(--mg-black, #000);
  color: var(--mg-white, #fff);
}

.mg-mx__cta-panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.mg-mx__cta-panel p {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.mg-mx__mono {
  font-family: var(--mg-tool-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.92em;
}

.mg-mx__curl {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  max-width: 48rem;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mg-black, #000);
  background: var(--mg-cream, #f2eeeb);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.mg-mx__curl code {
  font-family: var(--mg-tool-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  white-space: pre;
}

.mg-mx-form-band {
  padding-bottom: clamp(64px, 8vw, 96px);
}

.mg-mx-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.mg-mx-form__field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.mg-mx-form__field input,
.mg-mx-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 3px;
  font: inherit;
  background: var(--mg-white, #fff);
}

.mg-mx-form__field input:focus,
.mg-mx-form__field textarea:focus {
  outline: 2px solid var(--mg-blue, #0062ad);
  outline-offset: 1px;
}

.mg-mx-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.mg-mx-form__check a {
  color: var(--mg-blue-link, #0062ad);
}

.mg-mx-form__status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.mg-mx-form__status[data-state='ok'] {
  color: #0a7a3e;
}

.mg-mx-form__status[data-state='err'] {
  color: #b42318;
}

.mg-mx-form-aside {
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: 3px;
  background: var(--mg-white, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mg-mx-form-aside h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.mg-mx-form-aside ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.mg-mx-form-aside li {
  margin-bottom: 8px;
}

.mg-mx-form-aside p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.mg-mx-api__swagger-wrap {
  padding: 0 0 clamp(24px, 4vw, 40px);
  background: var(--mg-cream, #f2eeeb);
}

.mg-mx-api__swagger-inner {
  max-width: 1120px;
}

.mg-mx-api__swagger {
  background: var(--mg-white, #fff);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mg-mx-api__swagger .swagger-ui .topbar {
  display: none;
}

.mg-mx-api__swagger .swagger-ui .info {
  margin: 24px 0;
}

.mg-mx-api__swagger .swagger-ui .scheme-container {
  background: transparent;
  box-shadow: none;
  padding: 0 0 16px;
}

@media (max-width: 900px) {
  .mg-mx__cards,
  .mg-mx__split,
  .mg-mx-form-layout {
    grid-template-columns: 1fr;
  }
}
