/* On wide screens the topic list is the permanent sidebar. */
.jwp-topic-switch,
.jwp-topic-return {
    display: none;
}

.jwp-article-column {
    min-width: 0;
}

@media (max-width: 991.98px) {
    body.jwp-tutorial {
        margin: 0;
        text-align: left;
    }

    .jwp-tutorial > .navbar {
        position: sticky;
        top: 0;
        padding: .5rem 1rem !important;
    }

    .jwp-tutorial > .navbar #logo img {
        width: 36px;
        height: 36px;
    }

    .jwp-tutorial > .navbar .navbar-brand {
        margin: 0 auto 0 .5rem;
        padding: 0;
    }

    .jwp-tutorial > .navbar .navTitle {
        font-size: 1.35rem;
    }

    .jwp-tutorial > .navbar .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
    }

    .jwp-tutorial .main-div {
        margin-top: 1rem;
    }

    .jwp-topics {
        margin-bottom: 1rem;
        border-right: 0 !important;
    }

    .jwp-topic-switch:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: .55rem .9rem;
        border: 1px solid #aecbd5;
        border-radius: .4rem;
        background: #eff7f8;
        color: #174a5e;
        font: 600 1rem/1.45 Arial, sans-serif;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .jwp-topic-switch::after {
        content: "";
        width: .55rem;
        height: .55rem;
        margin: -.2rem .1rem 0 .75rem;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .jwp-topic-switch[aria-expanded="true"]::after {
        margin-top: .25rem;
        transform: rotate(225deg);
    }

    .jwp-topic-switch:focus,
    .jwp-topic-return:focus {
        outline: 3px solid #146b80;
        outline-offset: 2px;
    }

    .jwp-topic-list {
        display: none;
        max-width: none;
        margin: .5rem 0 0;
        padding: 0;
    }

    .jwp-topic-list,
    .jwp-topic-switch {
        scroll-margin-top: 4.75rem;
    }

    .jwp-topic-switch[aria-expanded="true"] ~ .jwp-topic-list,
    a.jwp-topic-switch:not([hidden]) + .jwp-topic-list:target {
        display: block;
    }

    a.jwp-topic-switch:not([hidden]) + .jwp-topic-list .jwp-topic-return {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: .4rem .85rem;
    }

    .jwp-topic-list .card-header {
        padding: 0;
    }

    .jwp-topic-list .card-header .btn {
        display: block;
        width: 100%;
        min-height: 44px;
        padding: .6rem .85rem;
        text-align: left;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .jwp-topic-list .card-body ol {
        margin: 0;
        padding-left: 2rem;
    }

    .jwp-topic-list li > a {
        display: block;
        min-height: 44px;
        padding: .55rem .4rem;
    }

    .jwp-article-column > .row > main {
        max-width: 52rem;
        min-width: 0;
        overflow-wrap: break-word;
        overflow-wrap: anywhere;
    }

    #explaination h1 {
        font-size: 1.8rem;
        font-size: clamp(1.65rem, 5vw, 2.35rem);
        line-height: 1.2;
    }

    #explaination h2 {
        font-size: 1.45rem;
        font-size: clamp(1.35rem, 4vw, 1.85rem);
        line-height: 1.3;
    }

    #explaination .welcome-container {
        margin: .5rem auto 2rem;
    }

    #explaination .welcome-container h1 {
        display: block;
        max-width: 100%;
        margin: 0 0 1rem;
        padding: .4rem .5rem;
        transform: none;
    }

    #explaination pre {
        max-width: 100%;
        overflow-x: auto;
        overflow-wrap: normal;
        word-break: normal;
        white-space: pre;
    }

    #explaination pre > code {
        width: max-content;
        min-width: 100%;
        max-width: none;
        overflow: visible;
        white-space: inherit;
    }

    #contact {
        padding: .5rem 0 1.5rem !important;
    }

    #contactCard,
    #contactInfo .table-responsive {
        width: 100%;
        max-width: 100%;
    }

    #contactCardBody {
        padding: 1rem;
    }
}
