/*
Theme Name: Hestia Child
Theme URI: https://www.themeisle.com/
Description: This is a custom child theme I have created.
Author: ThemeIsle
URI: https://www.themeisle.com/
Template: hestia    
Version: 0.1
*/


/* ================================================
   Custom TOC - 반응형
   Elementor 기본 브레이크포인트 기준
   Desktop : 1025px 이상
   Tablet  : 768px ~ 1024px
   Mobile  : 767px 이하
================================================ */

.custom-toc {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    display: block;
}

.custom-toc-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.4;
}

/* ol 기본 스타일 초기화 (번호는 수동 출력) */
.custom-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-toc li {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* H3 들여쓰기 */
.custom-toc li.toc-depth-2 {
    margin-left: 20px;
    font-size: 13px;
}

.custom-toc a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.custom-toc a:hover,
.custom-toc a:focus {
    color: #0073aa;
    text-decoration: underline;
}

/* 번호 스타일 */
.custom-toc .toc-number {
    font-weight: 600;
    margin-right: 4px;
    color: #555;
}


/* Tablet : 768px ~ 1024px */
@media (max-width: 1024px) and (min-width: 768px) {

    .custom-toc {
        max-width: 100%;
        padding: 14px 16px;
    }

    .custom-toc-title {
        font-size: 14px;
    }

    .custom-toc li {
        font-size: 13px;
    }

    .custom-toc li.toc-depth-2 {
        margin-left: 16px;
        font-size: 12px;
    }
}


/* Mobile : 767px 이하 */
@media (max-width: 767px) {

    .custom-toc {
        max-width: 100%;
        padding: 12px 14px;
        margin: 16px 0;
        border-radius: 4px;
    }

    .custom-toc-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .custom-toc ol {
        padding: 0;
    }

    .custom-toc li {
        font-size: 12px;
        margin: 4px 0;
        line-height: 1.6;
    }

    .custom-toc li.toc-depth-2 {
        margin-left: 14px;
        font-size: 11px;
    }

    .custom-toc a {
        display: inline-block;
        padding: 2px 0;
    }
}