:root {
    --bg: #0a1020;
    --panel: #121a2b;
    --text: #e9eef7;
    --muted: #9ab;
    --accent: #4da3ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #0b0f1a 0, #0d1220 100%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #1f2a44;
    background: #0c1426cc;
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
    font-weight: 600;
}

.brand img {
    width: 24px;
    height: 24px;
}

.topnav a {
    margin-left: 16px;
    color: var(--muted);
}

.topnav a:hover {
    color: var(--text);
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - 64px);
}

.sidebar {
    padding: 20px;
    border-right: 1px solid #1f2a44;
    background: #0e1528;
}

.section-title {
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: .08em;
    color: #6e7f9b;
    text-transform: uppercase;
}

.sidebar a {
    display: block;
    padding: 8px 0;
    color: #c9d7f2;
}

.sidebar a:hover {
    color: #fff;
}

/* .content {
    padding: 28px;
} */

.content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px)
}


/* .iframe-holder {
    border: 1px solid #1f2a44;
    border-radius: 12px;
    overflow: hidden;
    background: #0a1020;
    height: calc(100vh - 220px);
}

.iframe-holder iframe {
    width: 100%;
    height: 1000%;
} */

.footer {
    border-top: 1px solid #1f2a44;
    padding: 14px 20px;
    color: #7f90ad;
}

h1 {
    margin-top: 0;
    font-size: 2.2em;
    font-weight: 700;
}

h2 {
    font-size: 1.6em;
    font-weight: 600;
}

pre {
    background: #0a1020;
    border: 1px solid #1f2a44;
    padding: 12px;
    border-radius: 10px;
    overflow: auto;
}

.iframe-holder-swagger {
    flex: 1;        /* ocupa todo el espacio disponible */
    width: 100%;
    border: none;
    background: #0a1020;
}





.markdown-pane {
  flex: 1;         /* toma todo el alto disponible dentro de .content */
  min-height: 0;   /* permite overflow vertical */
  overflow: auto;  /* ← aquí ocurre el scroll interno */
  padding: 30px;  /* si quieres margen interno */
  background: var(--bg);
  border: 1px solid #1f2a44;        /* opcional, para delimitar visualmente */
  border-radius: 12px;              /* opcional */
}

/* Mejoras de legibilidad para Markdown */
.markdown {
  color: var(--text);
  overflow: auto;
}
.markdown pre {
  max-width: 100%;
  overflow: auto;              /* scroll horizontal para bloques de código largos */
  white-space: pre;            /* o pre-wrap si quieres que envuelva líneas */
}
.markdown code {
  word-break: normal;
}

content .markdown {
    overflow: auto; 
}

.content .markdown img[alt="Alt_drawing"] {
    max-width: 100%;
    height: 20rem;
    display: block;
    margin: 24px auto;
}