/* Bootstrap does not seem to have a good default for blockquote */
blockquote {
    margin-left: 2em;
    margin-right: 2em;
    text-align: justify;
    font-style: italic;
    font-family: serif;
}

ul.taglist {
    padding-left: 0;
}

ul.taglist li {
}

div.codehilite {
    background-color: #f6f7f8;
    padding: 1em;
    border: 1pt dashed black;
    margin-bottom: 1rem;
    overflow: auto;
}

div.codehilite pre {
    margin: 0;
    overflow: visible;
}

section#comments {
    article {
        margin-left: 2rem;
    }
    .comment {
        display: grid;
        column-gap: 1rem;
        grid-template-areas:
        "avatar name"
        "avatar time"
        "avatar post"
        "...... interactions";
        grid-template-columns: min-content;
        justify-items: start;
        padding: 0.5em;

        .avatar {
            border-radius: 50%;
            margin: 0;
            overflow: hidden;
        }

        .avatar-link {
            grid-area: avatar;
            height: 4rem;
            position: relative;
            width: 4rem;

            .avatar {
                height: 100%;
                width: 100%;
            }
        }

        .author {
            align-items: center;
            display: flex;
            font-weight: bold;
            gap: 0.5em;
            grid-area: name;

            .instance {
                background-color: var(--code-background-color);
                border-radius: 9999px;
                color: var(--neutral);
                font-size: smaller;
                font-weight: normal;
                padding: 0.25em 0.75em;

                &:hover {
                    opacity: 0.8;
                    text-decoration: none;
                }

                &.op {
                    background-color: var(--accent-color);
                    color: var(--accent-color-text);

                    &::before {
                        content: "✓";
                        font-weight: bold;
                        margin-inline-end: 0.25em;
                        margin-inline-start: -0.25em;
                    }
                }
            }
        }

        time {
            grid-area: time;
            line-height: 1.5rem;
        }

        main {
            grid-area: post;

            p:first-child {
                margin-top: 0.25em;
            }

            p:last-child {
                margin-bottom: 0;
            }
        }

        footer {
            grid-area: interactions;
            content: "✓";
            display: block;
            font-size: 1.25rem;
            font-weight: bold;
            height: 1.5rem;
            line-height: 1.5rem;
            position: absolute;
            right: -0.25rem;
            text-align: center;
            width: 1.5rem;
        }
    }

    .emoji {
        display: inline;
        height: 1.25em;
        vertical-align: middle;
        width: 1.25em;
    }

    .invisible {
        display: none;
    }

    .ellipsis::after {
        content: "…";
    }
}
