.detail_page {
    padding-top: 140px;
    padding-bottom: var(--sec-gap);
}



.post_head .sec_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.post_head .sec_content * {
    text-align: center;
}
.post_head .badge {
    width: fit-content;
    height: 38px;
    padding: 10px 16px;
    background: var(--primary);
    font-size: var(--ft18);
    font-weight: var(--medium);
    color: white;
    border-radius: var(--radius-sm);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.post_head .badge.judgment {
    background: var(--accent);
}
.post_head .badge.judgment::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: url('/images/icon/judgment_w.svg') no-repeat center / cover;
}
.post_head .badge_wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post_head .title {
    font-size: var(--ft40);
    font-weight: var(--semi-bold);
    color: var(--ft-main);
}
.post_head .date {
    font-size: var(--ft16);
    font-weight: var(--medium);
    color: var(--ft-sub);
}

.post_body {
    margin-top: 70px;
    margin-bottom: 150px;
}
.post_body.center * {
    text-align: center;
}
.post_thumb {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--con-gap);
}
.editor p {
    color: var(--gray-800);
    font-size: var(--ft16);
}




/* post nav */
.post_nav {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    gap: 10px;
    padding-top: 60px;
    border-top: 1px solid var(--line);
}

.post_nav_btn,
.post_nav_list {
    border-radius: var(--radius-md);
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    transition: background .4s ease;
    min-width: 0;
}

.post_nav_btn {
    flex-direction: column;
    gap: 16px;
    padding: 24px 30px;
}

.post_nav_btn .top {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ft-sub);
    font-size: var(--ft14);
    font-weight: var(--normal);
}

.post_nav_btn .title {
    color: var(--ft-sub);
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
}
.post_nav_btn.disabled {
    pointer-events: none;
}
.post_nav_btn.disabled * {
    opacity: 0.8;
}

.post_nav_list {
    align-items: center;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ft-sub);
    font-size: var(--ft14);
    font-weight: var(--normal);
}

.post_nav .icon {
    width: 20px;
    height: 20px;
    background: var(--ft-light);
}

.post_nav_btn.prev .icon {
    mask: url('/images/icon/left.svg') no-repeat center / cover;
    -webkit-mask: url('/images/icon/left.svg') no-repeat center / cover;
}

.post_nav_btn.next .icon {
    mask: url('/images/icon/right.svg') no-repeat center / cover;
    -webkit-mask: url('/images/icon/right.svg') no-repeat center / cover;
}

.post_nav_list .icon {
    background: var(--ft-sub);
    mask: url('/images/icon/list.svg') no-repeat center / cover;
    -webkit-mask: url('/images/icon/list.svg') no-repeat center / cover;
}

.post_nav_btn:hover,
.post_nav_list:hover {
    background: var(--hover-light);
    color: white;
}

.post_nav_btn:hover .top,
.post_nav_btn:hover .title,
.post_nav_list:hover {
    color: white;
}

.post_nav_btn:hover .icon,
.post_nav_list:hover .icon {
    background: white;
}

/* post control */
.post_control_area.m_btn {
    display: none;
}
.post_control_area {
    width: fit-content;
    position: sticky;
    top: var(--header-gap);
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-left: auto;
    transform: translateX(calc(100% + 20px));
    float: right;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}
.post_control_area .btn {
    width: 46px;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
} 
.post_control_area .icon {
    width: 20px;
    height: 20px;
    background: var(--gray-800);
    transition: background .3s ease;
}
.post_control_area .share_btn .icon {
    mask: url('/images/icon/share.svg') no-repeat center / cover;
    -webkit-mask: url('/images/icon/share.svg') no-repeat center / cover;
}
.post_control_area .link_btn .icon {
    mask: url('/images/icon/link.svg') no-repeat center / cover;
    -webkit-mask: url('/images/icon/link.svg') no-repeat center / cover;
}
.post_control_area .btn .tooltip {
    position: absolute;
    background: var(--gray-600);
    border-radius: 99px;
    color: white;
    font-size: var(--ft14);
    font-weight: var(--medium);
    padding: 6px 10px;
    line-height: 1;
    left: 100%;
    transform: translateX(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .2s ease;
}
.post_control_area .btn:hover .tooltip {
    transform: translateX(6px);
    opacity: 1;
}
.post_control_area .btn:hover {
    background: var(--hover-light);
}
.post_control_area .btn:hover .icon {
    background: white;
}





/* review */
.post_thumb.review_img {
    width: calc(100% - 40px);
    margin: 0 auto;
    max-width: 500px;
    height: auto;    
    border: 1px solid var(--line);    
    margin-bottom: 70px;
}
.review_text {
    width: 100%;
    max-width: 760px;
    padding: 26px 30px;
    border-radius: var(--radius-lg);
    --review-bg: var(--bg-light);
    background: var(--review-bg);
    position: relative;
    margin: 0 auto var(--con-gap);
}
.review_text p {
    font-size: var(--ft16);
    color: var(--gray-800);
    text-align: center;
    font-weight: var(--medium);
}
.review_text::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: 30px;
    height: 30px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--review-bg);
    box-sizing: border-box;
}


/* wincase */
.detail_layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 80px;
}

/* index */
.index {
    position: sticky;
    top: var(--header-gap);
    padding-left: 20px;
}
.index::before {
    content: '';
    display: block;
    width: 2px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background: var(--line);
}
.index ul {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 6px;
}

.index li {
    padding: 3px 0;
    cursor: pointer;
    font-weight: var(--semi-bold);
    font-size: var(--ft16);
    color: var(--ft-light);
    transition: .25s;
}

.index li.on {
    color: var(--accent);
}

.index > span {
    position: absolute;
    left: 0;
    width: 2px;
    background: var(--accent);
}

.case_detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail_title {
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    color: var(--ft-main);
    gap: 16px;
}
.detail_title span {
    flex: 1 0 0;
    text-align: left;
}

.detail_title::before {
    content: '•';
    color: var(--ft-light);
}

.detail_title::after {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--ft-main);
    mask: url('/images/icon/caret-down.svg') no-repeat center / cover;
    -webkit-mask: url('/images/icon/caret-down.svg') no-repeat center / cover;
}
.detail_con {
    margin-bottom: 20px;
}
.detail_con.open .detail_title::after {
    transform: rotate(180deg);
}


.detail_text {
    padding: 30px 40px;
}

.detail_text p {
    font-size: var(--ft16);
    font-weight: var(--medium);
    color: var(--ft-sub);    
}

.detail_text p:last-child {
    margin-bottom: 0;
}
.detail_img {
    width: 100%;
    /* max-width: 700px; */
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 60px;
}

@media all and (max-width: 1600px) {
    .detail_page {
        padding-top: var(--header-gap);
    }
    .post_head .title {
        font-size: var(--ft36);
    }
}

@media all and (max-width: 1400px) {
    .post_head .title {
        font-size: var(--ft32);
    }

    .post_control_area {
        display: none;
    }
    .post_control_area.m_btn {
        display: flex;
        flex-direction: row;
        gap: 30px;
        height: fit-content;
        position: static;
        transform: none;
        float: none;
        margin: 40px auto 0;
    }
    .post_control_area .btn {
        width: 30px;
    }
    .post_control_area .icon {
        width: 14px;
        height: 14px;
    }
    .post_control_area .btn .tooltip {
        left: 0;
        opacity: 1;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) !important;
    }
}

@media all and (max-width: 1024px) {
    .post_head .title {
        font-size: var(--ft28);
    }

    .detail_layout {
        gap: 40px;
    }

}

@media all and (max-width: 768px) {
    .post_head .sec_content {
        gap: 16px;
    }
    .post_head .badge.judgment::before {
        width: 16px;
        height: 16px;
    }
    .post_head .badge {
        height: 36px;
        padding: 10px 12px;
        font-size: var(--ft16);
    }
    .post_head .title {
        font-size: var(--ft24);
    }
    .post_body {
        margin-top: 40px;
        margin-bottom: 80px;
    }

    /*-- wincase --*/
    .detail_layout {
        display: block;
    }
    .index_area {
        display: none;
    }
    .case_detail {
        gap: 0;
    }
    .detail_img {
        margin-bottom: 32px;
    }
    .detail_title {
        gap: 10px;
    }
    .detail_text {
        padding: 20px 10px;
    }

    /*-- reivew --*/
    .post_thumb.review_img {
        margin-bottom: 30px;
    }
    .review_text {
        padding: 20px;
    }
    .review_text::after {
        width: 20px;
        height: 20px;
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 20px;
    }




    .post_nav {
        padding-top: 32px;
        display: flex;
        flex-direction: column;
    }
    .post_nav_btn {
        padding: 20px;
    }
    .post_nav_btn .top {
        gap: 10px;
    }
    .post_nav .icon {
        width: 14px;
        height: 14px;
    }
    .post_nav_btn .icon {
        transform: rotate(90deg);
    }
    .post_nav_list {
        order: 2;
        flex-direction: row;
        padding: 10px 32px;
        width: fit-content;
        margin: 20px auto 0;
        gap: 10px;
    }

}