.wysiwyg {
    --ml-size: 0;
    line-height: 1.5;

    h2 {
        font-size: 2rem;
        border-bottom: 0.5em solid;
        border-image-source: var(--main-gradient);
        border-image-slice: 1;
        width: 100%;
        padding-bottom: 0.5em;
        font-weight: bold;
    }

    h3 {
        font-size: 1.5rem;
        color: var(--main-color);
        font-weight: bold;
    }

    h4 {
        display: flex;
        height: fit-content;
        align-items: center;
        position: relative;
        padding-left: 1.5em;
        color: var(--main-color);
        font-weight: bold;
        font-size: 1.5rem;
        &:before {
            content: "";
            display: block;
            width: 0.75em;
            height: 0.75em;
            background-image: url("/assets/images/icon-ttl.svg");
            background-size: contain;
            background-repeat: no-repeat;
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
        }
    }

    a {
        color: var(--text-link-color);
        text-decoration: none;
        font-weight: bold;
        &:not(:has(img)):hover {
            background-color: var(--hover-bg);
        }
    }

    blockquote {
        border-left: 0.5em solid var(--main-color);
        padding-left: 1em;
        font-style: italic;
        margin-left: var(--ml-size);
    }

    p {
        margin-left: var(--ml-size);
    }

    ol {
        margin-left: var(--ml-size);
        list-style-type: decimal;
    }

    ol:has(li[data-list="bullet"]) {
        list-style-type: disc;
        margin-left: var(--ml-size);
    }

    hr {
        border-color: #ededed;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    img {
        max-width: 100%;
        height: auto;
        border: 1px solid #ccc;
    }

    .ql-indent-1 {
        margin-left: 15em;
    }
    .ql-indent-2 {
        margin-left: 20em;
    }
    .ql-indent-3 {
        margin-left: 25em;
    }
    .ql-indent-4 {
        margin-left: 30em;
    }

    .ql-align-center {
        text-align: center;
    }
    .ql-align-right {
        text-align: right;
    }

    .quill-better-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .quill-better-table-wrapper:has(.ql-align-table-center) {
        display: flex;
        justify-content: center;
    }

    table {
        table-layout: fixed;
        border-collapse: collapse;
        margin-left: var(--ml-size);
        border: 1px solid #c4c4c4;
        th,
        td,
        tr {
            border: 1px solid #c4c4c4;
            padding: 0.5em;
            text-align: left;
            p {
                margin-left: 0;
            }
        }
    }
    table:not([style]) {
        th,td{
            white-space: nowrap;
        }
    }
}
