.jGraph {
    color: var(--jaguar-text-color);
    word-break: break-all;

    img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    pre {
        word-break: break-all;
        white-space: break-spaces;
        background-color: var(--jaguar-background-gray-light);
        padding: 10px 20px;
        border-radius: 15px;
        font-size: 14px;
        color: var(--jaguar-text-light);
        line-height: 1.6;
        box-shadow: 0px 0px 1px 0 rgba(136, 167, 225, 10%);
        border: 1px solid #fff;
    }

    code {
        background-color: var(--jaguar-background-gray-light);
        padding: 2px 5px;
        border-radius: 5px;
        font-size: 14px;
    }

    p {
        margin-bottom: 25px;
        hyphens: auto;
        &:last-child {
            margin-bottom: 0;
        }
    }

    blockquote {
        color: var(--jaguar-text-gray);
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 35px;
        background-color: var(--jaguar-background-gray-light);
        padding: 50px 20px 20px 20px;
        border-radius: 15px;
        background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuMjkyODkgMS4yOTI5MUw2LjcwNzExIDIuNzA3MTJMMyA2LjQxNDIzVjcuMDAwMDFIN1YxNEgxVjUuNTg1OEw1LjI5Mjg5IDEuMjkyOTFaIiBmaWxsPSIjMDAwMDAwIi8+CjxwYXRoIGQ9Ik0xNSA3LjAwMDAxSDExVjYuNDE0MjNMMTQuNzA3MSAyLjcwNzEyTDEzLjI5MjkgMS4yOTI5MUw5IDUuNTg1OFYxNEgxNVY3LjAwMDAxWiIgZmlsbD0iIzAwMDAwMCIvPgo8L3N2Zz4=);
        background-repeat: no-repeat;
        background-size: 32px 32px;
        background-position: left 30px top 14px;
        box-shadow: 0px 0px 1px 0 rgba(136, 167, 225, 10%);
        border: 1px solid var(--jaguar-background-white);
        line-height: 1.6;
        font-size: 14px;

        p {
            margin-bottom: 10px;
            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    a {
        text-decoration: underline;
        transition: 0.5s color;
        &:hover {
            color: var(--jaguar-main-color);
        }

        .link--icon {
            display: inline-block;
            margin-left: 5px;
            font-size: 12px;
            color: var(--jaguar-text-gray);
            transition: 0.2s;
            &:hover {
                color: var(--jaguar-main-color);
            }
        }
    }

    h2,
    h3 {
        margin-bottom: 15px;
        margin-top: 30px;
        font-size: 22px;
        font-weight: 400;
        color: var(--jaguar-text-gray);
        line-height: 1.3;
        position: relative;

        & + h4 {
            margin-top: 15px;
        }

        &:before {
            content: '';
            position: absolute;
            top: 0.5em;
            bottom: -2px;
            left: -10px;
            width: 3.4em;
            z-index: -1;
            background: var(--jaguar-hover-color);
            opacity: 0.3;
            transform: skew(-35deg);
            transition: opacity 0.2s ease;
            border-radius: 3px 8px 10px 6px;
        }

        &:target {
            border-radius: 11px;
            animation: fadeOut-headings 0.4s;
            animation-fill-mode: forwards;
            color: #fff;
        }
    }

    h4 {
        font-size: 20px;
        font-weight: 400;
        color: var(--jaguar-text-gray-lightest);
        margin-bottom: 10px;
        margin-top: 30px;
        line-height: 1.3;
    }

    hr {
        border: 0;
        text-align: center;
        font-size: 32px;
        height: auto;
        margin-top: 0;
        margin-bottom: 15px;

        &:before {
            content: '...';
            letter-spacing: 0.6em;
            text-indent: 0.6em;
        }
    }

    b,
    strong {
        font-weight: 700;
    }

    ul,
    ol {
        margin-bottom: 25px;
        padding-left: 20px;

        li {
            margin-left: 25px;
            margin-bottom: 5px;
            &:before {
                content: '•';
                box-sizing: border-box;
                font-size: 18px;
                margin-left: -35px;
                padding-right: 10px;
                display: inline-block;
                text-align: right;
                width: 32px;
                color: var(--jaguar-main-color);
            }
        }
    }

    ol {
        counter-reset: item;
        padding-left: 40px;

        & > li:before {
            content: counter(item);
            counter-increment: item;
            font-size: 12px;
            align-items: center;
            border: 1px solid var(--jaguar-border-color);
            border-radius: 5px;
            box-sizing: border-box;
            color: var(--jaguar-text-light);
            display: inline-flex;
            height: 20px;
            justify-content: center;
            margin-left: -44px !important;
            margin-right: 10px;
            margin-top: 4px;
            transform: translateY(-1px);
            width: 20px;
            padding-right: 0;
        }
    }

    .grap--figure,
    .colonel--figure,
    .wp-caption {
        margin: 0 0 25px;
        position: relative;
        line-height: 1.5;
        max-width: 100%;

        .layoutMultiColumn--primary & {
            margin-left: 0;
            margin-right: 0;
        }

        img {
            border-radius: 10px;
        }

        .imageCaption {
            font-size: 14px;
            text-align: center;
            position: absolute;
            top: 20%;
            left: -120px;
            color: var(--jaguar-text-gray);
            width: 100px;
            text-align: right;
            border-bottom: 1px solid var(--jaguar-border-color-light);
            padding-bottom: 10px;
            word-break: auto-phrase;
            line-height: 1.5;
        }
    }
}

@media (max-width: 820px) {
    .jGraph {
        blockquote {
            margin-left: 0;
            margin-right: 0;
            padding-top: 20px;
            background-position: left 10px top 0;
            margin-bottom: 15px;
        }

        h2,
        h3 {
            font-size: 20px;
        }

        ul {
            padding-left: 0px;
            li {
                line-height: 1.6;
            }
        }

        p {
            margin-bottom: 15px;
        }

        .grap--figure,
        .colonel--figure,
        .wp-caption {
            margin: 0 0 20px;

            .imageCaption {
                position: static;
                width: 100%;
                text-align: center;
                left: 0;
                top: 0;
                border-bottom: none;
                padding-bottom: 0;
            }
        }
    }
}
