/* =========================================================
   latest-news 접기 전용 CSS
   - 기본 닫힘: <details>에 open 속성을 넣지 않음
   - 닫힘 상태 상/하 여백 0
   - summary 텍스트/마커/밑줄/높이 제거
   - 기존 latest-news / rt-* 구조 영향 최소화
   ========================================================= */

details.xet-thin-fold{
    display:block;
    width:100%;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

/* 접기 버튼 영역 완전 제거 */
details.xet-thin-fold > summary{
    display:block !important;
    width:100% !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    font-size:0 !important;
    line-height:0 !important;
    color:transparent !important;
    text-decoration:none !important;
    list-style:none !important;
    overflow:hidden !important;
    cursor:pointer;
}

/* 브라우저 기본 삼각형/마커 제거 */
details.xet-thin-fold > summary::-webkit-details-marker{
    display:none !important;
}

details.xet-thin-fold > summary::marker{
    display:none !important;
    content:"" !important;
}

details.xet-thin-fold > summary::before,
details.xet-thin-fold > summary::after{
    display:none !important;
    content:none !important;
}

/* 닫힌 상태: 내부 콘텐츠가 차지하는 공간까지 제거 */
details.xet-thin-fold:not([open]) > .latest-news{
    display:none !important;
    margin:0 !important;
    padding:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    border:0 !important;
}

/* 열린 상태 */
details.xet-thin-fold[open] > .latest-news{
    display:block;
    height:auto;
    max-height:none;
}

/* 기존 섹션 구조 보호 */
details.xet-thin-fold > .latest-news{
    width:100%;
    box-sizing:border-box;
}

/* Post Grid 기존 구조 보호 */
details.xet-thin-fold .latest-news .rt-container-fluid,
details.xet-thin-fold .latest-news .rt-tpg-container,
details.xet-thin-fold .latest-news .rt-holder,
details.xet-thin-fold .latest-news .rt-img-holder,
details.xet-thin-fold .latest-news .rt-detail{
    box-sizing:border-box;
}

/* 링크 밑줄 제거 */
details.xet-thin-fold .latest-news a,
details.xet-thin-fold .latest-news a:hover,
details.xet-thin-fold .latest-news a:focus,
details.xet-thin-fold .latest-news a:active{
    text-decoration:none !important;
}

/* 모바일에서도 닫힌 상태 공백 방지 */
@media (max-width:768px){
    details.xet-thin-fold,
    details.xet-thin-fold > summary,
    details.xet-thin-fold:not([open]) > .latest-news{
        margin-top:0 !important;
        margin-bottom:0 !important;
        padding-top:0 !important;
        padding-bottom:0 !important;
    }
}