/* ============================================================
  [일회성 공지] Notice CSS
  삭제 시: 이 파일 전체 삭제
           + index.html 의 notice.css 링크 제거
  ============================================================ */

/* ---------- [일회성 공지] 하단 한줄 공지 바 ---------- */
.notice-bar {
    background-color: #1a1a1a;
    border-top: 1px solid #363d48;
}

.notice-bar__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 20px;
}

.notice-bar__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.notice-bar__trigger:hover .notice-bar__text,
.notice-bar__trigger:focus-visible .notice-bar__text {
    color: #fff;
}

.notice-bar__text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.0225rem;
    color: #c5cdd8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: color 0.2s ease;
}

/* ---------- [일회성 공지] 팝업 오픈 시 스크롤바 강제 노출 ---------- */
html.is-notice-popup-open {
    overflow-y: scroll;
}

html.is-notice-popup-open body {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

/* ---------- [일회성 공지] 상세 레이어 팝업 ---------- */
.notice-detail-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notice-detail-popup.is-hidden {
    display: none;
}

.notice-detail-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.notice-detail-popup__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 850px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.notice-detail-popup__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.notice-detail-popup__title {
    font-family: 'Noto Sans KR', 'Pretendard Variable', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    letter-spacing: -0.03375rem;
    color: #222;
    margin: 0;
    word-break: keep-all;
}

.notice-detail-popup__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -6px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #757575;
    cursor: pointer;
    border-radius: 4px;
}

.notice-detail-popup__close:hover {
    color: #222;
    background: #f2f2f2;
}

.notice-detail-popup__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-detail-popup__body p {
    font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.7;
    letter-spacing: -0.02625rem;
    color: #555;
    margin: 0;
    word-break: keep-all;
}

.notice-detail-popup__actions {
    display: flex;
    justify-content: center;
}

.notice-detail-popup__btn {
    min-width: 120px;
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
}

.notice-detail-popup__btn:hover {
    background: #333;
}

/* ---------- [일회성 공지] 모바일 ---------- */
@media (max-width: 768px) {
    .notice-bar__inner {
        padding: 12px 16px;
    }

    .notice-detail-popup__inner {
        padding: 24px 20px 20px;
        border-radius: 10px;
    }

    .notice-detail-popup__title {
        font-size: 1rem;
    }
}
/* /[일회성 공지] */
