/* 에디터 본문의 상하 여백만 제거하고 입력창·목록 들여쓰기·구분선 간격은 유지합니다. */
body.frit-page :is(.portfolio-rich-text, .toastui-editor-contents) :is(
    h1, h2, h3, h4, h5, h6, p, div, ul, ol, li, blockquote, pre, code
),
body.frit-page .toastui-editor-contents h1:first-of-type {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* 제목 서식은 크기만 바꾸며 사용자가 직접 적용한 굵게·색상 등은 그대로 표시합니다. */
body.frit-page :is(.portfolio-rich-text, .toastui-editor-contents) :is(h1, h2, h3, h4, h5, h6) {
    border: 0;
    color: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

/* 대표 콘텐츠의 기존 제목 버튼과 포트폴리오 미리보기는 같은 크기를 사용합니다. */
body.frit-page .portfolio-rich-text h2 { font-size: 32px; }
body.frit-page .portfolio-rich-text h3 { font-size: 24px; }
body.frit-page .portfolio-rich-text h4 { font-size: 20px; }

/* TOAST UI의 실제 제목 단계와 저장된 서비스 소개 HTML의 크기를 일치시킵니다. */
body.frit-page :is(.toastui-editor-contents, [data-business-about]) h1 { font-size: 24px; }
body.frit-page :is(.toastui-editor-contents, [data-business-about]) h2 { font-size: 22px; }
body.frit-page :is(.toastui-editor-contents, [data-business-about]) h3 { font-size: 20px; }
body.frit-page :is(.toastui-editor-contents, [data-business-about]) h4 { font-size: 18px; }
body.frit-page :is(.toastui-editor-contents, [data-business-about]) h5 { font-size: 16px; }
body.frit-page :is(.toastui-editor-contents, [data-business-about]) h6 { font-size: 14px; }
/* 비즈니스 소개·상세 정보는 작성 화면과 상세 화면에서 같은 본문·강조 서식을 사용합니다. */
body.frit-page :is(.profile-editor-page, .business-preview-detail) :is(.portfolio-rich-text, .toastui-editor-contents) {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

body.frit-page :is(.profile-editor-page, .business-preview-detail) :is(.portfolio-rich-text, .toastui-editor-contents) p {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

body.frit-page :is(.profile-editor-page, .business-preview-detail) :is(.portfolio-rich-text, .toastui-editor-contents) :is(b, strong) {
    font-weight: 700;
    line-height: 1.4;
}
