/*--Add an aside to the layout--*/

body {
    grid-template-areas:
    "header header"
    "aside main"
    "footer footer";
    grid-template-columns: 20% 1fr;
}

aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 0;
    height: 100%;
    padding: var(--element-spacing) 0;
    margin: 0 calc(-1 * var(--scrollbar-space)) 0 var(--scrollbar-space);
    gap: var(--element-spacing);
}
aside a {
    color: var(--text);
}
aside a:hover {
    color: var(--pastel-blue);
}
aside article {
    width: 100%;
    margin: 0px;
    padding: 12px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    background: var(--primary-background);
    border: none;
    border-top: var(--outline-width) solid var(--primary-background-highlight);
    border-bottom: var(--outline-width) solid var(--primary-background-shadow);
}
aside article p.articleTitle {
    margin: 0;
}
aside article ul {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
aside .buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: var(--element-spacing);
    margin: 0 var(--scrollbar-space) 0 0;
}
aside .buttons a {
    width: 100%;
}
aside .buttons button {
    width: calc(100% - var(--outline-width) * 2);
    padding: 8px;
    margin: var(--outline-width);
}

@media screen and (max-width: 995px) {
    body {
        grid-template-columns: 100%;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
        "header"
        "main"
        "footer";
    }
    aside {
        display: none;
    }
}