/* Loaded AFTER style.css. Only adds what a scrolling blog needs. */

/* style.css centres the card in a 100%-high body, which cuts off the top of
   long pages. Let the page grow and start from the top instead. */
html,
body {
    height: auto;
    min-height: 100%;
}
html {
    background: var(--bg-soft);
}
body {
    align-items: flex-start;
    font-family: "Fira Code VF", var(--mono);
}
.card {
    margin: 0 auto;
}

/* Header title is a link */
.name a {
    color: inherit;
    text-decoration: none;
}

/* Post list */
.lnk > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Post body (HTML from Mastodon) */
.post-body {
    font-size: var(--fs-normal);
    line-height: 1.75;
    color: var(--hi);
    overflow-wrap: anywhere;
}
.post-body p {
    margin-bottom: 12px;
}
.post-body p:last-child {
    margin-bottom: 0;
}
.post-body a {
    color: var(--o2);
}
.post-body a:hover {
    color: var(--o3);
}
/* Mastodon's link-shortening markup */
.post-body .invisible {
    display: none;
}
.post-body .ellipsis::after {
    content: "…";
}
.post-body summary {
    cursor: pointer;
    color: var(--o2);
    margin-bottom: 8px;
}
.post-body img,
.post-body video {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border: 1px solid var(--bdr);
    border-radius: 4px;
}

/* Tags and footer buttons are anchors */
a.badge {
    text-decoration: none;
}
a.badge:hover {
    border-color: rgba(255, 106, 0, 0.4);
    color: var(--o2);
}
.sup {
    display: inline-block;
    margin: 6px 0 0 6px;
}
