.junsung-resource {
    color: #fff;
}

.junsung-resource__header {
    margin-bottom: 42px;
}

.junsung-resource__eyebrow {
    margin: 0 0 12px;
    color: #1693f4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
}

.junsung-resource__header h1,
.junsung-resource-view__header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.junsung-resource__table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: #202020;
    -webkit-overflow-scrolling: touch;
}

.junsung-resource-table {
    width: 100%;
    min-width: 650px;
    border-spacing: 0;
    border-collapse: collapse;
    color: #e7e7e7;
    table-layout: fixed;
}

.junsung-resource-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.junsung-resource-table__number {
    width: 10%;
}

.junsung-resource-table__subject {
    width: auto;
}

.junsung-resource-table__file {
    width: 12%;
}

.junsung-resource-table__date {
    width: 17%;
}

.junsung-resource-table__manage {
    width: 15%;
}

.junsung-resource-table th,
.junsung-resource-table td {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    line-height: 1.55;
    text-align: center;
    overflow-wrap: anywhere;
}

.junsung-resource-table th {
    border-bottom-color: rgba(22, 147, 244, .55);
    background: rgba(22, 147, 244, .1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.junsung-resource-table tbody tr {
    transition: background-color .2s ease;
}

.junsung-resource-table tbody tr:hover,
.junsung-resource-table tbody tr.is-notice {
    background: rgba(255, 255, 255, .035);
}

.junsung-resource-table tbody tr:last-child td {
    border-bottom: 0;
}

.junsung-resource-table__subject-cell {
    text-align: left;
}

.junsung-resource-table__subject-cell a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.junsung-resource-table__subject-cell a:hover,
.junsung-resource-table__subject-cell a:focus-visible {
    color: #8dcaff;
}

.junsung-resource-table__number-cell strong,
.junsung-resource-table__file-cell span:not(.junsung-resource-table__none) {
    color: #1693f4;
    font-size: 13px;
    font-weight: 700;
}

.junsung-resource-table__none {
    color: #777;
}

.junsung-resource-table__manage-cell {
    white-space: nowrap;
}

.junsung-resource-table__manage-cell a {
    margin: 0 5px;
    color: #8dcaff;
    font-size: 13px;
    text-decoration: none;
}

.junsung-resource-table__manage-cell .junsung-resource-table__delete {
    color: #ffb1b1;
}

.junsung-resource-table__manage-cell a:hover,
.junsung-resource-table__manage-cell a:focus-visible {
    text-decoration: underline;
}

.junsung-resource-table td.junsung-resource-table__empty {
    padding: 56px 24px;
    color: #a7a7a7;
    text-align: center;
}

.junsung-resource__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
}

.junsung-resource-search {
    display: flex;
    max-width: 520px;
    flex: 1 1 520px;
}

.junsung-resource-search input,
.junsung-resource-search button,
.junsung-resource-form input[type="text"],
.junsung-resource-form input[type="file"] {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: #202020;
    color: #fff;
    font: inherit;
}

.junsung-resource-search input {
    min-width: 0;
    flex: 1;
    padding: 0 16px;
    border-radius: 10px 0 0 10px;
}

.junsung-resource-search button {
    padding: 0 20px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #1693f4;
    font-weight: 700;
    cursor: pointer;
}

.junsung-resource-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.junsung-resource-button:hover,
.junsung-resource-button:focus-visible {
    border-color: #1693f4;
}

.junsung-resource-button--primary {
    border-color: #1693f4;
    background: #1693f4;
}

.junsung-resource-button--danger {
    border-color: rgba(255, 103, 103, .6);
    color: #ffb1b1;
}

.junsung-resource-pagination {
    margin-top: 46px;
    text-align: center;
}

.junsung-resource-pagination a,
.junsung-resource-pagination strong {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    border-radius: 50%;
    color: #d6d6d6;
    text-decoration: none;
}

.junsung-resource-pagination strong {
    background: #1693f4;
    color: #fff;
}

.junsung-resource-view__header {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.junsung-resource-view__header time {
    display: block;
    margin-top: 18px;
    color: #9f9f9f;
    font-size: 14px;
}

.junsung-resource-view__content {
    min-height: 220px;
    padding: 42px 0 52px;
    color: #e7e7e7;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.junsung-resource-view__content img {
    max-width: 100%;
    height: auto;
}

.junsung-resource-view__files {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: #202020;
}

.junsung-resource-view__files h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
}

.junsung-resource-view__files ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.junsung-resource-view__files li + li {
    margin-top: 10px;
}

.junsung-resource-download {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}

.junsung-resource-download span {
    min-width: 0;
}

.junsung-resource-download strong {
    display: block;
    overflow-wrap: anywhere;
}

.junsung-resource-download small {
    display: block;
    margin-top: 3px;
    color: #9f9f9f;
}

.junsung-resource-download b {
    flex: 0 0 auto;
    color: #1693f4;
    font-size: 14px;
}

.junsung-resource-download:hover,
.junsung-resource-download:focus-visible {
    border-color: #1693f4;
}

.junsung-resource-view__actions,
.junsung-resource-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.junsung-resource-form {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: #202020;
}

.junsung-resource-form__field + .junsung-resource-form__field,
.junsung-resource-form__files {
    margin-top: 30px;
}

.junsung-resource-form__field > label,
.junsung-resource-file-field > label:first-child {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

.junsung-resource-form__field > label span {
    color: #1693f4;
    font-size: 13px;
}

.junsung-resource-form input[type="text"] {
    width: 100%;
    padding: 0 16px;
    border-radius: 10px;
}

.junsung-resource-form__content textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: #151515;
    color: #fff;
    font: inherit;
    line-height: 1.7;
}

.junsung-resource-form__files {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.junsung-resource-form__files h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 19px;
}

.junsung-resource-form__files > p {
    margin: 0 0 20px;
    color: #a7a7a7;
}

.junsung-resource-file-field {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: #181818;
}

.junsung-resource-file-field + .junsung-resource-file-field {
    margin-top: 12px;
}

.junsung-resource-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
}

.junsung-resource-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: #1693f4;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.junsung-resource-file-field > input[type="text"] {
    margin-top: 10px;
}

.junsung-resource-file-field__current {
    margin: 12px 0 0;
    color: #cfcfcf;
    overflow-wrap: anywhere;
}

.junsung-resource-file-field__current span {
    margin-left: 6px;
    color: #8f8f8f;
    font-size: 13px;
}

.junsung-resource-file-field__delete {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #ffb1b1;
    cursor: pointer;
}

.junsung-resource-form__warning {
    padding: 16px;
    border: 1px solid rgba(255, 103, 103, .35);
    border-radius: 10px;
    color: #ffb1b1 !important;
}

.junsung-resource__table-scroll:focus-visible,
.junsung-resource-table a:focus-visible,
.junsung-resource-search input:focus-visible,
.junsung-resource-search button:focus-visible,
.junsung-resource-button:focus-visible,
.junsung-resource-download:focus-visible,
.junsung-resource-form input:focus-visible,
.junsung-resource-form textarea:focus-visible {
    outline: 2px solid #1693f4;
    outline-offset: 3px;
}

.junsung-resource-form__actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

@media (max-width: 640px) {
    .junsung-resource__header {
        margin-bottom: 28px;
    }

    .junsung-resource__table-scroll {
        overflow-x: hidden;
        border-radius: 12px;
    }

    .junsung-resource-table {
        width: 100%;
        min-width: 0;
    }

    .junsung-resource-table__number {
        width: 64px;
    }

    .junsung-resource-table__subject {
        width: auto;
    }

    .junsung-resource-table__file,
    .junsung-resource-table__date,
    .junsung-resource-table__manage,
    .junsung-resource-table th:nth-child(n + 3),
    .junsung-resource-table__file-cell,
    .junsung-resource-table__date-cell,
    .junsung-resource-table__manage-cell {
        display: none;
    }

    .junsung-resource-table th,
    .junsung-resource-table td {
        padding: 15px 10px;
    }

    .junsung-resource-table__number-cell {
        padding-right: 6px;
        padding-left: 6px;
    }

    .junsung-resource-table__subject-cell,
    .junsung-resource-table__subject-cell a {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .junsung-resource__tools {
        display: block;
        margin-top: 26px;
    }

    .junsung-resource-search {
        max-width: none;
    }

    .junsung-resource__tools > .junsung-resource-button {
        width: 100%;
        margin-top: 12px;
    }

    .junsung-resource-view__content {
        min-height: 160px;
        padding: 32px 0 40px;
        font-size: 16px;
    }

    .junsung-resource-view__files,
    .junsung-resource-form {
        padding: 22px;
    }

    .junsung-resource-download {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .junsung-resource-view__actions,
    .junsung-resource-form__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 30px;
    }
}

/* 밝은 게시판 화면 */
.junsung-resource { color: #20242a; }
.junsung-resource__header h1,
.junsung-resource-view__header h1 { color: #20242a; }
.junsung-resource__table-scroll {
    border-color: #dce3e8;
    background: #fff;
}
.junsung-resource-table { color: #303840; }
.junsung-resource-table th,
.junsung-resource-table td { border-bottom-color: #e3e8ec; }
.junsung-resource-table th {
    background: #edf7ff;
    color: #20242a;
}
.junsung-resource-table tbody tr:hover,
.junsung-resource-table tbody tr.is-notice { background: #f5faff; }
.junsung-resource-table__subject-cell a { color: #20242a; }
.junsung-resource-table td.junsung-resource-table__empty { color: #69747d; }
.junsung-resource-search input,
.junsung-resource-form input[type="text"],
.junsung-resource-form input[type="file"],
.junsung-resource-form textarea,
.junsung-resource-form select {
    border-color: #cfd8df;
    background: #fff;
    color: #20242a;
}
.junsung-resource-button {
    border-color: #c4d0d8;
    background: #fff;
    color: #20242a;
}
.junsung-resource-button--primary,
.junsung-resource-search button {
    border-color: #1693f4;
    background: #1693f4;
    color: #fff;
}
.junsung-resource-button--danger { color: #ad3f3f; }
.junsung-resource-form__field label,
.junsung-resource-view__files h3 { color: #20242a; }

.junsung-resource-view__header {
    border-bottom-color: #e3e8ec;
}

.junsung-resource__eyebrow {
    margin: 0 0 26px;
    color: #20242a;
    font-family: steb, "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

.junsung-resource-view__header h1,
.junsung-resource__header h2 {
    margin: 0;
    color: #20242a;
    font-family: stm, "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
}

.junsung-resource-view__content {
    color: #20242a;
}

.junsung-resource-view__files,
.junsung-resource-form {
    border-color: #dce3e8;
    background: #fff;
}

.junsung-resource-download {
    border-color: #dce3e8;
    color: #20242a;
}

.junsung-resource-download small,
.junsung-resource-form__files > p,
.junsung-resource-file-field__current,
.junsung-resource-file-field__current span {
    color: #69747d;
}

.junsung-resource-view__actions,
.junsung-resource-form__actions,
.junsung-resource-form__files {
    border-top-color: #e3e8ec;
}

.junsung-resource-form__field > label,
.junsung-resource-file-field > label:first-child,
.junsung-resource-form__files h3 {
    color: #20242a;
}

.junsung-resource-file-field {
    border-color: #dce3e8;
    background: #f7f9fb;
}

@media (max-width: 640px) {
    .junsung-resource__eyebrow {
        margin-bottom: 18px;
        font-size: 28px;
    }

    .junsung-resource-view__header h1,
    .junsung-resource__header h2 {
        font-size: 22px;
    }
}

/* 일반 페이지의 .pad > .title 규칙과 같은 자료실 제목 영역 */
@media (min-width: 901px) {
    .junsung-resource__header {
        position: relative;
        padding-top: 36px;
        margin-bottom: 80px;
    }

    .junsung-resource__header h1,
    .junsung-resource-view__header h1 {
        color: #20242a;
        font-family: steb, "Noto Sans KR", "Malgun Gothic", sans-serif;
        font-size: 36px;
        font-weight: 400;
        line-height: 1.4;
    }

    .junsung-resource__path {
        position: absolute;
        right: 0;
        bottom: 4px;
        margin: 0;
        color: #666;
        font-size: 14px;
    }

    .junsung-resource__path span { color: #1693f4; }
}

@media (prefers-reduced-motion: reduce) {
    .junsung-resource-table tbody tr {
        transition: none;
    }
}

.junsung-resource-view .junsung-resource-view__header h1 {
    font-family: stm, "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .junsung-resource-view .junsung-resource-view__header h1 {
        font-size: 22px;
    }
}

/* Small white labels need a darker brand-blue surface for WCAG contrast. */
.junsung-resource-search button {
    border-color: #1373c7;
    background: #1373c7;
}
