/* 인체기전칼럼 목록 전용 */
#container {
    margin:0
}
#hc-column {
    --hc-text: #242b28;
    --hc-muted: #79817c;
    --hc-line: #e1e6e1;
    --hc-accent: #496650;
    --hc-soft: #f3f6f1;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 80px;
    color: var(--hc-text);
    box-sizing: border-box;
}


.container {
    width: min(880px,100% - 56px);
    margin-inline: auto;
}

#hc-column *,
#hc-column *::before,
#hc-column *::after {
    box-sizing: border-box;
}

#hc-column a {
    color: inherit;
    text-decoration: none;
}

#hc-column button,
#hc-column input,
#hc-column select {
    font: inherit;
}

#hc-column button {
    cursor: pointer;
}

#hc-column .hc-header {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

#hc-column .hc-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--hc-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

#hc-column .hc-header h1 {
    margin: 0 0 20px;
    color: var(--hc-text);
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -1.8px;
    line-height: 1.3;
}

#hc-column .hc-header p {
    margin: 0;
    color: var(--hc-muted);
    font-size: 15px;
    line-height: 1.5;
    word-break: keep-all;
}

/* login */
#hc-column .hc-header .hc-column-write {
    padding:10px;
}
#hc-column .hc-header .hc-column-write span {display:none}


#hc-column .hc-category ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

#hc-column .hc-category a {
    display: block;
    padding: 8px 14px;
    border: 1px solid var(--hc-line);
    border-radius: 20px;
    font-size: 13px;
}

#hc-column .hc-category #bo_cate_on {
    border-color: var(--hc-accent);
    background: var(--hc-accent);
    color: #fff;
}

#hc-column .hc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--hc-line);
    border-bottom: 1px solid var(--hc-line);
}

#hc-column .hc-total {
    color: var(--hc-muted);
    font-size: 13px;
}

#hc-column .hc-total strong {
    color: var(--hc-text);
}

#hc-column .hc-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

#hc-column .hc-button,
#hc-column .hc-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family:-apple-system,BlinkMacSystemFont,Malgun Gothic,맑은 고딕,helvetica,Apple SD Gothic Neo,sans-serif;
    font-size: 12px;
    font-weight:700;
    min-height: 36px;
    padding: 0 11px;
    /* border: 1px solid var(--hc-line); */
    border:0;
    border-radius: 6px;
    background: #eff2ef;
    color: var(--hc-muted);
    line-height: 1;
}

#hc-column .hc-button.is-active,
#hc-column .hc-button:hover {
    border-color: var(--hc-accent);
    /* color: var(--hc-accent); */
    color:#282b29
}

#hc-column .hc-write {
    padding: 0 15px;
    border-color: var(--hc-accent);
    background: var(--hc-accent);
    color: #fff;
}

#hc-column .hc-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    color: var(--hc-muted);
    font-size: 12px;
}

#hc-column input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--hc-accent);
}

#hc-column .hc-item {
    position: relative;
    min-width: 0;
    border-bottom: 1px solid var(--hc-line);
}

#hc-column .hc-check {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #fff;
}

#hc-column .hc-item-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
}

/* 리스트에서만 관리자 체크박스 공간 확보 */
#hc-column[data-view="list"] .hc-items.has-checkbox .hc-item-link {
    padding-left: 40px;
}

#hc-column .hc-thumbnail {
    display: none;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    background: var(--hc-soft);
}

#hc-column .hc-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

#hc-column .hc-thumbnail-empty {
    align-items: center;
    justify-content: center;
    color: #8c9d8e;
    font-size: 12px;
    letter-spacing: 4px;
}

#hc-column .hc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--hc-accent);
    font-size: 11px;
    font-weight: 600;
}

#hc-column .hc-title {
    margin: 0;
    color: var(--hc-text);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.6px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

#hc-column .hc-item-link:hover .hc-title {
    color: var(--hc-accent);
}

#hc-column .hc-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 10px 0 0;
    color: var(--hc-muted);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

#hc-column .hc-date {
    color: var(--hc-muted);
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

/* 갤러리 */
#hc-column[data-view="grid"] .hc-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 26px;
    padding-top: 26px;
}

#hc-column[data-view="grid"] .hc-item {
    border-bottom: 0;
}

#hc-column[data-view="grid"] .hc-item-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    padding: 0;
}

#hc-column[data-view="grid"] .hc-thumbnail {
    display: block;
    margin-bottom: 5px;
}

#hc-column[data-view="grid"] .hc-thumbnail-empty {
    display: flex;
}

#hc-column[data-view="grid"] .hc-item-link:hover .hc-thumbnail img {
    transform: scale(1.035);
}

#hc-column[data-view="grid"] .hc-title {
    font-size: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    white-space: normal;
}

#hc-column[data-view="grid"] .hc-date {
    margin-top: auto;
    padding-top: 18px;
    text-align: left;
}

#hc-column[data-view="grid"] .hc-check {
    top: 10px;
    left: 10px;
}

#hc-column .hc-empty {
    grid-column: 1 / -1;
    padding: 80px 16px;
    color: var(--hc-muted);
    text-align: center;
}

#hc-column .hc-pagination {
    margin-top: 100px;
    text-align: center;
    margin-bottom: 80px
}

#hc-column .hc-pagination .pg_wrap {
    float: none;
    margin: 0;
    text-align: center;
}

#hc-column .hc-pagination .pg_page,
#hc-column .hc-pagination .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 3px;
    /* border: 1px solid var(--hc-line); */
    border:0;
    background:#fafafa;
    border-radius: 5px;
    font-size: 13px;
    font-weight:700;
    line-height: normal;
    text-indent: 0;
}

#hc-column .hc-pagination .pg_current {
    border-color: var(--hc-accent);
    background: var(--hc-accent);
    color: #fff;
}

#hc-column .hc-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}


@media (max-width: 767px) {
    #hc-column .hc-pagination .pg_wrap {
        display: block;
        width: auto;
        max-width: 100%;
        white-space: normal;
    }

    #hc-column .hc-pagination .pg {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: auto;
        white-space: normal;
    }

    #hc-column .hc-pagination .pg_page,
    #hc-column .hc-pagination .pg_current {
        flex: 0 0 auto;
        box-sizing: border-box;
    }
}


/* 검색: 기존 스킨의 검색 팝업과 독립적으로 처리 */
#hc-column .hc-search[hidden] {
    display: none !important;
}

#hc-column .hc-search {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background: var(--hc-soft);
}

#hc-column .hc-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#hc-column .hc-search select,
#hc-column .hc-search input {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--hc-line);
    border-radius: 5px;
    background: #fff;
    color: var(--hc-text);
}

#hc-column .hc-search input {
    flex: 1;
    min-width: 140px;
}

#hc-column a:focus-visible,
#hc-column button:focus-visible,
#hc-column input:focus-visible,
#hc-column select:focus-visible {
    outline: 2px solid var(--hc-accent);
    outline-offset: 3px;
}


/* 리스트 모드: 번호 너비와 간격 */
#hc-column[data-view="list"] {
    --number-width: 28px;
    --number-gap: 10px;
}

/* 게시글 번호: 기본 숨김 */
#hc-column .hc-post-number {
    display: none;
    color: #8b948e;
    font-size: 0.7em;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* 리스트 모드: 번호와 제목 분리 */
#hc-column[data-view="list"] .hc-title {
    display: flex;
    align-items: baseline;
    gap: var(--number-gap);
}

#hc-column[data-view="list"] .hc-post-number {
    display: block;
    flex: 0 0 var(--number-width);
    text-align: right;
}

#hc-column[data-view="list"] .hc-title-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* 번호가 있는 글만 미리보기를 제목 시작점에 정렬 */
#hc-column[data-view="list"]
.hc-content:has(.hc-post-number) .hc-preview {
    padding-left: calc(var(--number-width) + var(--number-gap));
}



/* 목록 상단 글쓰기 버튼 */
.hc-column-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 6px;
    background: #eff0f2;
    color: #242b28;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.hc-column-write svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hc-column-write:hover {
    background: #e5ebe4;
    color: #496650;
}


/* 추가:모바일 메타 영역의 게시글 번호 */
#hc-column .hc-mobile-number {
    display: none;
    color: #8b948e;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* 새 글 배지 */
#hc-column .hc-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border: 1px solid #d5e7da;
    border-radius: 5px;
    background: #edf6ef;
    color: #427451;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
}





@media (max-width: 900px) {
    #hc-column[data-view="grid"] .hc-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 모바일 */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 0;
    }

    #hc-column {
        padding: 42px 18px 56px;
    }

    #hc-column .hc-header {
        margin-bottom: 30px;
    }

    #hc-column .hc-header h1 {
        letter-spacing: -1px;
    }

    #hc-column .hc-header p {
        font-size: 14px;
    }

    #hc-column .hc-toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    #hc-column .hc-item-link {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 24px 0;
    }

    #hc-column .hc-title {
        font-size: 19px;
    }

    #hc-column .hc-date {
        text-align: left;
    }

    /* 리스트: 번호 아래에 제목 배치 */
    #hc-column[data-view="list"] .hc-title {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    /* 모바일 리스트: 번호와 NEW를 같은 줄에 표시 */
    #hc-column[data-view="list"] .hc-mobile-number {
        display: inline;
    }

    /* 제목 안의 기존 번호 숨김 */
    #hc-column[data-view="list"] .hc-post-number {
        display: none;
    }

    /* 리스트: 요약을 제목과 같은 왼쪽 기준선에 정렬 */
    #hc-column[data-view="list"]
    .hc-content:has(.hc-post-number) .hc-preview {
        padding-left: 0;
    }

    /* 갤러리: 모바일 2열 유지 */
    #hc-column[data-view="grid"] .hc-items {
        gap: 35px 18px;
    }

    #hc-column .hc-search {
        padding: 14px;
    }

    .hc-column-write {
        /* display:none */
    }
}


/* 목록 카드에 부드러운 색상 변화 */
#fboardlist .hc-item {
    transition:
        background-color .3s ease,
        border-color .3s ease;
}

/* 마우스를 사용하는 환경에서만 적용 */
@media (hover: hover) {
    #fboardlist .hc-item:hover {
        background-color: #fbfbfb;
        border-color: #c7d4c5;
    }
}

/* 키보드로 링크를 선택할 때도 표시 */
#fboardlist .hc-item:focus-within {
    background-color: #fbfbfb;
    border-color: #c7d4c5;
}

@media (prefers-reduced-motion: reduce) {
    #fboardlist .hc-item {
        transition: none;
    }
}
