﻿.cv-board {
    max-width: 1100px;
    margin: 0 auto;
}

.cv-board * {
    box-sizing: border-box;
}

.cv-search {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin: 24px 0;
}

.cv-search select,
.cv-search input[type=search] {
    height: 42px;
    border: 1px solid #d5d9df;
    padding: 8px 12px;
    border-radius: 3px;
}

.cv-search input[type=search] {
    width: 280px;
}

.cv-check {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font-size: 13px;
    margin-left: 10px;
}

.cv-list-info {
    font-size: 14px;
    margin: 18px 0;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.cv-card {
    border: 1px solid #e0e3e8;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.cv-card>a {
    display: block;
    color: #222;
    text-decoration: none;
    height: 100%;
}

.cv-card>a:focus {
    outline: 3px solid #1679db;
    outline-offset: -3px;
}

.cv-card-image {
    aspect-ratio: 16/10;
    background: #f3f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a929c;
    overflow: hidden;
}

.cv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-card-text {
    padding: 22px;
}

.cv-category {
    font-size: 13px;
    color: #3175b6;
    font-weight: 600;
}

.cv-card h3 {
    font-size: 19px;
    line-height: 1.5;
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.cv-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #69727d;
    overflow-wrap: anywhere;
}

.cv-card-date {
    font-size: 12px;
    color: #858c95;
    margin-top: 24px;
}

.cv-hidden {
    display: inline-block;
    background: #fff0e4;
    color: #a74912;
    font-size: 12px;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 3px;
}

.cv-empty {
    padding: 90px 20px;
    text-align: center;
    border-top: 2px solid #333;
    border-bottom: 1px solid #ddd;
    color: #737b85;
}

.cv-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 35px 0;
}

.cv-pagination a,
.cv-pagination strong {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    padding: 0 10px;
}

.cv-pagination strong {
    background: #267bc5;
    color: #fff;
    border-color: #267bc5;
}

.cv-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0 55px;
}

.cv-error {
    padding: 16px 20px;
    margin: 20px 0;
    border: 1px solid #e7b6b6;
    background: #fff4f4;
    color: #9f2828;
    line-height: 1.7;
}

.cv-error[hidden] {
    display: none;
}

.cv-edit-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #454b54;
    font-size: 14px;
    table-layout: fixed;
}

.cv-edit-table th,
.cv-edit-table td {
    border: 1px solid #ddd;
    padding: 15px 18px;
    vertical-align: middle;
}

.cv-edit-table th {
    background: #f3f4f6;
    text-align: center;
    font-weight: 500;
}

.cv-label-column {
    width: 130px;
}

.cv-password-column {
    width: 220px;
}

.cv-edit-table input[type=text],
.cv-edit-table input[type=password],
.cv-edit-table select {
    border: 1px solid #d5d8dd;
    border-radius: 2px;
    min-height: 36px;
    padding: 6px 10px;
    max-width: 100%;
    font-size: 14px;
    background: #fff;
}

.cv-edit-table input[type=text],
.cv-edit-table input[type=password] {
    width: 100%;
}

.cv-edit-table select {
    min-width: 140px;
}

.cv-hide-check {
    float: right;
    font-size: 13px;
}

.cv-field {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 9px;
}

.cv-field>label {
    width: 115px;
    flex-shrink: 0;
    font-size: 13px;
    color: #4d5661;
}

.cv-field>input {
    flex: 1;
    min-width: 0;
}

.cv-hint {
    display: block;
    font-size: 12px;
    color: #737b87;
    line-height: 1.7;
    margin-top: 8px;
}

.cv-edit-table td.cv-editor-cell {
    padding: 12px;
}

.cv-editor-cell textarea {
    width: 100%;
    height: 390px;
    border: 1px solid #d5d8dd;
    padding: 12px;
}

.cv-existing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 12px;
    flex-wrap: wrap;
}

.cv-preview {
    width: 100px;
    height: 70px;
    object-fit: contain;
    background: #f6f7f8;
    border: 1px solid #ddd;
}

.cv-existing label {
    margin-left: auto;
}

.cv-existing-files {
    margin-top: 12px;
}

.cv-existing-files li {
    padding: 7px 0;
    overflow-wrap: anywhere;
}

.cv-existing-files a,
.cv-attachments a {
    color: #256aa7;
    text-decoration: underline;
}

.cv-existing-files label {
    margin-left: 10px;
}

.cv-small-button {
    border: 1px solid #b9c1cb;
    background: #fff;
    padding: 6px 12px;
    margin-left: 8px;
    border-radius: 3px;
    cursor: pointer;
}

.cv-detail {
    border-top: 2px solid #444;
    border-bottom: 1px solid #dce0e5;
}

.cv-detail>header {
    padding: 30px 24px;
    border-bottom: 1px solid #e5e7ea;
}

.cv-detail h3 {
    font-size: 28px;
    line-height: 1.5;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.cv-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: #68717d;
}

.cv-detail-info {
    display: flex;
    gap: 22px;
    font-size: 13px;
    color: #87909a;
    margin-top: 24px;
}

.cv-main-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
}

.cv-body {
    padding: 35px 25px;
    min-height: 180px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    color: #333;
}

.cv-body img,
.cv-bottom img {
    max-width: 100%;
    height: auto;
}

.cv-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.cv-body td,
.cv-body th {
    padding: 6px;
}

.cv-bottom {
    text-align: center;
    padding: 10px 25px 30px;
}

.cv-mobile {
    display: none;
}

.cv-attachments {
    padding: 20px 25px;
    background: #f7f8fa;
}

.cv-attachments h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.cv-attachments li {
    font-size: 14px;
    line-height: 2;
}

@media(max-width:900px) {
    .cv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cv-label-column {
        width: 100px;
    }

    .cv-password-column {
        width: 160px;
    }
}

@media(max-width:767px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-search {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cv-search input[type=search] {
        width: auto;
        flex: 1;
    }

    .cv-search .cv-check {
        margin-left: 0;
    }

    .cv-edit-table th,
    .cv-edit-table td {
        padding: 10px 8px;
    }

    .cv-field {
        display: block;
    }

    .cv-field>label {
        display: block;
        margin-bottom: 5px;
    }

    .cv-edit-table .cv-check {
        margin: 8px 0 0;
    }

    .cv-detail h3 {
        font-size: 22px;
    }

    .cv-label-column {
        width: 80px;
    }

    .cv-password-column {
        width: 130px;
    }

    .cv-body {
        padding: 20px 12px;
    }

    .cv-desktop {
        display: none;
    }

    .cv-mobile {
        display: block;
    }
}

.cv-file-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cv-file-name input[type=text] {
    width: 250px;
    min-height: 30px;
}

/* Weekly design rules are supplied by /kweb/css/sub.css. Only operational states are added here. */
.cv-header .snb_wrap>ul {
    justify-content: space-between;
}

.cv-header .snb_wrap>ul>li>a {
    padding: 0 .5rem;
    letter-spacing: -.75px;
}

.cv-weekly-page [hidden] {
    display: none !important;
}

.cv-weekly-page .is-disabled {
    pointer-events: none;
    opacity: .35;
}

.cv-weekly-page .cv-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: #f3f5f7;
    color: #737b85;
}

.cv-weekly-page .board_thumb>a {
    display: block;
    width: 100%;
    height: 100%;
}

.cv-weekly-page .board_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ContentVisual detail: supporting behavior for the weekly view template. */
.cv-weekly-page .board_img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-weekly-page .cv-view-subtitle {
    color: #575757;
    font-size: 15px;
    line-height: 1.5;
}

.cv-weekly-page .cv-view-body {
    min-height: 120px;
    line-height: 1.6;
}

.cv-weekly-page .cv-view-body img,
.cv-weekly-page .cv-view-bottom img {
    max-width: 100%;
    height: auto;
}

.cv-weekly-page .cv-view-body table {
    max-width: 100%;
}

.cv-weekly-page .file_list .file_name {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cv-weekly-page .cv-view-bottom {
    margin-top: 24px;
}

.cv-weekly-page .cv-view-bottom .btn_img {
    max-width: 100%;
    height: auto;
}

.cv-weekly-page .cv-view-actions {
    margin-top: 24px;
}

@media (max-width: 767px) {
    .cv-weekly-page .cv-view-bottom .cv-desktop {
        display: none;
    }

    .cv-weekly-page .cv-view-bottom .cv-mobile {
        display: block;
    }
}


/* ContentVisual write/modify: weekly layout with original SmartEditor preserved. */
.cv-edit-page .cv-weekly-form { width: 100%; }
.cv-edit-page .cv-weekly-form .form_row > .form_label { color: #2a2a2a; font-weight: 700; }
.cv-edit-page .cv-weekly-form .input_box_wrap { display: flex; align-items: center; gap: 8px; width: 100%; }
.cv-edit-page .cv-weekly-form .input_box_wrap input[type="text"],
.cv-edit-page .cv-weekly-form .input_box_wrap input[type="password"] {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid #757575;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
}
.cv-edit-page .cv-weekly-form .input_box_wrap .input_label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 13px;
    color: #5c5c5c;
    box-sizing: border-box;
}
.cv-edit-page .cv-native-select-wrap { width: 292px; flex: 0 1 292px; }
.cv-edit-page .cv-native-select-wrap select {
    width: 100%;
    max-width: none;
    height: 40px;
    padding: 0 38px 0 16px;
    color: #333;
    background: #fff url("https://img.caedu.co.kr/images/design/2026/1020_weekly/icon_arrow_select.png") no-repeat right 12px center / 20px 20px;
    appearance: none;
    border: 1px solid #757575;
    border-radius: 4px;
    font-size: 14px;
}
.cv-edit-page .cv-file-picker { position: relative; }
.cv-edit-page .cv-file-picker .real_input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.cv-edit-page .cv-file-picker .real_input:focus-visible ~ .btn_default { outline: 2px solid #fe6b8b; }
.cv-edit-page .cv-file-picker .file_name {
    pointer-events: none;
    background: #f9f9f9 !important;
}
.cv-edit-page .cv-file-picker .btn_default {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    margin: 0;
    cursor: pointer;
}
.cv-edit-page .cv-insert-button { background-color: #0f62fe; border-color: #0f62fe; }
.cv-edit-page .cv-existing {
    width: 100%;
    padding: 12px;
    margin: 10px 0 0;
    border: 1px solid #ccd7e3;
    border-radius: 8px;
    background: #f5faff;
    box-sizing: border-box;
}
.cv-edit-page .cv-existing label { margin-left: auto; white-space: nowrap; }
.cv-edit-page .cv-existing-heading { margin-top: 14px; }
.cv-edit-page .cv-existing-files { margin-top: 8px; }
.cv-edit-page .cv-existing-files:empty { display: none; }
.cv-edit-page .cv-existing-files > li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}
.cv-edit-page .cv-existing-files a { color: #0f62fe; }
.cv-edit-page .cv-existing-files .cv-file-name { flex: 1 1 340px; }
.cv-edit-page .cv-existing-files .cv-file-name input { max-width: 100%; min-width: 0; }
.cv-edit-page .cv-existing-files input[type="checkbox"] { vertical-align: middle; }
.cv-edit-page .cv-author-row .row_group { flex: 1; min-width: 0; }
.cv-edit-page .cv-author-row .row_group .input_box_wrap { flex: 1; min-width: 0; }
.cv-edit-page .cv-author-row .input_value { white-space: nowrap; font-size: 14px; color: #333; }
.cv-edit-page .cv-author-row .check_wrap { flex: 0 0 auto; margin-left: 8px; }
.cv-edit-page .cv-author-row .check_wrap .check_label { display: inline-flex; align-items: center; white-space: nowrap; }
.cv-edit-page .cv-editor-container { width: 97%; min-height: 400px; }
.cv-edit-page .cv-editor-container textarea#CONTENT {
    width: 100%;
    max-width: none;
    min-height: 390px;
    box-sizing: border-box;
}
.cv-edit-page .cv-form-actions { padding-bottom: 4px; }
.cv-edit-page .cv-form-actions .btn_default { display: inline-flex; align-items: center; justify-content: center; min-width: 98px; }
.cv-edit-page .cv-error { margin-bottom: 28px; }
@media (max-width: 767px) {
    .cv-edit-page .cv-author-row { flex-direction: column; align-items: stretch; gap: 18px; }
    .cv-edit-page .cv-native-select-wrap { flex-basis: 220px; }
    .cv-edit-page .cv-weekly-form .input_box_wrap .input_label { min-width: 105px; padding: 8px; }
    .cv-edit-page .cv-file-picker { flex-wrap: wrap; }
    .cv-edit-page .cv-existing-files .cv-file-name { flex-basis: 100%; }
}

/* DB-managed weekly banner (T_BANNER, B_POS 401007). */
.cv-weekly-page .weekly_main_bnr .main_swiper .swiper-slide .cv-db-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.cv-weekly-page .weekly_main_bnr .cv-db-banner-link picture,
.cv-weekly-page .weekly_main_bnr .cv-db-banner-link img {
    display: block;
    width: 100%;
    height: 100%;
}
.cv-weekly-page .weekly_main_bnr .cv-db-banner-link img {
    object-fit: cover;
    object-position: center;
}


/* 숨김 글은 내용 길이에 맞춰 높이를 늘리고, 제목과 설명을 모두 표시합니다. */
.cv-weekly-page .weekly_wrap .board_item.is-hidden .board_cont {
    height: auto;
    min-height: 148px;
}

.cv-weekly-page .weekly_wrap .board_item.is-hidden .board_cont > * {
    flex-shrink: 0;
}

.cv-weekly-page .weekly_wrap .board_item.is-hidden .board_tit,
.cv-weekly-page .weekly_wrap .board_item.is-hidden .board_txt {
    display: block;
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}

.cv-weekly-page .weekly_wrap .board_item.is-hidden .cv-hidden {
    align-self: flex-start;
    white-space: nowrap;
}

.cv-weekly-page .weekly_wrap .board_item.is-hidden .board_date {
    margin-top: 12px;
}