/* ── Mirza Documentation – Renku Theme Fixes (Mobile Responsive Only) ── */
/* Conserve 100% de l'identité visuelle native de Renku (Calcutta, couleurs SDSC, barres) */

/* Empêche l'éclatement du viewport mobile par les éléments larges */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.wy-nav-content-wrap {
    max-width: 100vw;
    overflow-x: hidden;
}

.wy-nav-content {
    max-width: 100% !important;
}

/* Conteneur défilable pour les diagrammes Graphviz sur mobile */
.graphviz {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    margin: 1.5em 0;
}

.graphviz object,
.graphviz svg,
.graphviz img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .graphviz object,
    .graphviz svg {
        min-width: 320px;
        max-width: none;
    }
}

/* Conteneur défilable pour les tables complexes sur mobile */
.wy-table-responsive,
div[class*="wy-table-responsive"],
table.docutils {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Curseur pointer explicite sur le bouton de navigation mobile */
[data-toggle="wy-nav-top"] {
    cursor: pointer;
}

/* ── D2 Architecture Diagrams Presentation ── */
img.d2-diagram {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    background-color: #ffffff;
    padding: 18px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

img.d2-diagram:hover {
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
}

@media screen and (max-width: 768px) {
    img.d2-diagram {
        padding: 8px;
        margin: 1.25rem auto;
        border-radius: 8px;
    }
}


