@charset "utf-8";
/* ========================================================================== 
 * recent-post-quick.css
 * 2026-04-28 v01-r004
 * --------------------------------------------------------------------------
 * [description]
 * - PC 넓은 화면 좌측 여백에 최근 본 글 바로가기 UI 출력
 * - 본문 1020px 기준, 1320px 이상에서만 표시
 * - localStorage 기반 recent-post-quick.js와 함께 사용
 * --------------------------------------------------------------------------
 * [history]
 * v01-r001
 * - 최초 작성
 * v01-r002
 * - 빈 상태 노출 옵션(data-show-empty="Y") 대응
 * - .is-empty를 무조건 display:none 처리하던 규칙 제거
 * v01-r003
 * - board_title / post_title 분리 표시
 * - 게시판명과 글 제목 말줄임 처리
 * - 화면 노출 8개 기준 간격 재정비
 * v01-r004
 * - JS r004의 mid 미노출 보정과 함께 사용
 * ========================================================================== */

.erum-recent-post-quick,
.erum-recent-post-quick * {
    box-sizing: border-box;
}

.erum-recent-post-quick {
    display: none;
}

@media all and (min-width: 1320px) {
    .erum-recent-post-quick.is-ready {
        display: block;
        position: fixed;
        top: 201px;
        left: calc((100vw - 1020px) / 2 - 156px);
        width: 138px;
        z-index: 50;
        padding: 10px;
        border: 1px solid #d7deeb;
        border-radius: 3px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
        color: #1f2937;
        font-family: inherit;
    }
}

@media all and (min-width: 1320px) and (max-height: 720px) {
    .erum-recent-post-quick.is-ready {
        top: 124px;
    }
}

.erum-recent-post-quick__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid #edf1f7;
}

.erum-recent-post-quick__title {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.erum-recent-post-quick__empty {
    margin: 0;
    padding: 4px 0 2px;
    color: #7b8798;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.035em;
    word-break: keep-all;
}

.erum-recent-post-quick__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.erum-recent-post-quick__item {
    position: relative;
    min-height: 48px;
    padding: 7px 22px 7px 0;
    border-bottom: 1px solid #f0f3f8;
}

.erum-recent-post-quick__item:last-child {
    border-bottom: 0;
}

.erum-recent-post-quick__link {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #263244;
    text-decoration: none;
}

.erum-recent-post-quick__link:hover,
.erum-recent-post-quick__link:focus {
    color: #1d4ed8;
    text-decoration: none;
}

.erum-recent-post-quick__link:hover .erum-recent-post-quick__post-title,
.erum-recent-post-quick__link:focus .erum-recent-post-quick__post-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.erum-recent-post-quick__board {
    display: block;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 2px;
    color: #7b8798;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.035em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.erum-recent-post-quick__post-title {
    display: -webkit-box;
    overflow: hidden;
    max-height: 34px;
    color: #253047;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.04em;
    word-break: keep-all;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.erum-recent-post-quick__delete {
    position: absolute;
    right: 0;
    top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #d9e0ec;
    border-radius: 999px;
    background: #fff;
    color: #8a94a6;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.erum-recent-post-quick__delete:hover,
.erum-recent-post-quick__delete:focus {
    border-color: #b8c3d5;
    background: #f8fafc;
    color: #ef4444;
}

.erum-recent-post-quick__foot {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf1f7;
    text-align: right;
}

.erum-recent-post-quick__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #d8e0ed;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.erum-recent-post-quick__clear:hover,
.erum-recent-post-quick__clear:focus {
    border-color: #b8c3d5;
    background: #eef4ff;
    color: #1d4ed8;
}
