/**
 * MAG Docs — Roustix API Guide
 */

.mag-doc-code {
  color: #63b3ed;
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.mag-endpoint {
  background: #1a2332;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
}

.mag-endpoint .method {
  color: #68d391;
  font-weight: 700;
  margin-right: 0.5rem;
}

.mag-endpoint .method--post {
  color: #f6ad55;
}

.mag-doc-table {
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 1.25rem 0;
  width: 100%;
}

.mag-doc-table th,
.mag-doc-table td {
  border-bottom: 1px solid var(--bb-borde);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.mag-doc-table th {
  background: #042c53;
  color: #fff;
  font-size: 0.75rem;
}

.mag-doc-table tr:nth-child(even) td {
  background: #f4f7fb;
}

.mag-code-badge {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 4px;
  color: #2b6cb0;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
}

.mag-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.75rem;
}

.mag-chapter-nav a {
  color: var(--bb-acento);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.mag-chapter-nav a:hover {
  text-decoration: underline;
}

.mag-json {
  background: #0d1117;
  border-radius: 10px;
  color: #e6edf3;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 1rem 0;
  overflow-x: auto;
  padding: 1rem 1.25rem;
  white-space: pre;
}

.mag-pair {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .mag-pair {
    grid-template-columns: 1fr;
  }
}

.mag-mpa-note {
  background: #ebf8ff;
  border-left: 4px solid #3182ce;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
}

.mag-mpa-note p {
  margin: 0;
}
