@charset "utf-8";

/* ==========================================================================
   대구메이트 내용관리 문서 (이용약관 / 개인정보 처리방침)

   - bbs/content.php 는 코어 스킨(skin/content/basic)을 그대로 쓴다. 스킨을 고치는 대신
     여기서 시안 폭·서체를 입힌다. 실리는 곳은 shop/shop.head.php 의 시안 셸 분기다.
   - default.css(0) → skin/content/basic/style.css(0) → main.css(100) → 이 파일(120) 순서다.
     style.css 가 #ctt header h1 을 숨기므로 여기서 다시 보이게 한다.
   - 문서 본문(#ctt_con)은 관리자가 에디터로 넣는 HTML 이라 태그를 가리지 않고 다 받는다.
   - FAQ(faq.css)와 같은 본문 폭·제목 크기를 쓴다.

   브레이크포인트 (main.css 와 동일)
     ~767px   모바일       : 상단 여백·제목 축소
   ========================================================================== */

:root {
    --dm-ctt-w: 1000px;         /* 본문 폭 (faq.css 와 같다) */
    --dm-ctt-top: 160px;        /* 상단(60px) 아래 → 제목 */
}

#dm_wrap #ctt {
    width: 100%;
    max-width: calc(var(--dm-ctt-w) + var(--dm-gutter) * 2);
    margin: 0 auto;
    padding: var(--dm-ctt-top) var(--dm-gutter) 160px;
    background: none;
    font-family: var(--dm-font-kr);
}
#dm_wrap #ctt header h1 {
    /* style.css 가 숨겨 둔 제목을 시안 제목으로 되살린다 */
    position: static;
    margin: 0 0 60px;
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
    color: var(--dm-base0);
    text-align: center;
    overflow: visible;
}
#dm_wrap #ctt_con {
    padding: 0;
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
    color: var(--dm-base2);
    word-break: break-word;
}
#dm_wrap #ctt_con p {
    margin: 0 0 12px;
}
#dm_wrap #ctt_con h2,
#dm_wrap #ctt_con h3,
#dm_wrap #ctt_con h4 {
    margin: 40px 0 12px;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: var(--dm-base1);
}
#dm_wrap #ctt_con h2:first-child,
#dm_wrap #ctt_con h3:first-child,
#dm_wrap #ctt_con h4:first-child {
    margin-top: 0;
}
#dm_wrap #ctt_con ul,
#dm_wrap #ctt_con ol {
    margin: 0 0 12px;
    padding-left: 20px;
}
#dm_wrap #ctt_con li {
    list-style: inherit;
}
#dm_wrap #ctt_con a {
    color: var(--dm-primary);
    text-decoration: underline;
}
#dm_wrap #ctt_con table {
    width: 100%;
    margin: 0 0 12px;
    border-top: 1px solid var(--dm-base1);
    border-collapse: collapse;
}
#dm_wrap #ctt_con th,
#dm_wrap #ctt_con td {
    padding: 12px;
    border-bottom: 1px solid var(--dm-base8);
    text-align: left;
}
#dm_wrap #ctt_con th {
    background: var(--dm-base9);
    font-weight: 600;
}

/* 관리자 상단/하단 이미지 */
#dm_wrap .ctt_img {
    max-width: calc(var(--dm-ctt-w) + var(--dm-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--dm-gutter);
}
#dm_wrap .ctt_img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 관리자에게만 보이는 수정 버튼 */
#dm_wrap .ctt_admin {
    max-width: calc(var(--dm-ctt-w) + var(--dm-gutter) * 2);
    margin: 20px auto -20px;
    padding: 0 var(--dm-gutter);
    text-align: right;
}

/* ======================================================================
   ~767px : 모바일
   ====================================================================== */
@media (max-width: 767px) {
    :root {
        --dm-ctt-top: 80px;
    }
    #dm_wrap #ctt {
        padding-bottom: 80px;
    }
    #dm_wrap #ctt header h1 {
        margin-bottom: 32px;
        font-size: 22px;
        line-height: 30px;
    }
    #dm_wrap #ctt_con {
        font-size: 14px;
        line-height: 24px;
    }
}
