/* The site's own rules over the theme (page.min.css is the theme, built by tools/css). */

/* The text of the site: regular weight and a darker grey than the theme's light 300 #757575 (contrast about 7:1). */
body {
    font-weight: 400;
    color: #555;
}

/* Long text (articles, descriptions): a column of about 75 characters, left aligned (justify left gaps between the
   words, worst on the phone), more air between the lines and the paragraphs. */
.article-text {
    max-width: 46rem;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
    color: #333;
    text-align: left;
    overflow-wrap: break-word;
}

.article-text p {
    margin-bottom: 1.1em;
}

.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5 {
    margin: 1.6em 0 .6em;
    line-height: 1.3;
    color: #1b1b2f;
}

.article-text ul,
.article-text ol {
    padding-left: 1.4em;
    margin-bottom: 1.1em;
}

.article-text li {
    margin-bottom: .35em;
}

.article-text a:not(.badge) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-text blockquote {
    border-left: 3px solid #6b46c1;
    padding: .2em 0 .2em 1em;
    color: #555;
    font-style: italic;
}

.article-text strong,
.article-text b {
    font-weight: 600;
    color: #222;
}

/* Pictures and tables pasted into an article stay within the column (a wide table scrolls). */
.article-text img {
    max-width: 100%;
    height: auto;
}

.article-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* The column on the right of a publication: similar publications, the latest news. On a wide screen it stays in view
   under the sticky menu while the text scrolls; on the phone it follows the text. */
.publication-aside {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .publication-aside-inner {
        position: sticky;
        top: 90px;
        padding-left: 1.5rem;
        border-left: 1px solid #ececf2;
    }
}

.publication-aside-title {
    margin: 0 0 .75rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1b1b2f;
}

.publication-aside-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.publication-aside-list li {
    padding: .6rem 0;
    border-bottom: 1px solid #f1f1f5;
    line-height: 1.35;
}

.publication-aside-list li:last-child {
    border-bottom: 0;
}

.publication-aside-list a {
    display: block;
    color: #2b2b3c;
    font-weight: 500;
}

.publication-aside-list a:hover {
    color: #6b46c1;
}

.publication-aside-meta {
    display: block;
    margin-top: .2rem;
    font-size: .8rem;
    color: #8a8a99;
}

.publication-aside-more {
    font-size: .875rem;
    font-weight: 500;
}
