/* mongs-standard.css (2026-11-10) — 사이트 공통 기준 1단계: 제목 크기·제목/설명/탭 간격.
   이 파일 한 곳에서만 정한다. mz-m8.php에 같은 값을 다시 덧붙이지 않는다.
   되돌리기: mz-m8.php 맨 끝 <link id="mongs-standard-css"> 한 줄 삭제. */
@layer unify {
/* mongs-unify.css — 1단계: 제목 크기·제목/설명/탭 간격만 한 기준으로 (색·상자 모양은 그대로)
   이 파일 하나가 모든 페이지의 제목·간격을 정한다. 다른 파일에서 같은 값을 다시 정하지 않는다. */
:root{
  --u-page:32px; --u-sec:28px; --u-desc:16px;
  --u-t2d:8px;   /* 제목 → 설명 */
  --u-d2c:24px;  /* 설명(또는 제목) → 탭·본문 */
}
@media (max-width:767px){:root{--u-page:24px; --u-sec:21px; --u-desc:14px; --u-d2c:16px}}

/* 페이지 제목 (배너 없는 페이지) */
.directory-intro h1,.school-title-row h1,
.rp-main > section.rp-section:first-of-type:not(.rp-banner) .rp-heading h2{font-size:var(--u-page)!important;font-weight:800!important;line-height:1.3!important;margin:0!important}

/* 섹션 제목 */
.rp-heading h2,.sec-tit,.school-summary h2,.msection .title_area .tit{font-size:var(--u-sec)!important;font-weight:700!important;line-height:1.35!important;margin:0!important}
.rp-main > section.rp-section:first-of-type:not(.rp-banner) .rp-heading h2{font-size:var(--u-page)!important;font-weight:800!important}

/* 설명 */
.rp-heading p,.directory-intro h1 + p,.school-summary h2 + p,.msection .descbox .desc{font-size:var(--u-desc)!important;line-height:1.6!important;margin:var(--u-t2d) 0 0!important}
.school-title-row h1 + p{margin-top:var(--u-t2d)!important}

/* 제목·설명 묶음 → 탭·본문 */
.rp-heading{margin:0 0 var(--u-d2c)!important}
.rp-heading + .rp-tabs{margin-top:0!important}
.rp-tabs{margin-bottom:var(--u-d2c)!important}
.sec-tit{margin-bottom:var(--u-t2d)!important}
.sec-tit + :not(p){margin-top:var(--u-d2c)!important}
.msection .title_area{margin-bottom:var(--u-d2c)!important}
.msection .descbox{gap:0!important}
.msection .descbox .title_area,.msection .descbox .title{margin:0!important}
.msection .descbox .desc + *{margin-top:var(--u-d2c)!important}
.msection .title_area{row-gap:var(--u-t2d)!important}
.msection .title_area + *{margin-top:0!important}

}
