.nexus-generated-content {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
    color: inherit;
    max-width: 100%;
    box-sizing: border-box;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.nexus-generated-content p {
    margin: 0 0 1.35em;
    line-height: 1.85;
    font-weight: 400;
}

.nexus-generated-content h1 {
    margin: 0 0 1.05em;
    line-height: 1.28;
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: 0;
    word-break: keep-all;
}

.nexus-generated-content h2 {
    margin: 2.35em 0 .95em;
    line-height: 1.38;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0;
    word-break: keep-all;
}

.nexus-generated-content h3 {
    margin: 1.85em 0 .75em;
    line-height: 1.45;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0;
    word-break: keep-all;
}

.nexus-generated-content ul,
.nexus-generated-content ol:not(.nexus-toc-list) {
    margin: 0 0 1.35em 1.25em;
    padding: 0;
    line-height: 1.75;
}

.nexus-generated-content li {
    margin: .42em 0;
}

.nexus-generated-content figure,
.nexus-generated-content .wp-block-image {
    margin: 2rem 0;
    max-width: 100%;
}

.nexus-generated-content img {
    max-width: 100%;
    height: auto;
}

.nexus-table-of-contents,
.nexus-toc {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 32px 0 40px;
    padding: 0;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    background: #fff;
    overflow-wrap: anywhere;
    color: inherit;
}

.nexus-toc__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 1rem 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.nexus-toc__title::-webkit-details-marker {
    display: none;
}

.nexus-toc__toggle {
    width: .65rem;
    height: .65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .16s ease;
    flex: 0 0 auto;
}

.nexus-table-of-contents[open] .nexus-toc__toggle,
.nexus-toc[open] .nexus-toc__toggle {
    transform: rotate(225deg);
}

.nexus-toc__content {
    padding: 0 1.15rem 1rem;
}

.nexus-table-of-contents ol,
.nexus-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nexus-table-of-contents ol ol,
.nexus-toc ol ol {
    margin-top: .35rem;
    margin-left: 1.25rem;
}

.nexus-table-of-contents li,
.nexus-toc li {
    margin: .42rem 0;
    line-height: 1.65;
}

.nexus-table-of-contents a,
.nexus-toc a {
    text-decoration: none;
    color: inherit;
}

.nexus-table-of-contents a:hover,
.nexus-table-of-contents a:focus,
.nexus-toc a:hover,
.nexus-toc a:focus {
    text-decoration: underline;
}

.nexus-table-of-contents .nexus-toc-number,
.nexus-toc .nexus-toc-number {
    display: inline-block;
    min-width: 2.25rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .nexus-generated-content p {
        line-height: 1.82;
        margin-bottom: 1.25em;
    }

    .nexus-generated-content h1 {
        margin-bottom: .95em;
        line-height: 1.3;
        font-size: 1.75rem;
    }

    .nexus-generated-content h2 {
        margin-top: 2.05em;
        margin-bottom: .85em;
        line-height: 1.4;
        font-size: 1.45rem;
    }

    .nexus-generated-content h3 {
        margin-top: 1.65em;
        line-height: 1.45;
        font-size: 1.25rem;
    }

    .nexus-table-of-contents,
    .nexus-toc {
        margin: 28px 0 34px;
        border-radius: 7px;
    }

    .nexus-toc__title,
    .nexus-toc__content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.nexus-generated-content .nexus-related-content__guide-link {
    margin: 16px 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.nexus-generated-content .nexus-related-content__guide-link a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
