/* Force table wrapper to be 100% wide */
.md-typeset__table {
    min-width: 100%;
}

/* Force tables to be 100% wide */
.md-typeset table:not([class]) {
    width: 100%;
    display: table;
}

/* Top navigation (prev/next) styling - compact stripe above heading */
.md-top-nav-wrapper {
    margin: 0 0 15px 0;
    padding: 2px 8px;
    background: #4051b5;
    border-radius: 2px;
}

.md-top-nav-wrapper .md-footer__inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 0.3rem;
}

.md-top-nav-wrapper .md-footer__link {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.25s;
    opacity: 0.9;
}

.md-top-nav-wrapper .md-footer__link:hover {
    opacity: 1;
    color: #fff;
}

.md-top-nav-wrapper .md-footer__link--prev {
    margin-right: auto;
}

.md-top-nav-wrapper .md-footer__link--next {
    margin-left: auto;
    text-align: right;
}

.md-top-nav-wrapper .md-footer__title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.md-top-nav-wrapper .md-ellipsis {
    font-size: 14px;
    line-height: 1;
}

.md-top-nav-wrapper .md-footer__direction {
    font-size: 14px;
    line-height: 1;
    opacity: 0.8;
}

.md-top-nav-wrapper .md-footer__button {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.md-top-nav-wrapper .md-icon {
    width: 14px;
    height: 14px;
    color: #fff;
}

.md-top-nav-wrapper .md-icon svg {
    display: block;
}

/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
    .md-top-nav-wrapper .md-footer__title {
        max-width: 140px;
    }
}

@media screen and (max-width: 44.9375em) {
    .md-top-nav-wrapper {
        margin: 0 -0.4rem 0.8rem -0.4rem;
        padding: 0.3rem 0.4rem;
    }
    .md-top-nav-wrapper .md-footer__title {
        max-width: 90px;
    }
    .md-top-nav-wrapper .md-footer__direction {
        display: none;
    }
    .md-top-nav-wrapper .md-footer__link {
        font-size: 0.65rem;
    }
}