/* editor-content.css | Bootstrap 5.2.3 + light neumorphism (single-style) */

:root{
    --ec-bg: #f6f7fb;
    --ec-card: #ffffff;
    --ec-border: rgba(0,0,0,.08);
    --ec-shadow: 10px 10px 24px rgba(0,0,0,.08), -10px -10px 24px rgba(255,255,255,.85);
    --ec-radius: 18px;

    /* typography */
    --ec-text: rgba(17,24,39,.88);
    --ec-text-soft: rgba(55,65,81,.84);
    --ec-title: #111827;
    --ec-line: rgba(0,0,0,.12);
    --ec-body-size: 1.0625rem; /* 17px */
    --ec-body-line: 1.8;
    --ec-term-width: 130px;
}

/* wrapper */
.ec-wrap{
    background: var(--ec-bg);
    border-radius: 20px;
    padding: 3rem;
    word-break: keep-all;
}

/* one-card style */
.ec-card{
    background: var(--ec-card);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow);
    color: var(--ec-text);
    font-size: var(--ec-body-size);
    line-height: var(--ec-body-line);
}

/* chips */
.ec-chip{
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    font-size: .92rem;
    line-height: 1.2;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    box-shadow: 4px 4px 10px rgba(0,0,0,.06), -4px -4px 10px rgba(255,255,255,.9);
    color: var(--ec-text-soft);
}

/* divider */
.ec-divider{
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.15), transparent);
    margin: 1.5rem 0;
}

/* section separator */
.ec-section{
    padding: 1.3rem 0;
}
/*.ec-section + .ec-section{*/
/*    border-top: 1px dashed rgba(0,0,0,.15);*/
/*}*/


/* headings */
.ec-section > h3,
.ec-card > div > h2{
    color: var(--ec-title);
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.ec-card h2{
    font-size: 1.55rem;
    line-height: 1.45;
    font-weight: 800;
    margin-bottom: .6rem;
}

.ec-section > h3{
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: .95rem;
    line-height: 1.45;
}

.ec-section > h4{
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: .7rem;
    color: var(--ec-title);
    line-height: 1.5;
}

/* body text */
.ec-kv{
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ec-text-soft);
    word-break: keep-all;
}

/* 기본 ul -> 하이픈 리스트 */
.ec-section ul:not(.ec-list){
    list-style: none !important;
    margin: 0;
    padding-left: 0;
}

.ec-section ul:not(.ec-list) li{
    position: relative;
    margin-bottom: .55rem;
    padding-left: 1.05rem;
    color: var(--ec-text-soft);
    line-height: 1.8;
    word-break: keep-all;
}

.ec-section ul:not(.ec-list) li:last-child{
    margin-bottom: 0;
}

.ec-section ul:not(.ec-list) li::before{
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
    color: #374151;
    font-weight: 700;
}

/* 라벨-설명 구조 리스트 */
.ec-list{
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-item{
    display: grid;
    grid-template-columns: var(--ec-term-width) 1fr;
    gap: .35rem 1rem;
    align-items: start;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.ec-item:last-child{
    border-bottom: 0;
}

.ec-term{
    font-weight: 700;
    color: var(--ec-title);
    word-break: keep-all;
    line-height: 1.75;
}

.ec-desc{
    color: var(--ec-text-soft);
    line-height: 1.8;
    word-break: keep-all;
}

/* bootstrap table alignment */
.ec-wrap .table > :not(caption) > * > *{
    vertical-align: middle;
}

/* table style */
.ec-wrap .table{
    margin-bottom: 0;
    font-size: .98rem;
}

.ec-wrap .table thead th{
    background: #f3f5f9;
    color: var(--ec-title);
    font-weight: 700;
    border-bottom-width: 1px;
    line-height: 1.5;
}

.ec-wrap .table td{
    color: var(--ec-text-soft);
    line-height: 1.7;
    word-break: keep-all;
}

/* 모바일에서 테이블은 스크롤 컨테이너로 고정 */
.ec-wrap .table-responsive{
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* PC 기본 */
.ec-wrap .table-responsive > .table{
    min-width: 0;
    width: 100%;
}

/* 모바일에서만 가로 스크롤 유도 */
@media (max-width: 768px){
    .ec-wrap .table-responsive > .table{
        min-width: 720px;
    }
}

.ec-wrap .table-responsive::after{
    content: none;
}

@media (max-width: 768px){
    .ec-wrap .table-responsive::after{
        content: "↔ 좌우로 스크롤";
        position: sticky;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: .35rem .6rem;
        font-size: .78rem;
        color: rgba(0,0,0,.55);
        background: linear-gradient(
                270deg,
                rgba(246,247,251,.95),
                rgba(246,247,251,.6),
                rgba(246,247,251,0)
        );
        pointer-events: none;
    }
}

/* emphasis */
.ec-emphasis{
    position: relative;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f2f4f9);
    box-shadow:
            inset 2px 2px 6px rgba(0,0,0,.06),
            inset -2px -2px 6px rgba(255,255,255,.9);
}

.ec-emphasis strong{
    font-size: 1.08rem;
    color: rgba(0,0,0,.88);
}

.ec-emphasis .ec-chip{
    border-color: rgba(0,0,0,.18);
    font-weight: 600;
}

/* mobile */
@media (max-width: 768px){
    :root{
        --ec-body-size: 1rem;
        --ec-body-line: 1.75;
        --ec-term-width: 1fr;
    }

    .ec-wrap{
        padding: .2rem;
    }

    .ec-card{
        border-radius: 16px;
    }

    .ec-card h2{
        font-size: 1.35rem;
        line-height: 1.45;
    }

    .ec-section{
        padding: 1rem 0;
    }

    .ec-section > h3{
        font-size: 1.1rem;
        margin-bottom: .75rem;
    }

    .ec-section > h4{
        font-size: 1rem;
    }

    .ec-section ul:not(.ec-list) li{
        padding-left: .95rem;
        margin-bottom: .5rem;
    }

    .ec-item{
        grid-template-columns: 1fr;
        gap: .2rem;
        padding: .65rem 0;
    }

    .ec-term{
        margin-bottom: .1rem;
    }

    .ec-desc{
        font-size: .98rem;
    }

    .ec-chip{
        font-size: .86rem;
    }

    .ec-kv{
        font-size: .98rem;
        line-height: 1.75;
    }
}

/* key visual hero */
.ec-hero{
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 2rem;
    padding: .5rem 0 1rem;
    overflow: hidden;
}

.ec-hero::before{
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 225, 80, .38), rgba(255, 225, 80, 0) 68%);
    pointer-events: none;
}

.ec-hero-copy{
    position: relative;
    z-index: 1;
    text-align: left;
}

.ec-hero-copy h2{
    font-size: 1.85rem;
    line-height: 1.35;
    font-weight: 850;
    letter-spacing: -.035em;
    margin-bottom: .75rem;
}

.ec-hero-chips{
    justify-content: flex-start !important;
}

.ec-hero-visual{
    position: relative;
    z-index: 1;
    padding: .9rem;
    border-radius: 28px;
    background:
            linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,248,205,.82));
    border: 1px solid rgba(0,0,0,.08);
    box-shadow:
            12px 12px 28px rgba(0,0,0,.08),
            -10px -10px 24px rgba(255,255,255,.9),
            inset 0 0 0 1px rgba(255,255,255,.55);
}

.ec-hero-visual::after{
    content: "";
    position: absolute;
    inset: .8rem;
    border-radius: 22px;
    border: 1px dashed rgba(0,0,0,.12);
    pointer-events: none;
}

.ec-hero-img{
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,.12));
}

/* mobile */
@media (max-width: 768px){
    .ec-hero{
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: .2rem 0 .5rem;
        text-align: center;
    }

    .ec-hero::before{
        right: -120px;
        top: 80px;
        width: 240px;
        height: 240px;
    }

    .ec-hero-copy{
        text-align: center;
    }

    .ec-hero-copy h2{
        font-size: 1.42rem;
        line-height: 1.42;
        margin-bottom: .55rem;
    }

    .ec-hero-chips{
        justify-content: center !important;
        gap: .45rem !important;
        margin-bottom: .85rem !important;
    }

    .ec-hero-visual{
        width: min(100%, 340px);
        margin: 0 auto;
        padding: .55rem;
        border-radius: 22px;
    }

    .ec-hero-visual::after{
        inset: .55rem;
        border-radius: 17px;
    }

    .ec-hero-img{
        max-height: 300px;
    }
}