/* Hide the legacy GitBook footer. */
.page-footer {
    display: none !important;
}

/* The footer below is created by the visit statistics script. */
.book .book-body .page-wrapper .page-inner::after {
    content: none;
    display: none;
}

#yj-custom-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    color: #666;
    font-size: 14px;
}

#yj-visit-stats {
    margin-left: auto;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    #yj-custom-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    #yj-visit-stats {
        margin-left: 0;
    }
}
/* Reading progress indicator. */
#yj-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 0;
    height: 3px;
    background: #2185d0;
    box-shadow: 0 1px 4px rgba(33, 133, 208, .45);
    transition: width .12s linear;
}

/* Readability improvements. */
.book .book-body .page-wrapper .page-inner img {
    max-width: 100%;
    height: auto;
}

.book .book-body .page-wrapper .page-inner pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .book .book-body .page-wrapper .page-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .book .book-body .page-wrapper .page-inner table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
