@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* 가장 우선순위가 높은 ID 선택자 사용 */
#comment {
    height: 100px !important;
    min-height: 100px !important;
}

a {
    text-decoration: none !important;
}

/* 1. 슬라이더 ID를 직접 타겟팅하여 하단 여백 제거 */
#post_slider {
    margin-bottom: 80px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* 2. 슬라이더 바로 다음에 오는 본문 영역 강제 밀착 */
#post_slider + #content,
#post_slider + .l-main,
#post_slider + main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 3. 모바일에서만 발생하는 숨은 여백 제거 */
@media (max-width: 959px) {
    #post_slider {
        margin-bottom: 60px !important; /* 약간의 네거티브 마진으로 더 밀착 */
    }
    .l-mainContent {
        padding-top: 0 !important;
    }
}

/* 1. 공통: 카테고리 헤더 및 보라색 라인 제거 */
.p-termHeader, 
.c-pageTitle, 
.archive-header,
.c-pageTitle::after, 
.p-termHeader::after {
    display: none !important;
    content: none !important;
}

/* 2. [목록/카테고리 페이지] 여백 줄이기 */
.archive .l-mainContent, 
.category .l-mainContent {
    margin-top: -80px !important;  /* 상단으로 바짝 붙임 */
    padding-top: 0 !important;
}

/* 3. [포스팅 본문 페이지] 여백 확보! */
.single-post .l-mainContent {
    margin-top: 0px !important; /* 본문은 여유를 줌 */
    padding-top: 10px !important;
}

/* 4. 모바일 대응: 본문에서 헤더와 겹치지 않게 안전장치 */
@media screen and (max-width: 959px) {
    .single-post .l-mainContent {
        margin-top: -40px !important; 
        padding-top: 45px !important;  /* 상단바와 겹치지 않게 밀어냄 */
    }
    
    .archive .l-mainContent, 
    .category .l-mainContent {
        padding-top: 25px !important; /* 목록도 모바일은 헤더 자리가 필요*/
    }
}


/* PC에서 본문과 사이드바의 시작 높이를 일치시킴 */
@media screen and (min-width: 960px) {
    /* 1. 사이드바 전체의 상단 여백 조정 */
    .l-sidebar {
        padding-top: 0 !important;
        margin-top: 0.2rem !important;
    }

    /* 2. 사이드바 타이틀(인기 기사 등)의 상단 여백 제거 */
    .p-asideTitle {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* 3. 왼쪽 본문의 섹션 타이틀 하단 라인 위치 미세 조정 */
    .p-topSection__title, 
    .c-widget__title {
        margin-top: 0 !important;
        line-height: 1.2 !important;
    }
}

/* 모바일 메뉴의 '콘텐츠' 타이틀 배경 제거 */
.c-widget__title.-spmenu {
    background: transparent !important;
    color: #333 !important;
    padding-left: 10 !important;

}

