@charset "utf-8";
/* ==========================================================================
    component.css — 공용 UI 컴포넌트 (버튼/라디오·체크박스/타이틀/아코디언/테이블)
    브레이크포인트: 1280 / 1024 / 768 / 560 (common.css 표준)
   ========================================================================== */

/* ==========================================================================
    버튼
   ========================================================================== */
.btn_wrap {
    text-align: center;
    margin: 40px 0 0;
    font-size: 0;
}

.btn_wrap .btn_right {
    text-align: right;
}

.btn_wrap .btn_left {
    text-align: left;
    float: left;
}

.btn_wrap .btn:last-child {
    margin-right: 0;
}

/* .note-editor 내부(Summernote 툴바)의 .btn 은 제외 — 에디터 스타일 보존 */
.btn:where(:not(.note-editor *)) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 110px;
    margin-right: 8px;
    padding: 0 20px;
    height: 44px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    background-color: var(--ink);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.btn:where(:not(.note-editor *)):hover {
    color: #fff;
    background-color: var(--point, #4F46E5);
}

.btn.wa {
    min-width: 0;
    width: auto;
    padding: 0 22px;
}

.btn.wide {
    min-width: 140px;
}

.btn.btn_gray {
    background-color: var(--ink-4);
}

.btn.btn_gray:hover {
    background-color: var(--ink-3);
}

/* 아웃라인 버튼 */
.btn.line {
    color: var(--ink-2);
    background: var(--bg);
    border: 1px solid var(--line);
}

.btn.line:hover {
    color: var(--point, #4F46E5);
    border-color: var(--point-border);
    background: var(--point-faint);
}

/* 포인트 버튼 */
.btn.point {
    background-color: var(--point, #4F46E5);
}

.btn.point:hover {
    background-color: var(--point-strong);
}

@media (width <=768px) {
    .btn_wrap {
        margin: 28px 0 0;
    }

    .btn {
        min-width: 0;
        margin-right: 4px;
        padding: 0 16px;
        height: 42px;
        font-size: .875rem;
    }
}

/* ==========================================================================
    라디오 버튼
   ========================================================================== */
.radio_style {
    display: inline-flex;
    cursor: pointer;
    position: relative;
    margin: 0 20px 0 0;
}

.radio_style:last-of-type {
    margin: 0;
}

.radio_style input {
    position: absolute;
    left: -9999px;
}

.radio_style span {
    display: flex;
    align-items: center;
    border-radius: 99em;
    transition: .2s ease;
}

.radio_style span::before {
    content: "";
    display: flex;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-right: .4em;
    background-color: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 50%;
    transition: .2s ease;
}

.radio_style span::after {
    content: '';
    position: absolute;
    display: block;
    top: 50%;
    left: 7px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: .2s ease;
}

.radio_style input:focus-visible+span::before {
    border-color: var(--point, #4F46E5);
    box-shadow: 0 0 0 3px var(--point-soft);
}

.radio_style input:checked+span {
    font-weight: 600;
}

.radio_style input:checked+span::before {
    border-color: var(--point, #4F46E5);
    background: var(--point, #4F46E5);
}

/* ==========================================================================
    체크박스
   ========================================================================== */
.checkbox_style {
    display: inline-flex;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 0 20px 0 0;
}

.checkbox_style:last-of-type {
    margin: 0;
}

.checkbox_style input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox_style label {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.checkbox_style label span {
    display: inline-block;
    vertical-align: middle;
    font-size: 1rem;
}

.checkbox_style label::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 22px;
    height: 22px;
    margin-right: .5rem;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: .2s ease;
}

.checkbox_style input:focus-visible+label::before {
    border-color: var(--point, #4F46E5);
    box-shadow: 0 0 0 3px var(--point-soft);
}

.checkbox_style input:checked+label {
    font-weight: 600;
}

.checkbox_style input:checked+label::before {
    background: var(--point, #4F46E5);
    border-color: var(--point, #4F46E5);
}

.checkbox_style input:checked+label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    width: 12px;
    height: 9px;
    transform: translateY(-55%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5L4.5 8 11 1' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.checkbox_style input:disabled+label {
    color: var(--ink-4);
    cursor: auto;
}

.checkbox_style input:disabled+label::before {
    background: var(--line-soft);
    border-color: var(--line);
}

/* ==========================================================================
    콘텐츠 소제목 (에디터/서브페이지 h4)
   ========================================================================== */
.sub_contents h4 {
    position: relative;
    clear: both;
    width: 100%;
    padding: 0 0 1.25rem 16px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.sub_contents h4::before {
    content: "";
    position: absolute;
    top: .22em;
    left: 0;
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: var(--point, #4F46E5);
}

@media (width <=768px) {
    .sub_contents h4 {
        font-size: 1.25rem;
        padding-bottom: 1rem;
    }
}

/* ==========================================================================
    아코디언 (FAQ 게시판 등)
   ========================================================================== */
.accordion {
    border-top: 2px solid var(--ink);
}

.accordion dl {
    border-bottom: 1px solid var(--line);
}

.accordion dl dt {
    position: relative;
}

.accordion dl dt button {
    display: block;
    width: 100%;
    padding: 1.1rem 3rem 1.1rem .5rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    white-space: normal;
    transition: color .15s;
}

.accordion dl dt button:hover {
    color: var(--point, #4F46E5);
}

.accordion dl dt button::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 12px;
    height: 8px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    transition: transform .2s;
}

.accordion dl.on dt button {
    color: var(--point, #4F46E5);
}

.accordion dl.on dt button::before {
    transform: translateY(-50%) rotate(180deg);
}

.accordion dl dd {
    padding: 1.1rem 1rem;
    border-top: 1px solid var(--line-soft);
    background-color: var(--bg-soft);
    color: var(--ink-2);
}

/* 접기는 JS(contents.js)가 .js-accordion 을 붙인 뒤에만 — JS 미동작 시 전부 펼침 유지 */
.accordion.js-accordion dl:not(.on) dd {
    display: none;
}

/* ==========================================================================
    베이직 테이블 (에디터 콘텐츠 호환)
   ========================================================================== */
.table_wrap {
    width: 100%;
    margin: 0 0 25px;
}

.table_info {
    display: none;
    padding: 0 0 5px;
    font-size: 13px;
    color: var(--danger);
}

.basic_table {
    clear: both;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    border-top: 2px solid var(--ink);
}

.basic_table th {
    vertical-align: middle;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-left: none;
    background: var(--bg-soft);
}

.basic_table thead th {
    border-top: none;
}

.basic_table td {
    vertical-align: middle;
    padding: .6rem;
    border: 1px solid var(--line);
    word-break: break-all;
}

.basic_table th:last-child,
.basic_table td:last-child {
    border-right: none;
}

.basic_table .con {
    padding-left: 1rem;
    text-align: left;
}

@media (width <=560px) {
    .table_wrap {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .table_info {
        display: block;
    }

    .table_wrap .basic_table {
        min-width: 520px;
    }
}

/* ==========================================================================
    말줄임 / 검증오류
   ========================================================================== */
.ell1 {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ell2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.invalid-feedback {
    display: block;
    margin: .6rem 0 0 2px;
    font-size: .875rem;
    line-height: 1.4;
    color: var(--danger);
}