/* Additional tweaks on top of m.css. */

/* Improve layout of Markdown-generated code blocks. */
div.highlight {
        margin-bottom: 1rem;
}

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

section#comments .comment.comment-reply {
        margin: 0em auto 0em 1em;
}

section#comments .comment .avatar-link {
        grid-area: avatar;
        height: 4rem;
        position: relative;
        width: 4rem;
}

section#comments .comment .avatar-link .avatar {
        height: 100%;
        width: 100%;
}

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

section#comments .comment .author .instance {
        background-color: black;
        border-radius: 9999px;
        font-size: smaller;
        padding: .25em .75em;
        text-decoration: none;
}

section#comments .comment .author .instance::hover {
        opacity: 0.8;
}

section#comments .comment .author .instance.op::before {
        content: "✓";
        font-weight: bold;
        margin-inline-end: 0.25em;
        margin-inline-start: -0.25em;
}

section#comments .comment time {
        font-size: smaller;
        opacity: 0.9;
        grid-area: time;
        line-height: 1.5rem;
}

section#comments .comment main {
        grid-area: post;
}

section#comments .comment main p {
        text-indent: 0;
}

section#comments .comment main p:first-child {
        margin-top: 0.25em;
}

section#comments .comment main p:last-child {
        margin-bottom: 0;
}

section#comments .comment footer {
        font-size: smaller;
        opacity: 0.9;
        grid-area: interactions;
}

section#comments .comment footer .faves {
        color: inherit;
        text-decoration: none;
}

section#comments .comment footer .faves:hover {
        opacity: 0.8;
}

section#comments .comment footer .faves::before {
        color: red;
        content: "♥";
        font-size: 1rem;
        margin-inline-end: 0.25em;
}

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