/* 뉴스레터 카드 목록 스킨 (PDF 발행물) */
#newsletter_list { margin: 0 auto; }
#newsletter_list .nl_card_list,
#newsletter_list .nl_card_list * { box-sizing: border-box; }

/* 상단 영역 (notice와 동일) */
#newsletter_list .boTop { margin: 40px 0 15px 0; overflow: hidden; }
#newsletter_list #boTotal {
    float: left;
    width: 30%;
    letter-spacing: 1px;
    line-height: 40px;
    font-size: 14px;
    color: #666;
}
#newsletter_list #boTotal span { color: #3767b0; font-weight: 500; }

#newsletter_list #bo_search {
    float: right;
    text-align: right;
    border: 0;
    padding: 0;
    margin: 0;
}
#newsletter_list #bo_search legend {
    position: absolute;
    font-size: 0;
    line-height: 0;
    text-indent: -9999em;
    overflow: hidden;
}
#newsletter_list #bo_search select {
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    font-size: 13px;
    height: 40px;
    line-height: 40px;
    padding-left: 10px;
    vertical-align: middle;
    box-sizing: content-box;
}
#newsletter_list #bo_search .text-input {
    border: 1px solid #ddd;
    background-color: #fff;
    height: 38px;
    line-height: 38px;
    width: 50%;
    padding-left: 10px;
    font-size: 13px;
    vertical-align: middle;
    box-sizing: content-box;
}
#newsletter_list #bo_search .input-btn {
    border: 0;
    display: inline-block;
    font-size: 0;
    width: 40px;
    height: 40px;
    background: #666 url('/img/common/btn_search.png') no-repeat center center;
    vertical-align: middle;
    cursor: pointer;
    box-sizing: content-box;
}

@media all and (max-width: 680px) {
    #newsletter_list .boTop { margin: 40px 0 5px 0; }
    #newsletter_list #boTotal { width: 91%; padding-left: 1%; font-size: 13px; }
    #newsletter_list #bo_search {
        float: left;
        text-align: center;
        border: 1px solid #ddd;
        background-color: #fafafa;
        width: 100%;
        padding: 15px 0;
    }
    #newsletter_list #bo_search select { height: 35px; line-height: 35px; }
    #newsletter_list #bo_search .text-input { height: 33px; line-height: 33px; width: 40%; }
    #newsletter_list #bo_search .input-btn { width: 35px; height: 35px; background-position: center center; }
}

/* 전체선택 */
#newsletter_list .nl_allchk {
    margin: 10px 0;
    font-size: 13px;
    color: #555;
}
#newsletter_list .nl_allchk input { vertical-align: middle; margin-right: 4px; }

/* 카드 리스트 (4열 그리드) */
#newsletter_list .nl_card_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
}

/* 카드 아이템 */
#newsletter_list .nl_card {
    position: relative;
    transition: transform 0.25s ease;
}
#newsletter_list .nl_card:hover { transform: translateY(-4px); }
#newsletter_list .nl_card.nl_now .nl_card_thumb {
    outline: 3px solid #0f4e9a;
    outline-offset: -3px;
}

#newsletter_list .nl_card_chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 18px;
    height: 18px;
}

#newsletter_list .nl_card_link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* 썸네일 (세로형 표지 - 5:7 비율) */
#newsletter_list .nl_card_thumb {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background: #f3f3f3;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}
#newsletter_list .nl_card:hover .nl_card_thumb {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}
#newsletter_list .nl_card_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
#newsletter_list .nl_card:hover .nl_card_thumb img { transform: scale(1.03); }
#newsletter_list .nl_card_noimg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 14px;
    letter-spacing: 2px;
}

/* 본문 영역 */
#newsletter_list .nl_card_body {
    padding: 16px 4px 4px;
    text-align: center;
}
#newsletter_list .nl_card_cate {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 12px;
    color: #0f4e9a;
    background: #eaf2fb;
    border-radius: 10px;
}
#newsletter_list .nl_card_title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    margin: 0 0 8px;
    transition: color 0.2s ease;
}
#newsletter_list .nl_card:hover .nl_card_title { color: #0f4e9a; }

#newsletter_list .nl_card_meta {
    font-size: 13px;
    color: #999;
}

/* 빈 리스트 */
#newsletter_list .nl_empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: #999;
    background: #fafafa;
    border-radius: 6px;
    list-style: none;
}

/* 임시 저장된 글 팝업 (notice와 동일) */
#autosave_wrapper { position: relative; }
#autosave_pop {
    display: none;
    z-index: 10;
    position: absolute;
    top: 24px;
    right: 117px;
    padding: 8px;
    width: 350px;
    height: auto !important;
    height: 180px;
    max-height: 180px;
    border: 1px solid #565656;
    background: #fff;
    overflow-y: scroll;
}
html.no-overflowscrolling #autosave_pop { height: auto; max-height: 10000px !important; }
#autosave_pop strong { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#autosave_pop div { text-align: right; }
#autosave_pop button { margin: 0; padding: 0; border: 0; background: transparent; }
#autosave_pop ul { margin: 10px 0; padding: 0; border-top: 1px solid #e9e9e9; list-style: none; }
#autosave_pop li { padding: 8px 5px; border-bottom: 1px solid #e9e9e9; zoom: 1; }
#autosave_pop li:after { display: block; visibility: hidden; clear: both; content: ""; }
#autosave_pop a { display: block; float: left; }
#autosave_pop span { display: block; float: right; }
.autosave_close { cursor: pointer; }
.autosave_content { display: none; }

/* 작성 폼 - 이미지 영역 링크 헬퍼 */
.nl_hotspot_desc {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #f6f8fb;
    border-left: 3px solid #0f4e9a;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
button.nl_btn,
.nl_btn {
    display: inline-block !important;
    height: auto !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    cursor: pointer;
    letter-spacing: normal !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}
button.nl_btn.nl_btn_primary,
.nl_btn.nl_btn_primary {
    color: #fff !important;
    background: #0f4e9a !important;
    border-color: #0f4e9a !important;
}
button.nl_btn:hover,
.nl_btn:hover { opacity: 0.9; }

/* 모달 공통 - 테마 전역 CSS 영향 차단 */
.nl_modal_overlay,
.nl_modal_overlay * {
    box-sizing: border-box !important;
    font-family: inherit;
}
.nl_modal_overlay ul,
.nl_modal_overlay li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none;
    border: 0;
}
.nl_modal_overlay button {
    font-family: inherit;
    line-height: 1.2;
}
.nl_modal_overlay input {
    font-family: inherit;
}
.nl_modal_overlay a { text-decoration: none; color: inherit; }

.nl_modal_overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.nl_modal_box {
    background: #fff;
    border-radius: 6px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.nl_modal_large { max-width: 1100px; }

.nl_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}
.nl_modal_header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    border: 0 !important;
    background: none !important;
}
.nl_modal_close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.nl_modal_close:hover { color: #000; }

.nl_modal_body {
    padding: 16px;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}
.nl_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 12px 18px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}
/* 모달 푸터 버튼 스타일은 .nl_btn / .nl_btn_primary 에서 일괄 적용 */

/* 이미지 선택 피커 */
.nl_img_picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.nl_img_picker li {
    cursor: pointer;
    text-align: center;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px;
    padding: 8px !important;
    background: #fff !important;
    transition: border-color 0.15s;
}
.nl_img_picker li:hover { border-color: #0f4e9a !important; }
.nl_img_picker li img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
    margin: 0;
}
.nl_img_picker li span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #555;
}

/* 핫스팟 에디터 */
.nl_hotspot_body {
    display: flex;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}
.nl_hotspot_canvas {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nl_hotspot_stage {
    position: relative;
    display: inline-block;
    line-height: 0;
    user-select: none;
    cursor: crosshair;
    max-width: 100%;
    max-height: 70vh;
}
.nl_hotspot_stage img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    pointer-events: none;
    user-select: none;
}
.nl_hotspot_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.nl_hotspot_rect {
    position: absolute;
    background: rgba(15, 78, 154, 0.25);
    border: 2px solid #0f4e9a;
}
.nl_hotspot_drawing {
    background: rgba(217, 83, 79, 0.25);
    border-color: #d9534f;
    border-style: dashed;
}
.nl_hotspot_label {
    position: absolute;
    top: 2px;
    left: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #0f4e9a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
}

.nl_hotspot_side {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.nl_hotspot_tip {
    margin: 0 !important;
    padding: 10px 12px !important;
    background: #f6f8fb;
    border-left: 3px solid #0f4e9a;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    border-radius: 0;
}
.nl_hotspot_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 55vh;
    flex: 1 1 auto;
}
.nl_hotspot_list .nl_hotspot_empty {
    padding: 20px 10px !important;
    text-align: center;
    color: #999;
    background: #fafafa !important;
    border: 1px dashed #ddd !important;
    border-radius: 4px;
    font-size: 12px;
}
.nl_hotspot_list .nl_hotspot_item {
    padding: 10px !important;
    border: 1px solid #e0e6ef !important;
    border-radius: 4px;
    background: #fff !important;
    display: block;
}
.nl_hotspot_item_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.nl_modal_overlay .nl_hotspot_num {
    display: inline-block !important;
    min-width: 32px;
    padding: 2px 8px !important;
    background: #0f4e9a !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-align: center;
    line-height: 1.4;
}
.nl_hotspot_del {
    padding: 2px 8px;
    font-size: 12px;
    color: #d9534f;
    background: #fff;
    border: 1px solid #d9534f;
    border-radius: 3px;
    cursor: pointer;
}
.nl_hotspot_del:hover { background: #d9534f; color: #fff; }
.nl_hotspot_url {
    display: block;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
}
.nl_hotspot_url:focus { border-color: #0f4e9a; }

@media (max-width: 900px) {
    .nl_hotspot_body { flex-direction: column; overflow: auto; }
    .nl_hotspot_side { flex: 0 0 auto; }
    .nl_hotspot_canvas { max-height: 50vh; }
}

/* 작성 폼 - 기존 파일 정보 표시 */
.nl_write .nl_file_info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 10px;
    background: #f6f8fb;
    border: 1px solid #e0e6ef;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
}
.nl_write .nl_file_info a { color: #0f4e9a; text-decoration: none; }
.nl_write .nl_file_info a:hover { text-decoration: underline; }
.nl_write .nl_file_info label { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; color: #d9534f; cursor: pointer; }
.nl_write .nl_file_preview {
    width: 48px;
    height: 66px;
    object-fit: cover;
    border: 1px solid #e0e6ef;
    border-radius: 2px;
}

/* 상세 보기 (view) */
.nl_view .boardTop {
    padding: 18px 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #222;
}
.nl_view #board_tlt {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}
.nl_view .nl_view_cate {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 10px;
    font-size: 13px;
    color: #0f4e9a;
    background: #eaf2fb;
    border-radius: 10px;
    vertical-align: middle;
}
.nl_view #board_info {
    font-size: 13px;
    color: #888;
}

.nl_view_content {
    padding: 20px 0;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
}
.nl_view_content img { max-width: 100%; height: auto; }

/* 핫스팟 래퍼: 뷰에서 반응형으로 축소 */
.nl_view_content .nl_img_map {
    display: inline-block;
    position: relative;
    line-height: 0;
    max-width: 100%;
}
.nl_view_content .nl_img_map img {
    display: block;
    max-width: 100%;
    height: auto;
}
.nl_view_content .nl_img_map a.nl_hotspot_a {
    display: block;
    position: absolute;
    z-index: 2;
}
.nl_view_content .nl_img_map a.nl_hotspot_a:hover {
    background: rgba(15, 78, 154, 0.12);
    outline: 2px solid rgba(15, 78, 154, 0.4);
}

/* 반응형 */
@media (max-width: 1200px) {
    #newsletter_list .nl_card_list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    #newsletter_list .nl_card_list { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
    #newsletter_list .nl_card_title { font-size: 15px; }
}
@media (max-width: 480px) {
    #newsletter_list .nl_card_list { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    #newsletter_list .nl_top { flex-direction: column; align-items: flex-start; gap: 10px; }
    #newsletter_list .nl_card_title { font-size: 14px; }
}
