:root {
    --color-light-blue: #f5f8fe;
}

[id] {
    scroll-margin-top: 150px;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Headings styles */
.blog-styles .prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)) {
    font-size: 2rem;
}

.blog-styles .prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)) {
    font-size: 1.75rem;
}

.blog-styles .prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)) {
    font-size: 1.5rem;
}

.blog-styles .prose :where(h5):not(:where([class~=not-prose],[class~=not-prose] *)) {
    font-size: 1.25rem;
    line-height: 1.75;
}

.blog-styles .prose :where(h2, h3, h4, h5):not(:where([class~=not-prose],[class~=not-prose] *)):not(:first-child) {
    margin-top: 0.75em;
}

.section-initial {
    padding-bottom: 10px;
}

.postAuthorInfo {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 26px;
    border-radius: 16px;
    width: fit-content;
    background-color: var(--color-light-blue);
}

.postAuthorInfo__imageWrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
}

.postAuthorInfo__imageWrapper img {
    border-radius: 50%;
    margin-block: 0;
}

.postAuthorInfo__name {
    //
}

.postAuthorInfo__description {
    //
}

.postAuthorInfo__description p {
    line-height: 1.5;
    font-size: 0.875rem;
}

.postAuthorInfo__link {
    display: flex;
    gap: 2px;
    margin-top: 6px;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.2;
    text-decoration: underline;

    &:hover svg {
        transform: translateX(4px);
    }
}

.postAuthorInfo--hasLargeImage .postAuthorInfo__imageWrapper {
    width: 120px;
    height: 120px;
}

.featuredInfo {
    border-radius: 3rem;
    padding: 20px 30px;
    background-color: var(--color-light-blue);

    & p {
        font-size: 1.25rem;
    }

    & ul {
        margin-top: 16px;
        margin-left: 20px;
    }
}

.postDisclaimer {
    margin-block: 20px;
    font-style: italic;
    font-size: 0.875rem;
}

.bibliography {
    padding: 20px 30px;
    border-radius: 16px;
    background-color: white;
    border-width: 1px;
    border-style: solid;

    & summary:hover {
        cursor: pointer;
    }

    & ol {
        list-style: decimal;
        margin-top: 12px;
        padding-left: 1em;
    }
}

.crewQuote {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 30px 50px;
    min-height: 180px;
    background-color: hsla(350, 81%, 61%, 0.33);
    & svg {
        position: absolute;
        bottom: 10px;
        right: 20px;
        max-width: 95px;
        width: 20%;
        height: auto;
        fill: white;
        pointer-events: none;
    }
}

.crewQuote__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    column-gap: 40px;
    z-index: 2;

    & figure {
        flex-shrink: 0;
        width: 120px;
        height: 120px;
    }

    & img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-radius: 100%;
    }
}

.crewQuote__quote {
    font-size: 1.25rem;
    font-style: italic;
}

details,
summary {
    list-style-type: none;
}

.highlight-menu-item > a.magenta {
    color: #955395;
    border-color: #955395;
}

.highlight-menu-item > a.navy {
    color: #3a5277;
    border-color: #3a5277;
}

.highlight-menu-item > a.teal {
    color: #007c79;
    border-color: #007c79;
}

.highlight-menu-item > a.blue {
    color: #4d7bff;
    border-color: #4d7bff;
}

.tableOfContents {
    & {
        ol {
            padding-inline-start: 0;
            margin-block-end: 1em;
            counter-reset: section;
        }

        ol li {
            display: block;
        }

        ol li.hidden {
            display: none;
        }

        ol > li {
            counter-increment: section;
        }

        ol > li::before {
            content: counter(section) ". ";
            font-weight: bold;
        }

        ol > li > ol {
            counter-reset: subsection;
        }

        ol > li > ol > li {
            counter-increment: subsection;
        }

        ol > li > ol > li::before {
            content: counter(section) "." counter(subsection) " ";
            margin-inline-end: 0.2em;
        }

        ol > li > ol > li > ol {
            counter-reset: subsubsection;
        }

        ol > li > ol > li > ol > li {
            counter-increment: subsubsection;
        }

        ol > li > ol > li > ol > li::before {
            content: counter(section) "." counter(subsection) "." counter(subsubsection) " ";
        }

        ol ol {
            margin-block-end: 0;
            padding-inline-start: 1.5em;
        }
    }

    & h2 {
        font-size: 1.25rem;
        font-weight: 700;
    }

    & li {
        margin-top: 4px;
    }

    & li::marker {
        font-weight: 700;
    }

    & li svg {
        display: inline-block;
        opacity: 0;
        transition-property: opacity, transform;
        transition-duration: 200ms;
        color: #ec4c67;
    }

    & li a:hover {
        text-decoration: underline;
    }

    & li a:hover svg {
        transform: translateX(4px);
        opacity: 1;
    }
}

.blog-styles>.constrained {
    background-color: initial;
}

/* Breakpoints */

@media (max-width: 767px) {
    .postAuthorInfo {
        padding: 20px;
        width: 100%;
    }

    .postAuthorInfo--hasLargeImage {
        align-items: flex-start;
    }

    .postAuthorInfo--hasLargeImage .postAuthorInfo__imageWrapper {
        width: 70px;
        height: 70px;
    }

    .crewQuote {
        padding: 30px;
    }

    .crewQuote__inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .crewQuote__quote {
        font-size: 1.125rem;
    }

}

@media (max-width: 639px) {
    .featuredInfo {
        padding: 20px;

        & p {
            text-align: center;
        }

        & ul {
            margin-top: 12px;
            margin-left: 0;
        }
    }

    .crewQuote {
        padding: 20px;
    }

    .tableOfContents li svg {
        display: none;
    }
}