/* ================================
   CubeBraid 左侧 Logo
   ================================ */

.wy-side-nav-search {
    overflow: visible !important;
}

.wy-side-nav-search > a {
    overflow: visible !important;
}

.cubebraid-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: auto;

    margin: 0.65rem auto 0.85rem;

    overflow: visible !important;
}

.cubebraid-sidebar-logo a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 13rem;
    height: auto;
    min-height: 9rem;

    overflow: visible !important;
}

.cubebraid-sidebar-logo img {
    display: block;

    width: 13rem;
    height: 13rem;

    max-width: none;
    max-height: none;

    object-fit: contain;
    object-position: center;

    overflow: visible;
}

/* 保持架构图文字可读；窄屏可横向滚动，点击图片可单独放大。 */
.r2c-flow-scroll {
    max-width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #e2e8ee;
    border-radius: 0.5rem;
    background: #fff;
}

.r2c-flow-scroll .figure {
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0.5rem;
}

.r2c-flow-scroll img {
    display: block;
    max-width: none !important;
    height: auto;
}

.r2c-flow-scroll .caption {
    padding: 0 0.75rem 0.75rem;
    text-align: left;
}
