.hGraph {
    color: var(--hera-text-color);
    word-break: break-all;
    padding-top: 5px;

    table {
        border: 1px solid var(--hera-border-color);
        border-collapse: collapse;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        font-size: 12px;
        color: var(--hera-text-light);

        thead {
            tr {
                background-color: #f5f5f5;
            }
        }

        tr {
            background-color: #fff;

            &:hover {
                & > td {
                    background-color: #f5f5f5;
                    background-clip: padding-box;
                }
            }
        }

        td,
        th {
            border-bottom: 1px solid var(--hera-border-color);
            border-right: 1px solid var(--hera-border-color);
            transition: background-color 0.25s ease;
            height: 40px;
            min-width: 0;
            box-sizing: border-box;
            text-overflow: ellipsis;
            vertical-align: middle;
            position: relative;
            margin: 0;
            padding: 0 10px;
        }
    }

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

    pre {
        word-break: break-all;
        white-space: break-spaces;
        background-color: var(--hera-background-gray);
        padding: 10px 15px;
        border-radius: 5px;
        font-size: 14px;
        color: var(--hera-text-light);
        overflow-x: auto;
    }

    p {
        margin-bottom: 25px;
        hyphens: auto;

        &:last-child {
            margin-bottom: 0;
        }

        @media (max-width: 820px) {
            margin-bottom: 15px;
        }
    }

    blockquote {
        color: var(--hera-text-light);
        border-color: var(--hera-border-color-light);
        margin-left: -3.5%;
        border-left: 3px solid #000;
        margin-bottom: 35px;
        padding: 10px 30px;

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

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

    a {
        text-decoration: underline;
        transition: 0.2s;
        color: var(--hera-main-color);

        &[href*="jpeg"],
        &[href*="JPEG"],
        &[href*="jpg"],
        &[href*="png"],
        &[href*="PNG"],
        &[href*="JPG"],
        &[href*="gif"] {
            box-shadow: none;
            &:hover {
                box-shadow: none;
            }
        }

        &:hover {
            color: var(--hera-hover-color);
            text-decoration: underline;
        }
    }

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

        @media screen and (max-width: 768px) {
            font-size: 20px;
        }

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

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

        &:target {
            color: var(--hera-hover-color);
        }
    }

    h4 {
        font-size: 18px;
        font-weight: 400;
        color: var(--hera-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: 15px;

        @media (max-width: 820px) {
            padding-left: 0px;
            margin-bottom: 15px;
        }

        li {
            margin-left: 25px;
            margin-bottom: 5px;

            @media (max-width: 820px) {
                line-height: 1.6;
            }

            &: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(--hera-hover-color);
            }
        }
    }

    ol {
        counter-reset: item;

        & > li:before {
            content: counter(item);
            counter-increment: item;
            font-size: 12px;
            font-weight: 700;
            align-items: center;
            background-color: rgba(195, 218, 254, 0.43);
            border: 0 solid #999;
            border-radius: 9999px;
            box-sizing: border-box;
            color: var(--hera-hover-color);
            display: inline-flex;
            height: 19px;
            justify-content: center;
            margin-left: -24px !important;
            margin-right: 10px;
            margin-top: 4px;
            transform: translateY(-1px);
            width: 30px;
            padding: 0;
        }
    }
}
