@charset "utf-8";

/* =========================================================
   공통
========================================================= */
.notice-board-list,
.notice-board-list *,
.notice-view-page,
.notice-view-page *,
.notice-view,
.notice-view *,
.notice-write,
.notice-write * {
    box-sizing: border-box;
}

html body {
    background: #ededed;
}

.notice-board-list,
.notice-view-page,
.notice-write {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    color: #111;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        Arial,
        sans-serif;
}

/* =========================================================
   목록 상단 - 이용후기와 동일한 구조
========================================================= */
.notice-board-list {
    min-height: 100vh;
    padding: 42px 24px 90px;
    background: #fff;
    box-shadow: 0 0 28px rgba(0, 0, 0, .08);
}

.notice-title-area {
    margin-bottom: 34px;
    text-align: center;
}

.notice-view-page-title,
.notice-write-page-title {
    margin-bottom: 34px;
}

.notice-title-area h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -1.1px;
}

.notice-title-area p {
    margin: 0;
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}

.notice-top-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.notice-list-total {
    flex-shrink: 0;
    color: #666;
    font-size: 15px;
    white-space: nowrap;
}

.notice-list-total strong {
    color: #111;
    font-weight: 400;
}

/* =========================================================
   분류
========================================================= */
.notice-category {
    margin: -6px 0 20px;
}

.notice-category h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.notice-category ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0 0 5px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.notice-category ul::-webkit-scrollbar {
    display: none;
}

.notice-category li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.notice-category a {
    display: inline-flex;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #e1e7eb;
    border-radius: 999px;
    background: #fff;
    color: #647985;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.notice-category #bo_cate_on,
.notice-category a:hover,
.notice-category a:focus {
    border-color: #17212a;
    background: #17212a;
    color: #fff;
}

/* =========================================================
   목록 검색 - 이용후기와 동일한 둥근 검색창
========================================================= */
.notice-search-form {
    width: 100%;
    max-width: 390px;
    margin: 0;
}

.notice-search-box {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    padding: 0 8px 0 18px;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    background: #fff;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.notice-search-box:focus-within {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}

.notice-search-box input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    font-size: 14px;
}

.notice-search-box input[type="text"]::placeholder {
    color: #aaa;
}

.notice-search-reset {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    color: #999;
    font-size: 19px;
    text-decoration: none;
}

.notice-search-box button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease;
}

.notice-search-box button:hover,
.notice-search-box button:focus {
    outline: none;
    background: #f3f3f3;
    color: #111;
}

.notice-search-box button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   공지 목록
========================================================= */
.notice-list {
    margin: 0;
    padding: 0 18px;
    overflow: hidden;
    border: 1px solid #e3e8eb;
    border-radius: 16px;
    background: #fff;
    list-style: none;
    box-shadow: 0 8px 24px rgba(42, 67, 82, .055);
}

.notice-list-item {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf0f2;
}

.notice-list-item:last-child {
    border-bottom: 0;
}

.notice-list-check {
    display: grid;
    width: 30px;
    flex: 0 0 30px;
    place-items: center;
}

.notice-list-link {
    display: flex;
    min-width: 0;
    min-height: 53px;
    flex: 1;
    align-items: center;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.notice-list-subject {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #121a20;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list-item.is-fixed
.notice-list-subject {
    font-weight: 700;
}

.notice-list-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.notice-list-date {
    color: #8e9db1;
    font-size: 11px;
    white-space: nowrap;
}

.notice-badge,
.notice-view-badge {
    display: inline-flex;
    min-width: 34px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.notice-badge.notice,
.notice-view-badge.notice {
    background: #eef4fb;
    color: #6683a2;
}

.notice-badge.event,
.notice-view-badge.event {
    background: #fff2df;
    color: #f08a00;
}

.notice-badge.update,
.notice-view-badge.update {
    background: #e8f1ff;
    color: #276cf0;
}

.notice-reply,
.notice-secret,
.notice-comment-count {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    color: #7f93a0;
    font-size: 10px;
}

.notice-comment-count {
    margin-right: 0;
    margin-left: 4px;
    color: #2787df;
}

.notice-list-empty {
    padding: 65px 20px;
    border: 1px solid #e3e8eb;
    border-radius: 16px;
    background: #fff;
    color: #8999a4;
    text-align: center;
}

.notice-list-empty strong {
    display: block;
    color: #344550;
    font-size: 15px;
    font-weight: 600;
}

.notice-list-empty p {
    margin: 7px 0 0;
    font-size: 12px;
}

/* =========================================================
   목록 하단
========================================================= */
.notice-list-bottom {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.notice-select-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-self: start;
}

.notice-select-button,
.notice-list-button,
.notice-view-button,
.notice-write-button {
    display: inline-flex;
    min-width: 70px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #dfe6ea;
    border-radius: 10px;
    background: #fff;
    color: #50636f;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.notice-list-button.primary,
.notice-view-button.primary,
.notice-write-button.primary {
    border-color: #17212a;
    background: #17212a;
    color: #fff;
}

.notice-list-paging {
    text-align: center;
}

.notice-list-paging .pg_wrap {
    display: inline-block;
}

.notice-list-buttons {
    display: flex;
    gap: 6px;
    justify-self: end;
}

/* =========================================================
   상세
========================================================= */
.notice-view-page {
    min-height: 100vh;
    padding: 42px 24px 90px;
    background: #fff;
    box-shadow: 0 0 28px rgba(0, 0, 0, .08);
}

.notice-view {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e3e8eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(42, 67, 82, .055);
}

.notice-view-header {
    padding: 20px 20px 23px;
    border-bottom: 1px solid #edf0f2;
}

.notice-view-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    color: #8797a2;
    font-size: 11px;
}

.notice-view-breadcrumb a {
    color: #8797a2;
    text-decoration: none;
}

.notice-view-breadcrumb span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-view-breadcrumb svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}

.notice-view-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notice-view-title {
    min-width: 0;
    flex: 1;
    margin: 0;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.035em;
    word-break: keep-all;
}

.notice-view-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #8496a5;
    font-size: 11px;
}

.notice-view-files,
.notice-view-links {
    margin: 20px 20px 0;
    padding: 15px;
    border-radius: 12px;
    background: #f5f8fa;
}

.notice-view-files h2,
.notice-view-links h2 {
    margin: 0 0 10px;
    color: #50636f;
    font-size: 12px;
    font-weight: 600;
}

.notice-view-files ul,
.notice-view-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notice-view-files li + li,
.notice-view-links li + li {
    margin-top: 7px;
}

.notice-view-files a,
.notice-view-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #466678;
    font-size: 11px;
    text-decoration: none;
}

.notice-view-files svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.notice-view-files small {
    margin-left: auto;
    color: #93a3ac;
}

.notice-view-article {
    min-height: 250px;
}

.notice-view-content {
    min-height: 250px;
    padding: 28px 20px 40px;
    overflow: hidden;
    color: #22384d;
    font-size: 14px;
    line-height: 1.82;
    word-break: break-word;
}

.notice-view-content h1,
.notice-view-content h2,
.notice-view-content h3,
.notice-view-content h4 {
    margin: 30px 0 13px;
    color: #111;
    line-height: 1.4;
}

.notice-view-content p {
    margin: 0 0 13px;
}

.notice-view-content ul,
.notice-view-content ol {
    margin: 12px 0;
    padding-left: 21px;
}

.notice-view-content img,
.notice-view-content video,
.notice-view-content iframe,
.notice-view-content table {
    max-width: 100% !important;
}

.notice-view-content img {
    height: auto !important;
}

.notice-view-navigation {
    border-top: 1px solid #edf0f2;
}

.notice-view-nav-row {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid #edf0f2;
    color: inherit;
    text-decoration: none;
}

.notice-view-nav-row:last-child {
    border-bottom: 0;
}

.notice-view-nav-label {
    width: 48px;
    flex: 0 0 48px;
    color: #8798a3;
    font-size: 11px;
}

.notice-view-nav-subject {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #364955;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-view-nav-subject.is-empty {
    color: #abb6bd;
}

.notice-view-nav-row time {
    color: #9aa9b2;
    font-size: 10px;
}

.notice-view-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px;
    border-top: 1px solid #edf0f2;
}

/* =========================================================
   글쓰기
========================================================= */
.notice-write {
    min-height: 100vh;
    padding: 42px 24px 90px;
    background: #fff;
    box-shadow: 0 0 28px rgba(0, 0, 0, .08);
}

.notice-write form {
    padding: 22px;
    border: 1px solid #e3e8eb;
    border-radius: 16px;
    background: #fff;
}

.notice-write-field {
    margin-bottom: 18px;
}

.notice-write-field > label {
    display: block;
    margin-bottom: 8px;
    color: #344550;
    font-size: 12px;
    font-weight: 600;
}

.notice-write-field > label strong {
    margin-left: 3px;
    color: #e44747;
    font-size: 10px;
}

.notice-write input[type="text"],
.notice-write input[type="password"],
.notice-write input[type="email"],
.notice-write select,
.notice-write textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #dce4e8;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
}

.notice-write textarea {
    min-height: 220px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.notice-write input:focus,
.notice-write select:focus,
.notice-write textarea:focus {
    border-color: #17212a;
    box-shadow: 0 0 0 3px rgba(23, 33, 42, .05);
}

.notice-write-user-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.notice-write-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 10px;
    background: #f6f8f9;
    list-style: none;
}

.notice-write-option {
    display: flex;
    align-items: center;
}

.notice-write-option label {
    color: #536874;
    font-size: 12px;
    cursor: pointer;
}

.notice-write-option input {
    margin-right: 5px;
}

.notice-write-subject-wrap {
    position: relative;
    display: flex;
    gap: 7px;
}

.notice-write-subject-wrap > input {
    min-width: 0;
    flex: 1;
}

.notice-autosave-button {
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid #dce4e8;
    border-radius: 9px;
    background: #fff;
    color: #607582;
    font-size: 11px;
    cursor: pointer;
}

.notice-write-editor {
    width: 100%;
    overflow: hidden;
}

.notice-write-editor iframe,
.notice-write-editor textarea {
    max-width: 100% !important;
}

.notice-write-help {
    margin: -2px 0 8px;
    color: #8a9aa4;
    font-size: 11px;
}

#char_count_wrap {
    margin-top: 6px;
    color: #8a9aa4;
    font-size: 11px;
    text-align: right;
}

.notice-file-field {
    padding: 14px;
    border-radius: 10px;
    background: #f6f8f9;
}

.notice-file-input {
    display: block;
    width: 100%;
    color: #617682;
    font-size: 12px;
}

.notice-file-field input[type="text"] {
    margin-top: 9px;
}

.notice-file-delete {
    display: block;
    margin-top: 9px;
    color: #7c8e99;
    font-size: 11px;
}

.notice-write-captcha {
    margin-top: 18px;
}

.notice-write-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #edf0f2;
}

.notice-write-button:disabled {
    cursor: wait;
    opacity: .6;
}

/* autosave */
#autosave_pop {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    z-index: 20;
    width: 330px;
    max-width: 100%;
    border: 1px solid #dce4e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

#autosave_pop strong {
    display: block;
    padding: 13px;
    color: #344550;
    font-size: 12px;
}

#autosave_pop ul {
    max-height: 180px;
    margin: 0;
    padding: 8px 13px;
    overflow-y: auto;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    list-style: none;
}

#autosave_pop li {
    padding: 7px 0;
    font-size: 11px;
}

#autosave_pop .autosave_close {
    width: 100%;
    height: 36px;
    border: 0;
    background: #fff;
    color: #718590;
    cursor: pointer;
}

/* =========================================================
   반응형
========================================================= */
@media (max-width: 680px) {
    .notice-board-list {
        padding: 34px 16px 78px;
    }

    .notice-title-area {
        margin-bottom: 28px;
    }

    .notice-title-area h2 {
        font-size: 28px;
    }

    .notice-title-area p {
        font-size: 14px;
    }

    .notice-top-area {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .notice-list-total {
        font-size: 14px;
    }

    .notice-search-form {
        max-width: none;
    }

    .notice-list {
        padding: 0 13px;
    }

    .notice-list-link {
        min-height: 67px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 11px 0;
    }

    .notice-list-subject {
        width: 100%;
        flex: none;
        font-size: 13px;
    }

    .notice-list-meta {
        width: 100%;
        justify-content: flex-end;
    }

    .notice-list-date {
        font-size: 10px;
    }

    .notice-search-box {
        height: 46px;
    }

    .notice-search-box input[type="text"] {
        font-size: 13px;
    }

    .notice-list-bottom {
        display: flex;
        flex-direction: column;
    }

    .notice-select-actions,
    .notice-list-buttons {
        justify-content: center;
    }

    .notice-list-paging {
        order: -1;
        width: 100%;
    }

    .notice-view-page,
    .notice-write {
        min-height: 100vh;
        padding: 34px 16px 78px;
    }

    .notice-view-page-title,
    .notice-write-page-title {
        margin-bottom: 28px;
    }

    .notice-view {
        width: 100%;
        margin: 0;
        border-radius: 14px;
    }

    .notice-view-header {
        padding: 18px 15px 20px;
    }

    .notice-view-title {
        font-size: 20px;
    }

    .notice-view-content {
        padding: 23px 15px 32px;
        font-size: 13px;
    }

    .notice-view-files,
    .notice-view-links {
        margin-right: 15px;
        margin-left: 15px;
    }

    .notice-view-nav-row {
        padding: 0 15px;
    }

    .notice-view-nav-row time {
        display: none;
    }

    .notice-write form {
        padding: 16px 13px;
    }

    .notice-write-user-grid {
        grid-template-columns: 1fr;
    }

    .notice-write-subject-wrap {
        display: block;
    }

    .notice-autosave-button {
        width: 100%;
        height: 40px;
        margin-top: 7px;
    }

    #autosave_pop {
        top: 94px;
        left: 0;
        right: auto;
        width: 100%;
    }

    .notice-write-actions
    .notice-write-button {
        width: calc(50% - 4px);
    }
}
