/*
 * 파일명 : zalnas-legacy-responsive.css
 * 설명 : legacy 화면 반응형 및 게시판 공통 보정 스타일
 * 개발자 : 신충수 (ikrzeus@naver.com)
 * 생성일자 : 2026-05-19 (최종수정 : 2026-06-14)
 * -------------------------------------------------------------------------------------------------------------
 * 2026-06-14 : 게시판 배너 제목 우측 출력 위치 스타일 추가
 */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin-right: 0;
    margin-left: 0;
}

img {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.board_banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.board_banner_link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.board_banner img {
    display: block;
    width: 100%;
    max-width: 1024px;
    height: auto;
    border: 1px solid #cfd7e6;
    border-radius: 8px;
    background: #fff;
}

.board_banner_title {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    max-width: calc(100% - 80px);
    color: #fff;
    font-family: "Noto Serif KR", "Nanum Myeongjo", "Noto Sans KR", "Nanum Gothic", "Malgun Gothic", "Dotum", "Arial", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.board_banner_title.is-center {
    left: 50%;
    right: auto;
    text-align: center;
    transform: translate(-50%, -50%);
}

.board_banner_title.is-left {
    left: 40px;
    right: auto;
    max-width: calc(100% - 80px);
    text-align: left;
    transform: translateY(-50%);
}

.board_banner_title.is-right {
    left: auto;
    right: 40px;
    max-width: calc(100% - 60px);
    text-align: right;
    transform: translateY(-50%);
}

.board-list-search {
    width: 100%;
    margin: 10px 0;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
}

.board-main-content-box {
    width: 100%;
    margin: 0;
    padding: 12px 4px;
    box-sizing: border-box;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
}
.board-view-content-box {
    padding-left: 15px;
    padding-right: 15px;
}


/* board list spacing: banner -> search -> list -> paging = 12px */
.board-list-search-box {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
}

.board-list-content-box--webzine {
    padding-top: 17px;
}
.board-list-search-box > table {
    width: 100% !important;
    margin: 0 !important;
}

.board-list-search-box .board-list-search {
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.board-list-search-box .board-list-search td {
    background-image: none !important;
}

.board-list-search-box .board-list-search td[width="15"],
.board-list-search-box .board-list-search td[width='15'] {
    display: none;
}

.board-list-search-box > table:first-child td[height="5"] {
    height: 0 !important;
}

.board-list-search-box form[name="search"] {
    margin: 0;
}

.board-list-search-box form[name="search"] > table[align="right"] {
    width: auto !important;
    float: none !important;
    margin-left: auto !important;
}

.board-list-search-box form[name="search"] > table[align="right"] > tbody > tr:first-child,
.board-list-search-box form[name="search"] > table[align="right"] > tr:first-child {
    height: 30px;
}

.board-list-search-box form[name="search"] > table[align="right"] tr:last-child {
    display: none;
}

.board-list-search-box form[name="search"] > table[align="right"] > tbody > tr:first-child,
.board-list-search-box form[name="search"] > table[align="right"] > tr:first-child {
    display: table-row;
}

.board-notice-list-box {
    width: 100%;
    margin: 0 0 12px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
}

.board-notice-list-box form {
    margin: 0;
    padding: 0;
}

.board-notice-list-table {
    width: 100%;
    table-layout: fixed;
}

.board-notice-list-row {
    height: 38px;
}

.board-notice-list-no {
    color: #555;
    font-size: 10.5pt;
    white-space: nowrap;
}

.board-notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #9f1d35;
    color: #fff;
    box-sizing: border-box;
    font-size: 9pt;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
}

.board-notice-list-subject {
    min-width: 0;
    padding: 0 8px;
    color: #222;
    font-size: 10.5pt;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-notice-list-subject a {
    color: inherit;
    text-decoration: none;
}

.board-notice-list-date {
    color: #777;
    font-family: Verdana, Arial, sans-serif;
    font-size: 8pt;
}

.board-notice-list-divider td {
    height: 1px;
    background: #e5e7eb;
}

.board-list-foot-box {
    margin-top: 12px;
}

.board-list-foot-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
}

.board-list-table,
.board-list-head,
.board-list-foot {
    width: 100%;
}

.board-list-subject {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-list-subject a {
    display: inline;
    line-height: 1.45;
}

.board-joinsite-list-table,
.board-joinsite-list-table tr,
.board-joinsite-list-table td,
.board-joinsite-list-table a,
.board-joinsite-list-table span,
.board-joinsite-list-table font,
.board-joinsite-list-table .verdana8,
.board-joinsite-list-table .orange7v {
    font-size: 11pt !important;
}

.board-list-table .orange7v,
.board-joinsite-list-table .orange7v,
.board-webzine-list .orange7v {
    font-size: 9pt !important;
}

.board-joinsite-list-table .board-joinsite-list-no,
.board-joinsite-list-table .board-joinsite-list-date {
    font-size: 10pt !important;
}

.board-joinsite-category-text,
.board-joinsite-category-text a,
.board-joinsite-category-text font {
    font-size: 11pt !important;
}

.board-list-category,
.board-list-date,
.board-list-hit,
.board-list-state,
.board-list-score,
.board-list-link {
    white-space: nowrap;
}

.board-list-actions img,
.board-list-search img {
    max-width: none;
}

.board-view-sublist-box input[type="checkbox"][name="chk_no[]"],
.board-view-sublist-box .board-list-actions {
    display: none;
}

.board-view-subject,
.board-view-content,
.board-view-files,
.board-comment-body {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-view-content img,
.board-comment-body img {
    max-width: 100%;
    height: auto;
}

.board-view-content iframe,
.board-view-content embed,
.board-view-content object,
.board-comment-body iframe,
.board-comment-body embed,
.board-comment-body object {
    max-width: 100%;
}

.board-view-files a,
.board-comment-body a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-comment-write textarea {
    width: 100% !important;
    box-sizing: border-box;
}

.board-webzine-subject,
.board-webzine-bgm,
.board-webzine-date,
.board-webzine-hit {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-webzine-list .board-webzine-subject,
.board-webzine-list .board-webzine-subject a,
.board-webzine-list .board-webzine-subject font,
.board-webzine-list .board-webzine-bgm {
    font-size: 10pt !important;
}

.board-list-subject,
.board-list-subject a,
.board-list-subject font,
.board-notice-list-subject,
.board-notice-list-subject a,
.board-notice-list-subject font,
.board-webzine-subject,
.board-webzine-subject a,
.board-webzine-subject font,
.board-webzine-card-title,
.board-webzine-card-title a,
.board-webzine-card-title font,
.board-joinsite-list-title,
.board-joinsite-list-title a,
.board-joinsite-list-title font,
.board-joinsite-category-text a,
.board-joinsite-category-text font,
.daily-board-list-subject-link,
.daily-board-list-subject-link font {
    font-family: "NanumGothic", "Nanum Gothic", "Noto Sans KR", "Malgun Gothic", "Dotum", "Arial", sans-serif;
    font-size: 10.5pt !important;
}
.board-webzine-list .board-webzine-date,
.board-webzine-list .board-webzine-date span,
.board-webzine-list .board-webzine-hit,
.board-webzine-list .board-webzine-hit span {
    font-size: 9pt !important;
}

.board-webzine-thumb img {
    width: 240px;
    max-width: 240px;
    height: auto;
}

.board-write-table input[type="text"],
.board-write-table input[type="file"],
.board-write-table select,
.board-write-extra input[type="text"],
.board-write-extra input[type="file"],
.board-write-extra select,
.board-write-editor textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.board-write-control {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1320px) and (min-width: 1280px) {
    body > center,
    center {
        width: 100%;
        overflow-x: hidden;
    }

    table[width="1024"],
    table[width='1024'],
    table[width="1280"],
    table[width='1280'] {
        width: calc(100% - 20px) !important;
        margin-right: auto;
        margin-left: auto;
    }

    td[width="1024"],
    td[width='1024'],
    td[width="790"],
    td[width='790'] {
        width: auto !important;
    }

    td[width="240"],
    td[width='240'],
    td[width="220"],
    td[width='220'] {
        width: 240px !important;
    }
}

@media (max-width: 760px) {
    table[width="1024"] > tbody > tr,
    table[width='1024'] > tbody > tr,
    table[width="1280"] > tbody > tr,
    table[width='1280'] > tbody > tr {
        display: block;
    }

    table[width="1024"] > tbody > tr > td,
    table[width='1024'] > tbody > tr > td,
    table[width="1280"] > tbody > tr > td,
    table[width='1280'] > tbody > tr > td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    td[width="16"],
    td[width='16'],
    td[width="14"],
    td[width='14'] {
        display: none !important;
    }
}
