body {
    margin: 0;
    padding: 0;
    font-family: Lato, Helvetica, sans-serif;
}

.archive-banner {
    background-color: gold;
    text-align: center;
    padding: 5px;
    font-family: Lato, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 14px;
}

.custom-nav {
    height: 51px;
    font-family: Lato, Helvetica, sans-serif;
    background-color: #fff;
    border: 0px;
    border-bottom: 1px solid #e7e7e7;
    font-weight: 700;
    width: 85%;
    margin: auto
}

.custom-nav .navbar-header {
    margin-left: 0px;
    margin-right: 0px;
    float: left;
    height: 50px;
}

.custom-nav .navbar-brand img {
    max-width: 120px;
    padding: 5px 10px 5px 0px;
}

.nav {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.nav > li {
    position: relative;
    display: block;
    float: left;
    height: 50px;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.nav > li > a:hover,
.nav > li > a:focus {
    text-decoration: none;
}

.navbar-nav {
    margin: 0px;
    float: left;
}

.navbar-nav > li > a {
    padding: 15px;
    line-height: 20px;
}

.custom-nav .navbar-nav > li > a {
    color: #191919;
}

.custom-nav .navbar-nav > li > a:hover,
.custom-nav .navbar-nav > li > a:focus {
    color: #0099cc;
}

.custom-nav .navbar-nav > .active > a,
.custom-nav .navbar-nav > .active > a:hover,
.custom-nav .navbar-nav > .active > a:focus {
    color: #191919;
    background-color: #e6f5fa;
}

.title-span {
    background-color: #fff;
}

code, pre {
    font-family: "Courier New", monospace;
    background: #f5f5f5;
    color:#333;
}

pre{
    padding: 5px;
    overflow-x: auto;
}

p > code{
    padding: 0 2px;
}

@media only screen and (max-width: 760px) {
    body {
        margin: 0;
    }

    #nav-link-list {
        display: none;
    }

    .custom-nav {
        padding: 0;
        padding-left: 5px;
    }

    .header {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 10px 0 0 10px;
        z-index: 100;
        background-color: #fff;
        box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
    }

    .title-span {
        width: 100%;
    }

    h1.site-title {
        font-size: 200%;
        margin: 0px;
    }

    .archive-span {
        margin: 0 10px 15px 10px;
        padding: 10px;
        color: gray;
        text-align: center;
    }

    .category-nav {
        margin: 0 10px 0 10px;
    }

    .topics {
        margin-top: 20px;
    }

    .main {
        width: 90%;
        margin-top: 70px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }

    .topic-head {
        display: inline-block;
        width: 90%;
    }

    .category-head {
        display: none;
    }

    .post-count-head {
        display: none;
    }

    .topic {
        display: inline-block;
        width: 90%;
    }

    .category {
        display: none;
    }

    .post-count {
        display: none;
    }
}

@media only screen and (min-width: 761px) {
    .header {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 10px 0 0 0;
        z-index: 100;
        background-color: #fff;
        box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
    }

    .title-span {
        width: 80%;
        margin: auto;
    }

    h1.site-title {
        font-size: 300%;
        margin: 0px;
    }

    .archive-span {
        color: gray;
        font-size: 120%;
        padding: 10px;
        margin: 0 10px 15px 10px;
        text-align: center;
    }

    .category-nav {
        margin: 0 10px 0 10px;
    }

    .topics {
        margin-top: 20px;
    }

    .main {
        width: 70%;
        margin-top: 90px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 56px;
    }

    .topic-head {
        display: inline-block;
        width: 70%;
    }

    .category-head {
        display: inline-block;
        width: 15%;
    }

    .post-count-head {
        display: inline-block;
        width: 14%;
        text-align: center;
    }

    .topic {
        display: inline-block;
        width: 70%;
    }

    .category {
        display: inline-block;
        width: 15%;
    }

    .post-count {
        display: inline-block;
        width: 14%;
        text-align: center;
    }
}

a {
    color: black;
}

a:visited {
    color: gray;
}

h1.topic-title {
    border-bottom: 2px solid darkgray;
}

.user_name {
    font-size: 110%;
    color: #555555;
}

.post_container {
    border-bottom: 1px solid lightgray;
    padding: 20px;
    font-size: 0;
}

.post_container > *{
    font-size: 16px;
}

.avatar {
    border-radius: 4px;
}

.avatar_container .avatar {
    display: block;
    width: 45px;
    height: 45px;
}

aside.quote .title .avatar {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.avatar_container {
    display: inline-block;
    vertical-align: top;
    width:45px;
    margin-right: 10px;
}

.post{
    display: inline-block;
    vertical-align: top;
    width:calc(100% - 55px);
}

.post_engagement {
    margin-top: 0.85em;
    font-size: 14px;
    color: #666666;
}

.engagement-pill {
    display: inline-block;
    margin-right: 0.5em;
    margin-bottom: 0.35em;
    padding: 0.2em 0.55em;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #fafafa;
    line-height: 1.35;
}

.emoji{
    width: 1em;
    height:1em;
    vertical-align: middle;
}

label {
    display: inline-block;
    width: 5em;
}

.fa {
    padding-right: 5px;
}

.header-row {
    padding-bottom: 8px;
    border-bottom: 3px solid gray;
    font-size: 0;
}

.topic-row {
    padding: 8px;
    border-bottom: 1px solid lightgray;
    font-size: 0;
}

.header-row > *,
.topic-row > * {
    font-size: 16px;
    vertical-align: top;
}

div.meta {
    display: none;
}

.pagination-nav {
    margin: 18px 0;
    text-align: center;
}

.pagination-link {
    display: inline-block;
    min-width: 1.5em;
    margin: 0 0.2em;
    padding: 0.2em 0.5em;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    text-decoration: none;
    background: #fafafa;
}

.pagination-link.current {
    background: #e6f5fa;
    border-color: #b7dcea;
    font-weight: 700;
}

.sage-source-hidden {
    display: none;
}

.sagecell-archive {
    margin: 1em 0;
}

.sagecell-archive .sagecell,
.sagecell-archive .compute {
    max-width: 100%;
}

.archive-footer {
    margin: 32px 0 0 0;
    padding: 20px 0 8px 0;
    border-top: 1px solid #dddddd;
    text-align: center;
    font-size: 0.95rem;
    color: #666666;
}

.archive-footer a {
    color: #444444;
}

.archive-footer a:hover,
.archive-footer a:focus {
    color: #0f6ea8;
}

.post_content aside.onebox {
    margin: 1em 0;
    max-width: 680px;
    border: 1px solid #d9d9d9;
    border-left: 5px solid #4d4d4d;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.post_content aside.onebox header.source {
    padding: 0.65em 1em;
    font-size: 0.85rem;
    color: #666666;
    background: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
}

.post_content aside.onebox header.source a {
    color: #666666;
    text-decoration: none;
}

.post_content aside.onebox img.site-icon {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    vertical-align: middle;
}

.post_content aside.onebox header.source a:hover,
.post_content aside.onebox header.source a:focus {
    text-decoration: underline;
}

.post_content aside.onebox article.onebox-body {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    padding: 1em;
}

.post_content aside.onebox img.thumbnail {
    display: block;
    width: 160px;
    min-width: 160px;
    max-width: 40%;
    height: auto;
    border-radius: 3px;
    object-fit: cover;
}

.post_content aside.onebox h3,
.post_content aside.onebox h4 {
    margin: 0 0 0.35em 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.post_content aside.onebox h3 a,
.post_content aside.onebox h4 a {
    color: #222222;
    text-decoration: none;
}

.post_content aside.onebox h3 a:hover,
.post_content aside.onebox h3 a:focus,
.post_content aside.onebox h4 a:hover,
.post_content aside.onebox h4 a:focus {
    color: #0f6ea8;
    text-decoration: underline;
}

.post_content aside.onebox p {
    margin: 0.35em 0 0 0;
    color: #444444;
    line-height: 1.5;
}

.post_content aside.onebox .onebox-metadata {
    padding: 0 1em 1em 1em;
    font-size: 0.85rem;
    color: #666666;
}

.post_content aside.onebox .onebox-metadata a {
    color: #666666;
}

.post_content aside.onebox .badge-wrapper,
.post_content aside.onebox .date,
.post_content aside.onebox .label1,
.post_content aside.onebox .label2 {
    margin-right: 0.75em;
}

.post_content iframe {
    max-width: 100%;
}

@media only screen and (max-width: 760px) {
    .post_content aside.onebox {
        max-width: 100%;
    }

    .post_content aside.onebox article.onebox-body {
        display: block;
    }

    .post_content aside.onebox img.thumbnail {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 0.85em;
    }
}
