a#skip-to-content {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;

    &:focus, &:active {
        position: absolute;
        z-index: 100;
        top: 0;
        width: initial;
        height: initial;
        left: 0;
        background-color: #fff;
        padding: 0.5rem;
        font-weight: bold;
        font-size: 20px;
        border: 3px solid #000;

    }
}


body {
    background-color: oklch(0.95 0 0);
    min-height: 100vh
}

.login {
    display: flex;
    flex-direction: column;
    align-items: center;

    form {
        width: 100%;
    }
}

header {
    margin: 0 0 1rem;

    input[type="submit"] {
        margin: 0;
    }
}

.with-sidebar {
    display: grid;
    gap: 1rem;
    grid-template-columns: 30% 1fr;
    @media screen and (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

nav.top-menu {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;

    a {
        font-weight: bold;
        color: black;
        text-decoration: none;
        padding: 0.5rem;
        border-radius: 5px;

        &:hover {
            background-color: lightgrey;
        }
    }
}

footer {
    text-align: center;

    font-size: 16px;
    @media screen and (max-width: 768px) {
        font-size: 12px;
    }

    .footer-hashbang-logo {
        width: 46px;
        height: auto;
        margin-right: 8px;

    }

}

.main-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    @media screen and (max-width: 768px) {
        flex-direction: column;
    }
}

.login-block {
    text-align: center;
}

.sidebar, #main-content {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
}

.container .sidebar ul { /* weird selector to counter picocss doing weird things */
    margin: 0 0 1em;

    li {
        list-style-type: none;
        width: 100%;

        a {
            color: black;
            width: 100%;
            display: inline-block;
            padding: 10px 10px;
            text-decoration: none;

            &:hover {
                background-color: lightgray;
            }
        }

    }
}

/* forms */

.helptext {
    font-size: smaller;
    font-style: italic;
    color: var(--pico-accordion-active-summary-color);
}

.errorlist {
    border: 2px solid #ff5d37;
    background: #ffebe7;
    border-radius: 3px;
    padding-top: 5px;
}

.messages {
    list-style: none;
    padding: 0;

    .message {
        list-style: none;
        border-radius: 3px;
        padding: .5em .75em;
        margin: 0 0 1em;
    }

    .debug {
        border: 2px dashed #ff0090;
        background: #ffe3f3;
    }

    .info {
        border: 2px solid #00c3ff;
        background: #def7ff;
    }

    .success {
        border: 2px solid #52c600;
        background: #e0ffc8;
    }

    .error {
        border: 2px solid #ff5d37;
        background: #ffebe7;
    }

    .warning {
        border: 2px solid #ff9900;
        background: #ffe6be;
    }
}

.prose-editor {
    margin-bottom: var(--pico-spacing);
}

.prose-editor {
    li p { /* prose does that. It's valid HTML but it's not pretty. */
        margin: 0;
    }
}

.prose-editor .ProseMirror {
    padding: 1em 1em 0;
}

.initial-photo {
    padding: 1em;
}

.initial-photo img {
    height: 10em;
    vertical-align: top;
}

.change-photo {
    padding-left: 1em;
}