.page {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.sidebar .navbar {
    min-height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 36px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar .nav-link {
    color: #d7d7d7;
    border-radius: 4px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link[aria-current="page"] {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

main .top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 640.98px) {
    .sidebar {
        position: relative;
    }

    .sidebar nav {
        position: absolute;
        top: 0;
        right: 0;
        padding-top: 0.65rem !important;
    }

    main .top-row {
        height: 1rem;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        flex: 0 0 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    main .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
