/* ==========================================================================
   works 게시판 스킨 (skin/board/works_v2/wk.css)
   - 클래스는 모두 .wk- 접두사 (사이트 기본 CSS와 충돌 방지)
   - 색상은 .wk 의 변수에서 관리
   - 글꼴, 그림자, 장식 테두리는 쓰지 않음
   ========================================================================== */

.wk {
    --wk-ink: #14201A;
    --wk-muted: #55645A;
    --wk-bg: #F4F6F1;
    --wk-chip: #E4E9DF;
    --wk-dark: #0E1F17;
    --wk-dark-2: #16301F;
    --wk-lime: #A4E23A;
    --wk-green: #3C7A1E;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    box-sizing: border-box;
    color: var(--wk-ink);
    word-break: keep-all;
}




/* 리셋은 :where() 로 감싸 우선순위를 0으로 둔다 (.wk-* 클래스가 항상 이기도록) */
.wk :where(ul, ol, dl, dd, dt, p, h1, h2) { margin: 0; padding: 0; }
.wk :where(ul, ol) { list-style: none; }
.wk :where(a) { color: inherit; }
.wk :where(img) { max-width: 100%; }
.wk :where(button, input, select, textarea) { font: inherit; }
.wk a, .wk a:hover, .wk a:focus { text-decoration: none; }
/* ---------- 머리말 ---------- */
.sv-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--sv-green); }
.sv-head { text-align: center; padding-bottom: 40px; }
.sv-head__title { font-size: 40px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.2; text-transform: uppercase; }
.sv-head__desc { margin-top: 12px; font-size: 16px; color: var(--sv-muted); }


/* ---------- 공통 ---------- */
.wk-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 24px; border: 0; border-radius: 0;
    background: var(--wk-lime); color: var(--wk-dark);
    font-size: 15px; font-weight: 800; letter-spacing: 0.04em;
    cursor: pointer; box-sizing: border-box;
}
.wk a.wk-btn:hover, .wk button.wk-btn:hover { background: #B6EE55; color: var(--wk-dark); }
.wk .wk-btn--dark { background: var(--wk-dark); color: var(--wk-lime); }
.wk a.wk-btn--dark:hover, .wk button.wk-btn--dark:hover { background: var(--wk-dark-2); color: var(--wk-lime); }
.wk .wk-btn--soft { background: var(--wk-chip); color: var(--wk-ink); }
.wk a.wk-btn--soft:hover, .wk button.wk-btn--soft:hover { background: #D5DDCE; color: var(--wk-ink); }

.wk-chip { display: inline-block; padding: 6px 12px; background: var(--wk-chip); color: var(--wk-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.wk-chip--lime { background: var(--wk-lime); color: var(--wk-dark); }

/* ---------- 목록: 분류 / 검색 ---------- */
.wk-cate ul { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-cate a { display: flex; align-items: center; min-height: 44px; padding: 0 22px; background: var(--wk-chip); color: var(--wk-ink); font-size: 15px; font-weight: 700; text-transform: uppercase; }
.wk .wk-cate a:hover { background: #D5DDCE; color: var(--wk-ink); }
.wk .wk-cate #bo_cate_on { background: var(--wk-dark); color: var(--wk-lime); border: 0; box-shadow: none; }

.wk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.wk-count { font-size: 15px; color: var(--wk-muted); }
.wk-count strong { color: var(--wk-ink); }
.wk-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.wk-search select,
.wk-search input[type="text"] { height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: var(--wk-bg); color: var(--wk-ink); font-size: 15px; box-sizing: border-box; }
.wk-search input[type="text"] { width: 200px; max-width: 100%; }

/* ---------- 목록: 갤러리 ---------- */
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }

.wk-thumb { position: relative; overflow: hidden; aspect-ratio: var(--wk-ratio, 1 / 1); background: var(--wk-dark-2); }
.wk-thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.wk-item:hover .wk-thumb__img,
.wk-item:focus-within .wk-thumb__img { transform: scale(1.05); }

/* 이미지가 없을 때 자리표시 색 */
.wk-tone-0 { background: #1E4A30; }
.wk-tone-1 { background: #24503A; }
.wk-tone-2 { background: #2C5A44; }
.wk-tone-3 { background: #1A3F4A; }
.wk-tone-4 { background: #2A3F5A; }
.wk-tone-5 { background: #3A4A2A; }

/* 마우스 오버 안내 */
.wk-over {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
    padding: 28px; box-sizing: border-box;
    background: rgba(8, 24, 16, 0.88); color: #FFFFFF;
    opacity: 0; transition: opacity 0.25s;
}
.wk-item:hover .wk-over,
.wk-item:focus-within .wk-over { opacity: 1; }

.wk-over__cat { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wk-lime); }
.wk-over__title { max-width: 100%; font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wk-over__desc { font-size: 15px; line-height: 1.6; color: #C9D6CC; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wk-over__meta { font-size: 13px; letter-spacing: 0.06em; color: #9DB0A2; }
.wk .wk-over__view { margin-top: 8px; }

.wk-notice { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 4px 10px; background: var(--wk-lime); color: var(--wk-dark); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.wk-chk { position: absolute; top: 4px; left: 4px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 144px; height: 44px; /*background: rgba(255, 255, 255, 0.9);*/ }
.wk-chk input { width: 20px; height: 20px; margin: 0; }
.wk-chk input[type=text]{  width:120px; margin-left:5px;}
.wk-empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; font-size: 16px; color: var(--wk-muted); }

/* 목록 하단 버튼 */
.wk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; }
.wk-actions__left, .wk-actions__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wk-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.wk-all input { width: 20px; height: 20px; margin: 0; }

/* 페이징 (그누보드 기본 마크업) */
.wk .pg_wrap { float: none; clear: both; display: block; margin: 48px 0 0; text-align: center; }
.wk .pg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wk .pg a, .wk .pg strong { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 0; box-shadow: none; background: var(--wk-chip); color: var(--wk-ink); font-size: 14px; font-weight: 700; line-height: 1; box-sizing: border-box; }
.wk .pg a:hover { background: #D5DDCE; color: var(--wk-ink); }
.wk .pg .pg_current { background: var(--wk-dark); color: var(--wk-lime); }

/* 터치 기기: 마우스 오버가 없으므로 제목 + VIEW 를 항상 아래에 표시 */
@media (hover: none) {
    .wk-over { opacity: 1; justify-content: flex-end; gap: 8px; padding: 16px; background: linear-gradient(to top, rgba(8, 24, 16, 0.15) 0%, rgba(8, 24, 16, 0.05) 60%, rgba(8, 24, 16, 0) 100%); }
    .wk-over__cat, .wk-over__desc, .wk-over__meta { display: none; }
    .wk-over__title { font-size: 17px; }
    .wk .wk-over__view { margin-top: 4px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .wk-thumb__img, .wk-over { transition: none; }
}

/* ---------- 상세 ---------- */
.wk-v__grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }

.wk-v__info { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; background: var(--wk-bg); box-sizing: border-box; }
.wk-v__back { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--wk-muted); }
.wk .wk-v__back:hover { color: var(--wk-green); }
.wk-v__title { max-width: 100%; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.wk-v__small { margin-top: -8px; max-width: 100%; font-size: 16px; line-height: 1.6; color: var(--wk-muted); overflow-wrap: anywhere; }

.wk-v__meta { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.wk-v__meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 16px; background: var(--wk-white, #FFFFFF); }
.wk-v__meta dt { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--wk-muted); }
.wk-v__meta dd { font-size: 15px; font-weight: 700; text-align: right; }

.wk-v__block { width: 100%; }
.wk-v__label { margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--wk-muted); }
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chips li { padding: 7px 12px; background: var(--wk-chip); font-size: 13px; font-weight: 700; }
.wk-chips--dark li { background: var(--wk-dark); color: var(--wk-lime); }

.wk-v__links { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.wk .wk-btn--wide { width: 100%; flex-direction: column; gap: 2px; padding: 12px 20px; }
.wk .wk-btn--wide small { font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: 0.75; }

.wk-v__shots { display: flex; flex-direction: column; gap: 16px; }
.wk-v__shot img { display: block; width: 100%; height: auto; }
.wk-v__shot a { display: block; }

.wk-v__content { margin-top: 48px; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.wk-v__shots:empty + .wk-v__content { margin-top: 0; }
.wk-v__content img { max-width: 100%; height: auto; }
.wk-v__content table { max-width: 100%; }

.wk-v__files { margin-top: 48px; }
.wk-v__files li + li { margin-top: 6px; }
.wk-v__files a { display: inline-block; padding: 12px 16px; background: var(--wk-bg); font-size: 15px; font-weight: 700; }
.wk .wk-v__files a:hover { background: var(--wk-chip); }
.wk-v__files small { font-weight: 500; color: var(--wk-muted); }

.wk-v__nav { margin-top: 64px; display: flex; flex-direction: column; gap: 8px; }
.wk-v__nav li { display: flex; align-items: center; gap: 20px; min-height: 56px; padding: 0 20px; background: var(--wk-bg); }
.wk-v__nav span { flex: 0 0 56px; font-size: 13px; font-weight: 800; color: var(--wk-muted); }
.wk-v__nav a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk .wk-v__nav a:hover { color: var(--wk-green); }

.wk-v__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* ---------- 글쓰기 ---------- */
.wk-w { max-width: 960px; }
.wk-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; color: var(--wk-green); }
.wk-w__title { margin-top: 8px; font-size: 36px; font-weight: 800; letter-spacing: -0.01em; }

.wk-w__sec { margin-top: 24px; padding: 32px; background: var(--wk-bg); display: flex; flex-direction: column; gap: 20px; }
.wk-w__head + form .wk-w__sec:first-of-type { margin-top: 32px; }
.wk-w__head { margin-bottom: 0; }
.wk-w__sec-title { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--wk-muted); }
.wk-w__sec-title small { margin-left: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.wk-w__sec-title--gap { margin-top: 12px; }

.wk-w__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wk-w__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-w__row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wk-w__row--narrow { max-width: 200px; }
.wk-w__label { font-size: 14px; font-weight: 700; }
.wk-w__label small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--wk-muted); }
.wk-w__hint { font-size: 14px; color: var(--wk-muted); }

.wk .wk-input { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 0; box-shadow: none; background: #FFFFFF; color: var(--wk-ink); font-size: 15px; box-sizing: border-box; }
.wk .wk-input:focus { outline: 2px solid var(--wk-green); outline-offset: 0; }
.wk .wk-input--file { height: auto; min-height: 48px; padding: 10px 14px; }

/* 제목 + 임시저장 버튼 */
.wk-w__autosave { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.wk-w__autosave .wk-input { flex: 1 1 260px; width: auto; }

/* 임시 저장된 글 팝업 (그누보드 autosave.js 가 표시/숨김) */
.wk-w #autosave_pop { display: none; position: absolute; top: 100%; right: 0; z-index: 50; width: min(360px, 100%); margin-top: 8px; padding: 16px; box-sizing: border-box; background: #FFFFFF; color: var(--wk-ink); }
.wk-w #autosave_pop strong { display: block; margin-bottom: 8px; font-size: 14px; }
.wk-w #autosave_pop ul { max-height: 240px; overflow: auto; }
.wk-w #autosave_pop li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 0; font-size: 13px; }
.wk-w #autosave_pop li a { flex: 1 1 100%; font-weight: 700; }
.wk-w #autosave_pop button { min-height: 32px; padding: 0 10px; border: 0; background: var(--wk-chip); color: var(--wk-ink); font-size: 12px; cursor: pointer; }
.wk-w #autosave_pop .autosave_close { min-height: 32px; background: transparent; }

/* 체크박스 칩 (실제 체크박스는 화면 밖에 두고 span 으로 표시) */
.wk-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-pick { position: relative; display: inline-flex; }
.wk-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.wk-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: #FFFFFF; color: var(--wk-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.wk-pick:hover span { background: var(--wk-chip); }
.wk-pick input:checked + span { background: var(--wk-dark); color: var(--wk-lime); }
.wk-pick input:focus-visible + span { outline: 2px solid var(--wk-green); outline-offset: 2px; }
.wk-pick--del span { background: var(--wk-chip); font-weight: 600; }

/* 에디터 / 파일 */
.wk-w__editor { min-width: 0; background: #FFFFFF; }
.wk-w__editor #char_count_desc { padding: 12px 16px 0; font-size: 14px; color: var(--wk-muted); }
.wk-w__editor #char_count_wrap { padding: 8px 16px 12px; text-align: right; font-size: 13px; color: var(--wk-muted); }
.wk-w__files { display: flex; flex-direction: column; gap: 12px; }
.wk-w__file { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.wk-w__file .wk-w__label { grid-row: 1; }
.wk-w__file .wk-input, .wk-w__file .wk-pick { grid-column: 2; }

.wk-w__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.wk .wk-btn--lg { min-height: 56px; padding: 0 40px; font-size: 16px; }
.wk button[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 767px) {
    .wk-w__title { font-size: 28px; }
    .wk-w__sec { padding: 24px 20px; }
    .wk-w__grid, .wk-w__grid--3 { grid-template-columns: 1fr; }
    .wk-w__row--narrow { max-width: none; }
    .wk-w__file { grid-template-columns: 1fr; }
    .wk-w__file .wk-w__label, .wk-w__file .wk-input, .wk-w__file .wk-pick { grid-column: 1; grid-row: auto; }
    .wk-w__actions .wk-btn { flex: 1 1 auto; }
	
    .sv-head__title { font-size: 30px; }
	
}

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
    .wk-v__grid { grid-template-columns: 1fr; gap: 32px; }
    .wk-v__info { position: static; width: 100%; }
}

@media (max-width: 767px) {
    .wk { padding: 32px 20px 56px; }
    .wk-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
    .wk-over { padding: 16px; gap: 6px; }
    .wk-over__title { font-size: 16px; }
    .wk-over__desc { font-size: 13px; -webkit-line-clamp: 2; }
    .wk-search { width: 100%; }
    .wk-search input[type="text"] { flex: 1 1 0; width: auto; min-width: 0; }
    .wk-actions__left, .wk-actions__right { width: 100%; }
    .wk-v__info { padding: 24px; }
    .wk-v__title { font-size: 26px; }
    .wk-v__content { margin-top: 32px; }
    .wk-v__nav { margin-top: 40px; }
    .wk-v__actions .wk-btn { flex: 1 1 auto; }
}
