/* =========================================
   Jaytee Companion v1.6.0 CSS Patch
   ========================================= */

/* 1. 전체 레이아웃 */
@media (min-width: 769px) {
    .site-content { display: flex !important; flex-wrap: nowrap !important; }
    #primary, .content-area { width: 75% !important; padding-right: 40px !important; }
    #right-sidebar, .sidebar { width: 25% !important; }
}

/* 2. 헤더 및 네비게이션 (v1.5.0 유지) */
.site-logo img, .header-image { width: 380px !important; max-width: 100% !important; height: auto !important; }
.inside-header { padding-top: 15px !important; padding-bottom: 15px !important; }
#site-navigation, .main-navigation, .main-navigation .inside-navigation { background-color: #c9def5 !important; border-top: 1px solid #b0cbe8 !important; border-bottom: 1px solid #b0cbe8 !important; }
.main-navigation .main-nav ul li a { color: #222222 !important; font-weight: bold !important; font-size: 1.1rem !important; background-color: transparent !important; line-height: 40px !important; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li[class*="current-menu-"] > a { background-color: #a4c2ed !important; color: #000000 !important; }

/* 3. 본문 박스 */
.site-main .post, .site-main .generate-columns { width: 100% !important; max-width: 100% !important; float: none !important; display: block !important; margin-bottom: 35px !important; }
.inside-article {
    display: block !important; width: 100% !important; word-break: keep-all !important; white-space: normal !important;
    background: #ffffff !important; padding: 40px 50px !important; border: 1px solid #eaeaea; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); box-sizing: border-box !important;
}

/* 4. 위젯 제어 (v1.5.0 유지) */
.widget_search form { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; gap: 5px !important; }
.widget_search label { display: none !important; }
.widget_search input[type="search"] { flex: 1 !important; height: 36px !important; min-height: 36px !important; padding: 5px 12px !important; font-size: 0.9rem !important; border: 1px solid #ccc !important; border-radius: 2px !important; }
.widget_search .search-submit, .widget_search button { width: 65px !important; height: 36px !important; min-height: 36px !important; padding: 0 !important; line-height: 1 !important; margin: 0 !important; border-radius: 2px !important; }
.sidebar .widget:nth-child(2)::before { content: "최신글"; display: block !important; font-size: 1.1rem !important; font-weight: bold !important; color: #333333 !important; padding-bottom: 8px !important; margin-bottom: 15px !important; border-bottom: 2px solid #222222 !important; }
.sidebar .widget:nth-child(2) ul li:nth-child(n+4) { display: none !important; }
.sidebar .widget:nth-child(2) ul li { margin-bottom: 6px !important; padding-bottom: 6px !important; border-bottom: 1px dashed #eee; }
.sidebar .widget:nth-child(2) ul li a, .sidebar .widget:nth-child(3) ul li a { font-size: 0.85rem !important; line-height: 1.3 !important; display: block !important; color: #0056b3 !important; }
.sidebar .widget:nth-child(3)::before { content: "카테고리"; display: block !important; font-size: 1.1rem !important; font-weight: bold !important; color: #333333 !important; padding-bottom: 8px !important; margin-bottom: 15px !important; border-bottom: 2px solid #222222 !important; }
.sidebar .widget:nth-child(3) ul li { margin-bottom: 6px !important; padding-bottom: 6px !important; border-bottom: 1px dashed #eee; }
.site-footer .footer-widgets-container, .site-footer .widget-area { display: none !important; }

/* =========================================
   [v1.6.0] 썸네일 표시 및 본문 레이아웃 업데이트
   ========================================= */

/* ① 썸네일을 우측으로 띄움 (보이지 않는 오류 수정 및 위치 조정) */
.jaytee-archive-thumb {
    float: right !important; /* 오른쪽으로 띄우기 */
    margin-left: 25px !important; /* 텍스트와의 여백 */
    margin-bottom: 15px !important;
    width: 130px !important;
    height: 130px !important;
    border-radius: 6px !important;
    border: 1px solid #eaeaea !important;
    overflow: hidden !important;
    display: block !important;
}

/* 이미지가 상자를 꽉 채우도록 설정 */
.jaytee-archive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 비율을 유지하며 상자에 맞춤 */
    display: block !important;
}

/* ② 제목과 날짜 정보 (강제로 좁혔던 폭 제한 해제) */
.inside-article .entry-title { 
    font-size: 1.6rem !important; font-weight: 700 !important; line-height: 1.4 !important; margin-bottom: 15px !important; 
    width: auto !important; padding-right: 0 !important;
}
.inside-article .entry-meta { 
    margin-bottom: 25px !important; 
    width: auto !important; padding-right: 0 !important;
}

/* ③ 본문 글 3줄 제한 및 전체 폭 확장 */
.inside-article .entry-summary {
    width: auto !important; /* 썸네일 오른쪽 끝 공간까지 자연스럽게 확장됨 */
    
    /* 정확히 3줄까지만 보이고 말줄임표(...) 표시 */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #444444 !important;
}

.inside-article .entry-summary p {
    margin-bottom: 0 !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .jaytee-archive-thumb { float: none !important; width: 100% !important; height: 200px !important; margin-left: 0 !important; margin-bottom: 20px !important; }
}