@charset "utf-8";

/*
 * =========================================================
 * Basic Board
 * =========================================================
 *
 * 적용 게시판
 * 0401 공지사항 및 일반 Basic 게시판
 *
 * 01. Common
 * 02. List
 * 03. View
 * 04. Comment
 * 05. Write
 * 06. Pagination
 * 07. Responsive
 */


/* =========================================================
   01. COMMON
========================================================= */

.basic_list,
.basic_view,
.basic_write {
    --basic-text: #222;
    --basic-sub: #777;
    --basic-light-text: #999;
    --basic-line: #e5e7eb;
    --basic-line-dark: #d8dbe1;
    --basic-bg: #f7f8fa;
    --basic-bg-light: #fafafa;

    position: relative;
    width: 100%;
}


.basic_list *,
.basic_view *,
.basic_write * {
    box-sizing: border-box;
}


.basic_list a,
.basic_view a,
.basic_write a {
    text-decoration: none;
}


.basic_list button,
.basic_view button,
.basic_write button,
.basic_list input,
.basic_view input,
.basic_write input,
.basic_list select,
.basic_view select,
.basic_write select,
.basic_list textarea,
.basic_view textarea,
.basic_write textarea {
    font-family: inherit;
}


.basic_list button,
.basic_view button,
.basic_write button {
    cursor: pointer;
}


/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

.basic_list .sound_only,
.basic_view .sound_only,
.basic_write .sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ---------------------------------------------------------
   CHECKBOX
--------------------------------------------------------- */

.basic_list input[type="checkbox"],
.basic_view input[type="checkbox"],
.basic_write input[type="checkbox"] {
    accent-color: var(--color-primary);
}


/* =========================================================
   02. LIST
========================================================= */

.basic_list {
    color: var(--basic-text);
}


/* ---------------------------------------------------------
   SEARCH
--------------------------------------------------------- */

.basic_list_search {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 70px;
}


.basic_search_form {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 64px;

    border: 1px solid var(--basic-line-dark);
    background: #fff;
}


.basic_search_select {
    position: relative;
    flex: 0 0 150px;

    border-right: 1px solid var(--basic-line);
}


.basic_search_select::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 20px;

    width: 7px;
    height: 7px;

    border-right: 1px solid #555;
    border-bottom: 1px solid #555;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;
}


.basic_search_select select {
    width: 100%;
    height: 100%;

    padding: 0 45px 0 22px;

    border: 0;
    outline: 0;

    background: transparent;

    appearance: none;
    -webkit-appearance: none;

    font-size: 15px;
    font-weight: 500;
    color: #333;

    cursor: pointer;
}


.basic_search_input {
    flex: 1;
    min-width: 0;
}


.basic_search_input input {
    display: block;

    width: 100%;
    height: 100%;

    padding: 0 24px;

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 16px;
    color: var(--basic-text);
}


.basic_search_input input::placeholder {
    color: #aaa;
}


.basic_search_button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 70px;

    padding: 0;

    border: 0;

    background: transparent;
}


.basic_search_button svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.6;
    stroke-linecap: round;

    transition: stroke .2s ease;
}


.basic_search_button:hover svg {
    stroke: var(--color-primary);
}


/* ---------------------------------------------------------
   LIST TOP
--------------------------------------------------------- */

.basic_list_top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.basic_list_count {
    font-size: 14px;
    color: var(--basic-sub);
}


.basic_list_count strong {
    color: var(--color-primary);
    font-weight: 700;
}


.basic_list_write {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 100px;
    height: 42px;

    padding: 0 20px;

    border: 1px solid var(--color-primary);

    background: var(--color-primary);

    font-size: 14px;
    font-weight: 600;
    color: #fff !important;

    transition:
        background .2s ease,
        border-color .2s ease;
}


.basic_list_write:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
}


/* ---------------------------------------------------------
   ADMIN
--------------------------------------------------------- */

.basic_list_admin {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}


.basic_list_check_all {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-height: 36px;

    font-size: 14px;
    color: #666;

    cursor: pointer;
}


.basic_list_check_all input {
    width: 17px;
    height: 17px;
}


.basic_list_admin_buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}


.basic_list_admin_buttons button, 
.basic_list_admin_buttons a {
    height: 36px;
		line-height: 34px;

    padding: 0 12px;

    border: 1px solid #ddd;

    background: #fff;

    font-size: 14px;
    color: #666;
}


.basic_list_admin_buttons button:hover {
    border-color: #999;
    color: #222;
}


/* ---------------------------------------------------------
   TABLE
--------------------------------------------------------- */

.basic_list_table {
    width: 100%;

    border-top: 2px solid var(--color-primary);
}


.basic_list_head,
.basic_list_row {
    display: grid;

    grid-template-columns:
        110px
        minmax(0, 1fr)
        130px
        90px;

    align-items: center;
}


.basic_list_head {
    min-height: 62px;

    border-bottom: 1px solid var(--basic-line-dark);

    background: #fafafa;

    font-size: 14px;
    font-weight: 600;
    color: #555;
}


.basic_list_row {
    position: relative;

    min-height: 76px;

    border-bottom: 1px solid var(--basic-line);

    background: #fff;

    transition: background .2s ease;
}


.basic_list_row:hover {
    background: #fcfcfd;
}


/* 관리자 체크박스가 있을 경우 */

.basic_list_head:has(.basic_list_col_check),
.basic_list_row:has(.basic_list_col_check) {
    grid-template-columns:
        48px
        110px
        minmax(0, 1fr)
        130px
        90px;
}


.basic_list_col {
    min-width: 0;
}


.basic_list_col_check,
.basic_list_col_num,
.basic_list_col_date,
.basic_list_col_hit {
    text-align: center;
}


.basic_list_col_check input {
    width: 17px;
    height: 17px;
}


.basic_list_col_num {
    font-size: 14px;
    color: #888;
}


.basic_list_number {
    color: #888;
}


/* ---------------------------------------------------------
   NOTICE
--------------------------------------------------------- */

.basic_list_row.is_notice {
    background: #f9fafc;
}


.basic_notice_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 64px;
    height: 27px;

    padding: 0 9px;

    border: 1px solid rgba(228, 23, 125, .22);
    border-radius: 30px;

    background: rgba(228, 23, 125, .06);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;

    color: var(--color-primary);
}


/* ---------------------------------------------------------
   SUBJECT
--------------------------------------------------------- */

.basic_list_col_subject {
    padding: 0 25px;
}


.basic_list_subject_link {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    color: var(--basic-text);
}


.basic_list_subject_text {
    overflow: hidden;

    min-width: 0;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;

    color: #333;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color .2s ease;
}


.basic_list_row.is_notice
.basic_list_subject_text {
    font-weight: 600;
    color: var(--color-primary);
}


.basic_list_subject_link:hover
.basic_list_subject_text {
    color: var(--color-primary);
}


/* 검색어 */

.basic_list_subject_text .sch_word {
    color: var(--color-primary);
    font-weight: 700;
}


/* 분류 */

.basic_list_category {
    flex: 0 0 auto;

    padding: 3px 7px;

    background: #f0f2f6;

    font-size: 14px;
    color: #687080;
}


/* NEW */

.basic_list_new {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: var(--color-primary);

    font-size: 14px;
    font-weight: 700;
    color: #fff;
}


/* SECRET */

.basic_list_secret {
    flex: 0 0 auto;

    font-size: 14px;
    color: #999;
}


/* COMMENT */

.basic_list_comment {
    flex: 0 0 auto;

    font-size: 14px;
    color: var(--color-primary);
}


.basic_list_col_date,
.basic_list_col_hit {
    font-size: 14px;
    color: #888;
}


/* ---------------------------------------------------------
   EMPTY
--------------------------------------------------------- */

.basic_list_empty {
    padding: 110px 20px;

    border-bottom: 1px solid var(--basic-line);

    text-align: center;
}


.basic_list_empty strong {
    display: block;

    font-size: 16px;
    font-weight: 500;
    color: #555;
}


.basic_list_empty p {
    margin: 8px 0 0;

    font-size: 14px;
    line-height: 1.6;
    color: #999;
}


/* ---------------------------------------------------------
   LIST PAGING
--------------------------------------------------------- */

.basic_list_paging {
    margin-top: 60px;

    text-align: center;
}


/* =========================================================
   03. VIEW
========================================================= */

.basic_view {
    color: var(--basic-text);
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.basic_view_header {
    padding: 35px 30px 38px;

    border-top: 2px solid var(--color-primary);
    border-bottom: 1px solid var(--basic-line);
}


.basic_view_category {
    display: inline-flex;

    margin-bottom: 15px;

    padding: 5px 10px;

    background: #f1f3f7;

    font-size: 14px;
    font-weight: 500;
    color: #667080;
}


.basic_view_title {
    margin: 0;

    font-size: clamp(26px, 2.3vw, 36px);
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: -.025em;

    color: var(--color-primary);

    word-break: keep-all;
}


.basic_view_meta {
    display: flex;
    align-items: center;

    gap: 25px;

    margin-top: 24px;

    font-size: 14px;
    color: #888;
}


.basic_view_date,
.basic_view_hit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.basic_view_meta_label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;

    color: #555;
}


/* ---------------------------------------------------------
   CONTENT
--------------------------------------------------------- */

.basic_view_content {
    min-height: 350px;

    padding: 65px 30px 80px;

    border-bottom: 1px solid var(--basic-line);
}


.basic_view_images {
    margin-bottom: 40px;
}


.basic_view_images > a {
    display: block;

    margin-bottom: 20px;

    text-align: center;
}


.basic_view_images img {
    max-width: 100%;
    height: auto;
}


.basic_view_body {
    width: 100%;

    min-height: 200px;

    font-size: 16px;
    line-height: 1.9;

    color: #444;

    word-break: break-word;
}


.basic_view_body p {
    margin: 0 0 1.4em;
}


.basic_view_body img {
    max-width: 100% !important;
    height: auto !important;
}


.basic_view_body a {
    color: var(--color-primary);
    text-decoration: underline;
}


.basic_view_signature {
    margin-top: 50px;

    padding-top: 25px;

    border-top: 1px solid var(--basic-line);

    font-size: 14px;
    color: #777;
}


/* ---------------------------------------------------------
   FILE / LINK
--------------------------------------------------------- */

.basic_view_files,
.basic_view_links {
    display: grid;

    grid-template-columns: 130px 1fr;

    border-bottom: 1px solid var(--basic-line);
}


.basic_view_section_label {
    padding: 25px 20px;

    background: #fafafa;

    font-size: 14px;
    font-weight: 600;
    color: #555;
}


.basic_view_file_list,
.basic_view_link_list {
    min-width: 0;

    padding: 14px 20px;
}


.basic_view_file,
.basic_view_link {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 44px;

    color: #555;
}


.basic_view_file + .basic_view_file,
.basic_view_link + .basic_view_link {
    border-top: 1px solid #f0f0f0;
}


.basic_view_file_icon,
.basic_view_link_icon {
    flex: 0 0 auto;

    width: 24px;

    text-align: center;

    color: #999;
}


.basic_view_file_name,
.basic_view_link_text {
    overflow: hidden;

    flex: 1;

    min-width: 0;

    font-size: 14px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.basic_view_file_name small {
    display: block;

    margin-top: 3px;

    font-size: 14px;
    color: #aaa;
}


.basic_view_file_size {
    flex: 0 0 auto;

    font-size: 14px;
    color: #aaa;
}


.basic_view_link_arrow {
    flex: 0 0 auto;

    font-size: 17px;
    color: #999;
}


.basic_view_file:hover,
.basic_view_link:hover {
    color: var(--color-primary);
}


.basic_view_file:hover
.basic_view_file_icon,
.basic_view_link:hover
.basic_view_link_icon,
.basic_view_link:hover
.basic_view_link_arrow {
    color: var(--color-primary);
}


/* ---------------------------------------------------------
   PREV / NEXT
--------------------------------------------------------- */

.basic_view_navigation {
    margin-top: 60px;

    border-top: 1px solid var(--basic-line-dark);
}


.basic_view_navigation_item {
    display: grid;

    grid-template-columns:
        100px
        minmax(0, 1fr)
        30px;

    align-items: center;

    min-height: 68px;

    border-bottom: 1px solid var(--basic-line);

    color: #333;
}


.basic_view_navigation_label {
    padding-left: 15px;

    font-size: 14px;
    color: #777;
}


.basic_view_navigation_title {
    overflow: hidden;

    padding: 0 20px;

    font-size: 15px;
    font-weight: 500;

    color: #444;

    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color .2s ease;
}


.basic_view_navigation_arrow {
    font-size: 17px;
    color: #aaa;
}


a.basic_view_navigation_item:hover
.basic_view_navigation_title {
    color: var(--color-primary);
}


.basic_view_navigation_item.is_empty
.basic_view_navigation_title {
    font-weight: 400;
    color: #aaa;
}


/* ---------------------------------------------------------
   VIEW BUTTON
--------------------------------------------------------- */

.basic_view_buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 30px;
}


.basic_view_buttons_left,
.basic_view_buttons_right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;
}


.basic_view_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 80px;
    height: 42px;

    padding: 0 16px;

    border: 1px solid #ddd;

    background: #fff;

    font-size: 14px;
    font-weight: 500;

    color: #555;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}


.basic_view_btn_sub:hover {
    border-color: #999;
    color: #222;
}


.basic_view_btn_write {
    border-color: var(--color-primary);

    color: var(--color-primary);
}


.basic_view_btn_write:hover {
    background: var(--color-primary);
    color: #fff;
}


.basic_view_btn_list {
    min-width: 100px;

    border-color: var(--color-primary);

    background: var(--color-primary);

    color: #fff;
}


.basic_view_btn_list:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
}


/* =========================================================
   04. COMMENT
========================================================= */

.basic_comment {
    margin-top: 80px;

    border-top: 2px solid var(--color-primary);
}


.basic_comment_header {
    display: flex;
    align-items: center;

    min-height: 65px;

    border-bottom: 1px solid var(--basic-line);
}


.basic_comment_header h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 600;

    color: var(--color-primary);
}


.basic_comment_header h2 span {
    margin-left: 5px;

    color: var(--color-primary);
}


/* ---------------------------------------------------------
   COMMENT ITEM
--------------------------------------------------------- */

.basic_comment_item {
    border-bottom: 1px solid var(--basic-line);

    background: #fff;
}


.basic_comment_item.is_reply {
    margin-left:
        calc(
            var(--comment-depth) * 24px
        );

    border-left: 2px solid #eef0f3;
}


.basic_comment_inner {
    padding: 25px 20px;
}


.basic_comment_info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.basic_comment_author {
    display: flex;
    align-items: center;

    gap: 8px;
}


.basic_comment_author strong,
.basic_comment_author .sv_member,
.basic_comment_author .sv_guest {
    font-size: 14px;
    font-weight: 600;

    color: #333;
}


.basic_comment_ip {
    font-size: 14px;
    color: #aaa;
}


.basic_comment_meta {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 14px;
    color: #999;
}


/* ---------------------------------------------------------
   COMMENT OPTION
--------------------------------------------------------- */

.basic_comment_option {
    position: relative;
}


.basic_comment_option_btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;

    background: transparent;

    font-size: 20px;
    line-height: 1;

    color: #888;
}


.basic_comment_option_menu {
    display: none;

    position: absolute;
    z-index: 20;

    top: 34px;
    right: 0;

    width: 70px;

    margin: 0;
    padding: 5px 0;

    border: 1px solid #ddd;

    background: #fff;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, .07);

    list-style: none;
}


.basic_comment_option_menu li {
    margin: 0;
    padding: 0;
}


.basic_comment_option_menu a {
    display: block;

    padding: 8px 12px;

    font-size: 14px;
    color: #555;

    text-align: center;
}


.basic_comment_option_menu a:hover {
    background: #f7f7f7;
    color: var(--color-primary);
}


/* ---------------------------------------------------------
   COMMENT CONTENT
--------------------------------------------------------- */

.basic_comment_content {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    margin-top: 14px;
}


.basic_comment_secret {
    flex: 0 0 auto;

    padding-top: 2px;

    font-size: 14px;
    color: #999;
}


.basic_comment_text {
    min-width: 0;

    font-size: 15px;
    line-height: 1.75;

    color: #555;

    word-break: break-word;
}


.basic_comment_text p {
    margin: 0;
}


.basic_comment_text a {
    color: var(--color-primary);
    text-decoration: underline;
}


.basic_comment_saved {
    display: none;
}


.basic_comment_form_position
.basic_comment_write {
    margin-top: 20px;
}


/* ---------------------------------------------------------
   COMMENT EMPTY
--------------------------------------------------------- */

.basic_comment_empty {
    padding: 50px 20px;

    border-bottom: 1px solid var(--basic-line);

    text-align: center;

    font-size: 14px;
    color: #999;
}


/* ---------------------------------------------------------
   COMMENT WRITE
--------------------------------------------------------- */

.basic_comment_write {
    margin-top: 30px;

    padding: 30px;

    background: var(--basic-bg);
}


.basic_comment_write_header {
    margin-bottom: 18px;
}


.basic_comment_write_header h2 {
    margin: 0 0 5px;

    font-size: 17px;
    font-weight: 600;

    color: var(--color-primary);
}


.basic_comment_write_header p {
    margin: 0;

    font-size: 14px;
    color: #999;
}


.basic_comment_write_content {
    position: relative;
}


.basic_comment_write_content textarea {
    display: block;

    width: 100%;
    min-height: 130px;

    padding: 17px 18px 35px;

    border: 1px solid var(--basic-line-dark);
    outline: 0;

    resize: vertical;

    background: #fff;

    font-size: 15px;
    line-height: 1.7;

    color: #333;
}


.basic_comment_write_content textarea:focus {
    border-color: var(--color-primary);
}


.basic_comment_char {
    position: absolute;

    right: 15px;
    bottom: 10px;

    font-size: 14px;
    color: #aaa;
}


.basic_comment_write_bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-top: 15px;
}


.basic_comment_write_info {
    flex: 1;

    min-width: 0;
}


.basic_comment_guest {
    display: flex;

    gap: 6px;

    margin-bottom: 10px;
}


.basic_comment_guest .frm_input {
    width: 200px;
    height: 44px;

    padding: 0 13px;

    border: 1px solid var(--basic-line-dark);
    outline: 0;

    background: #fff;

    font-size: 14px;
}


.basic_comment_guest .frm_input:focus {
    border-color: var(--color-primary);
}


.basic_comment_captcha {
    margin-bottom: 10px;
}


.basic_comment_sns {
    margin-bottom: 10px;
}


.basic_comment_secret_check {
    position: relative;

    display: inline-flex;
    align-items: center;

    font-size: 14px;
    color: #666;
}


.basic_comment_secret_check label {
    cursor: pointer;
}


.basic_comment_submit {
    flex: 0 0 120px;

    height: 48px;

    border: 1px solid var(--color-primary);

    background: var(--color-primary);

    font-size: 14px;
    font-weight: 600;

    color: #fff;
}


.basic_comment_submit:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
}


/* =========================================================
   05. WRITE
========================================================= */

.basic_write {
    color: var(--basic-text);
}


/* ---------------------------------------------------------
   WRITE HEADER
--------------------------------------------------------- */

.basic_write_header {
    padding-bottom: 35px;

    border-bottom: 2px solid var(--color-primary);
}


.basic_write_eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;

    color: var(--color-primary);
}


.basic_write_header h2 {
    margin: 0;

    font-size: 30px;
    font-weight: 600;
    line-height: 1.4;

    color: var(--color-primary);
}


.basic_write_header p {
    margin: 10px 0 0;

    font-size: 15px;
    line-height: 1.7;

    color: #888;
}


/* ---------------------------------------------------------
   WRITE SECTION
--------------------------------------------------------- */

.basic_write_section {
    padding: 40px 0;

    border-bottom: 1px solid var(--basic-line);
}


.basic_write_section_title {
    margin-bottom: 22px;
}


.basic_write_section_title h3 {
    margin: 0;

    font-size: 18px;
    font-weight: 600;

    color: #333;
}


.basic_write_section_title p {
    margin: 7px 0 0;

    font-size: 14px;
    line-height: 1.6;

    color: #999;
}


.basic_write_fields {
    display: flex;
    flex-direction: column;

    gap: 20px;
}


/* ---------------------------------------------------------
   WRITE FIELD
--------------------------------------------------------- */

.basic_write_field > label,
.basic_write_label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #444;
}


.basic_write_field > label strong {
    margin-left: 3px;

    color: var(--color-primary);
}


.basic_write .frm_input,
.basic_write select {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--basic-line-dark);
    border-radius: 0;
    outline: 0;

    background: #fff;

    font-size: 15px;
    color: #333;
}


.basic_write .frm_input:focus,
.basic_write select:focus {
    border-color: var(--color-primary);
}


/* ---------------------------------------------------------
   OPTION
--------------------------------------------------------- */

.basic_write_option
.bo_v_option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 15px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.basic_write_option
.chk_box {
    position: relative;
}


.basic_write_option
.chk_box label {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    font-size: 14px;
    color: #666;

    cursor: pointer;
}


/* 기존 GNUBoard 커스텀 체크박스 구조 */

.basic_write_option
.selec_chk {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;
}


.basic_write_option
.selec_chk + label span {
    display: inline-block;

    position: relative;

    width: 17px;
    height: 17px;

    border: 1px solid #ccc;

    background: #fff;
}


.basic_write_option
.selec_chk:checked + label span {
    border-color: var(--color-primary);
    background: var(--color-primary);
}


.basic_write_option
.selec_chk:checked + label span::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 5px;

    width: 4px;
    height: 7px;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg);
}


/* ---------------------------------------------------------
   EDITOR
--------------------------------------------------------- */

.basic_write_editor {
    width: 100%;
}


.basic_write_editor iframe {
    max-width: 100%;
}


#char_count_desc {
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.6;

    color: #888;
}


#char_count_wrap {
    margin-top: 8px;

    text-align: right;

    font-size: 14px;
    color: #888;
}


#char_count {
    font-weight: 600;

    color: var(--color-primary);
}


/* ---------------------------------------------------------
   FILE
--------------------------------------------------------- */

.basic_write_files {
    border-top: 1px solid var(--basic-line);
}


.basic_write_file {
    padding: 18px 0;

    border-bottom: 1px solid var(--basic-line);
}


.basic_write .filebox {
    display: flex;
    align-items: center;

    gap: 8px;

    position: relative;
}


.basic_write .fileName {
    flex: 1;

    min-width: 0;
    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--basic-line-dark);

    background: #fff;

    font-size: 14px;
    color: #777;
}


.basic_write .filebox label {
    flex: 0 0 100px;

    height: 50px;

    margin: 0;
}


.basic_write .btn_file {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: var(--color-primary);

    font-size: 14px;
    font-weight: 600;

    color: #fff;

    cursor: pointer;

    transition: background .2s ease;
}


.basic_write .filebox label:hover
.btn_file {
    background: var(--color-primary);
}


.basic_write .uploadBtn {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    border: 0;
}


.basic_file_description {
    margin-top: 8px;
}


.basic_existing_file {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 8px;
    padding: 12px 15px;

    background: var(--basic-bg);

    font-size: 14px;
    line-height: 1.6;

    color: #777;
}


.basic_existing_file strong {
    font-weight: 500;

    color: #333;
}


.basic_existing_file label {
    flex: 0 0 auto;

    cursor: pointer;
}


/* ---------------------------------------------------------
   CAPTCHA
--------------------------------------------------------- */

.basic_write_captcha {
    padding: 5px 0;
}


/* ---------------------------------------------------------
   WRITE BUTTON
--------------------------------------------------------- */

.basic_write_buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding-top: 40px;
}


.basic_write_buttons
.btn_cancel,
.basic_write_buttons
.btn_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    height: 50px;

    padding: 0 25px;

    border-radius: 0;

    font-size: 15px;
    font-weight: 600;
}


.basic_write_buttons
.btn_cancel {
    border: 1px solid #ccc;

    background: #fff;

    color: #555;
}


.basic_write_buttons
.btn_cancel:hover {
    border-color: #999;
    color: #222;
}


.basic_write_buttons
.btn_submit {
    border: 1px solid var(--color-primary);

    background: var(--color-primary);

    color: #fff;
}


.basic_write_buttons
.btn_submit:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
}


/* =========================================================
   06. PAGINATION
========================================================= */

/*
 * GNUBoard 기본 get_paging() 마크업 대응
 */

.basic_list_paging .pg_wrap {
    display: inline-block;
}


.basic_list_paging .pg {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;
}


.basic_list_paging .pg_page,
.basic_list_paging .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 8px;

    border: 1px solid transparent;

    background: #fff;

    font-size: 14px;
    font-weight: 500;

    color: #777;
}


.basic_list_paging a.pg_page:hover {
    border-color: var(--basic-line-dark);

    color: var(--color-primary);
}


.basic_list_paging .pg_current {
    border-color: var(--color-primary);

    background: var(--color-primary);

    color: #fff;
}


.basic_list_paging .pg_start,
.basic_list_paging .pg_prev,
.basic_list_paging .pg_next,
.basic_list_paging .pg_end {
    border-color: var(--basic-line);

    font-size: 14px;
}


/* =========================================================
   07. RESPONSIVE - TABLET
========================================================= */

@media all and (max-width: 1024px) {


    /* LIST */

    .basic_list_head,
    .basic_list_row {
        grid-template-columns:
            90px
            minmax(0, 1fr)
            110px
            75px;
    }


    .basic_list_head:has(.basic_list_col_check),
    .basic_list_row:has(.basic_list_col_check) {
        grid-template-columns:
            45px
            80px
            minmax(0, 1fr)
            110px
            75px;
    }


    .basic_list_col_subject {
        padding: 0 18px;
    }


}


/* =========================================================
   07. RESPONSIVE - MOBILE
========================================================= */

@media all and (max-width: 768px) {


    /* -----------------------------------------------------
       SEARCH
    ----------------------------------------------------- */

    .basic_list_search {
        margin-bottom: 45px;
    }


    .basic_search_form {
        height: 56px;
    }


    .basic_search_select {
        flex-basis: 115px;
    }


    .basic_search_select::after {
        right: 14px;
    }


    .basic_search_select select {
        padding:
            0 32px
            0 13px;

        font-size: 14px;
    }


    .basic_search_input input {
        padding: 0 12px;

        font-size: 14px;
    }


    .basic_search_button {
        flex-basis: 50px;
    }


    .basic_search_button svg {
        width: 21px;
        height: 21px;
    }



    /* -----------------------------------------------------
       LIST TOP
    ----------------------------------------------------- */

    .basic_list_top {
        margin-bottom: 14px;
    }


    .basic_list_write {
        min-width: 85px;
        height: 38px;

        padding: 0 15px;
    }



    /* -----------------------------------------------------
       ADMIN
    ----------------------------------------------------- */

    .basic_list_admin {
        align-items: flex-start;
        flex-direction: column;
    }


    .basic_list_admin_buttons {
        flex-wrap: wrap;
    }



    /* -----------------------------------------------------
       LIST
    ----------------------------------------------------- */

    .basic_list_table {
        border-top-width: 2px;
    }


    .basic_list_head {
        display: none;
    }


    .basic_list_row,
    .basic_list_row:has(.basic_list_col_check) {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 7px 15px;

        min-height: 0;

        padding: 20px 5px;
    }


    .basic_list_row:has(.basic_list_col_check) {
        grid-template-columns:
            25px
            minmax(0, 1fr)
            auto;
    }


    .basic_list_col_check {
        grid-row: 1 / 3;

        display: flex;
        align-items: flex-start;

        padding-top: 4px;
    }


    .basic_list_col_num {
        display: none;
    }


    .basic_list_col_subject {
        grid-column: 1 / 2;

        padding: 0;
    }


    .basic_list_row:has(.basic_list_col_check)
    .basic_list_col_subject {
        grid-column: 2 / 3;
    }


    .basic_list_col_date {
        grid-column: 2 / 3;
        grid-row: 1;

        align-self: center;

        padding-left: 10px;

        text-align: right;

        white-space: nowrap;
    }


    .basic_list_row:has(.basic_list_col_check)
    .basic_list_col_date {
        grid-column: 3 / 4;
    }


    .basic_list_col_hit {
        display: none;
    }


    .basic_list_subject_link {
        display: flex;
        flex-wrap: wrap;

        gap: 5px;
    }


    .basic_list_subject_text {
        flex: 1 1 100%;

        font-size: 15px;

        white-space: normal;

        display: -webkit-box;
        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }


    .basic_list_row.is_notice::before {
        content: "NOTICE";

        display: inline-flex;
        align-items: center;
        justify-content: center;

        grid-column: 1 / 2;

        width: fit-content;
        height: 23px;

        margin-bottom: 3px;
        padding: 0 8px;

        border-radius: 20px;

        background:
            rgba(
                228,
                23,
                125,
                .07
            );

        font-size: 14px;
        font-weight: 700;

        color: var(--color-primary);
    }


    .basic_list_row.is_notice
    .basic_list_col_subject {
        grid-column: 1 / 2;
    }


    .basic_list_row.is_notice:has(.basic_list_col_check)::before {
        grid-column: 2 / 3;
    }


    .basic_list_row.is_notice:has(.basic_list_col_check)
    .basic_list_col_subject {
        grid-column: 2 / 3;
    }



    /* -----------------------------------------------------
       VIEW HEADER
    ----------------------------------------------------- */

    .basic_view_header {
        padding:
            25px 5px
            27px;
    }


    .basic_view_title {
        font-size: 25px;
    }


    .basic_view_meta {
        gap: 18px;

        margin-top: 18px;
    }



    /* -----------------------------------------------------
       VIEW CONTENT
    ----------------------------------------------------- */

    .basic_view_content {
        min-height: 250px;

        padding:
            45px 5px
            55px;
    }


    .basic_view_body {
        font-size: 15px;
        line-height: 1.85;
    }



    /* -----------------------------------------------------
       FILE / LINK
    ----------------------------------------------------- */

    .basic_view_files,
    .basic_view_links {
        display: block;
    }


    .basic_view_section_label {
        padding: 15px;

        border-bottom:
            1px solid
            var(--basic-line);
    }


    .basic_view_file_list,
    .basic_view_link_list {
        padding: 8px 15px;
    }


    .basic_view_file,
    .basic_view_link {
        min-height: 48px;
    }


    .basic_view_file_size {
        display: none;
    }



    /* -----------------------------------------------------
       PREV / NEXT
    ----------------------------------------------------- */

    .basic_view_navigation {
        margin-top: 45px;
    }


    .basic_view_navigation_item {
        grid-template-columns:
            65px
            minmax(0, 1fr)
            20px;

        min-height: 62px;
    }


    .basic_view_navigation_label {
        padding-left: 5px;
    }


    .basic_view_navigation_title {
        padding: 0 10px;

        font-size: 14px;
    }



    /* -----------------------------------------------------
       VIEW BUTTON
    ----------------------------------------------------- */

    .basic_view_buttons {
        align-items: flex-start;
        flex-direction: column-reverse;

        margin-top: 22px;
    }


    .basic_view_buttons_left,
    .basic_view_buttons_right {
        width: 100%;
    }


    .basic_view_buttons_right {
        justify-content: flex-end;
    }



    /* -----------------------------------------------------
       COMMENT
    ----------------------------------------------------- */

    .basic_comment {
        margin-top: 60px;
    }


    .basic_comment_inner {
        padding: 22px 5px;
    }


    .basic_comment_item.is_reply {
        margin-left:
            calc(
                var(--comment-depth) * 12px
            );
    }


    .basic_comment_info {
        align-items: flex-start;
    }


    .basic_comment_meta {
        flex: 0 0 auto;
    }


    .basic_comment_ip {
        display: none;
    }


    .basic_comment_write {
        padding: 22px 15px;
    }


    .basic_comment_write_bottom {
        align-items: stretch;
        flex-direction: column;
    }


    .basic_comment_guest {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .basic_comment_guest
    .frm_input {
        width: 100%;
    }


    .basic_comment_submit {
        flex: none;

        width: 100%;
        height: 48px;
    }



    /* -----------------------------------------------------
       WRITE HEADER
    ----------------------------------------------------- */

    .basic_write_header {
        padding-bottom: 25px;
    }


    .basic_write_header h2 {
        font-size: 25px;
    }


    .basic_write_header p {
        font-size: 14px;
    }



    /* -----------------------------------------------------
       WRITE SECTION
    ----------------------------------------------------- */

    .basic_write_section {
        padding: 32px 0;
    }


    .basic_write_section_title {
        margin-bottom: 18px;
    }


    .basic_write_section_title h3 {
        font-size: 17px;
    }



    /* -----------------------------------------------------
       FILE
    ----------------------------------------------------- */

    .basic_write .filebox {
        gap: 5px;
    }


    .basic_write .filebox label {
        flex-basis: 85px;
    }


    .basic_existing_file {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }



    /* -----------------------------------------------------
       WRITE BUTTON
    ----------------------------------------------------- */

    .basic_write_buttons {
        padding-top: 30px;
    }


    .basic_write_buttons
    .btn_cancel,
    .basic_write_buttons
    .btn_submit {
        flex: 1;

        min-width: 0;
    }


}


/* =========================================================
   07. RESPONSIVE - SMALL MOBILE
========================================================= */

@media all and (max-width: 480px) {


    .basic_search_select {
        flex-basis: 100px;
    }


    .basic_search_input input {
        padding: 0 8px;
    }


    .basic_search_button {
        flex-basis: 45px;
    }


    .basic_view_title {
        font-size: 23px;
    }


    .basic_view_meta {
        flex-wrap: wrap;

        gap: 8px 15px;
    }


    .basic_view_btn {
        min-width: 68px;

        padding: 0 12px;
    }


    .basic_comment_guest {
        grid-template-columns: 1fr;
    }


}