/* Series box on articles that belong to a series (see layouts/partials/series/box.html) */
.series-box {
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid var(--site-header-bg-color, #f4bf75);
    background: var(--link-bg-color, rgba(244, 191, 117, 0.25));
    border-radius: 4px;
}
.series-box-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}
.series-box-title,
.series-box-part-title {
    font-family: 'Averia Libre', 'Lato', 'Helvetica', sans-serif;
    line-height: 1.2;
}
.series-box-title {
    font-size: 1.6em;
}
.series-box-subtitle,
.series-subtitle,
.series-item-subtitle {
    font-style: italic;
}
.series-subtitle {
    font-size: 1.2em;
    margin-bottom: 1em;
}
.series-box-part {
    margin-top: 0.8em;
}
/* The part title relates to the series title like h2 to h1 */
.series-box-part-title {
    display: block;
    font-size: 1.33em;
}
.series-box-part-subtitle {
    display: block;
    font-style: italic;
}
.series-box-details {
    margin-top: 0.6em;
}
.series-box-details summary {
    cursor: pointer;
}
.series-box-details .series-toc {
    margin-top: 0.5em;
}

/* Series table of contents (series pages and series box) */
.series-toc-part {
    margin-bottom: 0.8em;
}
.series-toc .series-part {
    font-weight: bold;
}
.series-toc h2.series-part {
    margin-bottom: 0.1em;
}
.series-part-subtitle {
    font-style: italic;
    margin-bottom: 0.3em;
}
.series-toc-list {
    margin: 0.2em 0 0 1em;
}
.series-toc-current {
    font-weight: bold;
}
.series-toc-current::before {
    content: "▸ ";
}
.series-coming-soon {
    margin-left: 1em;
    opacity: 0.6;
    font-style: italic;
}

/* Series list: subtitle and description go below the series title */
.series-list .archive-item {
    flex-direction: column;
}
.series-item-count {
    white-space: nowrap;
}
.series-item-title {
    margin-bottom: 0.1em;
}
.series-item-title .series-item-count {
    font-size: 0.55em;
    font-weight: normal;
}
