/* site-notice.css — 전 화면 공지 팝업 (작업 095)
   마크업: templates/base_sections/site_notice.html
   다른 모달(z-index 2000~10200)보다 위에 둔다. 한 번 닫으면 다시 뜨지 않으니
   첫 방문의 온보딩 둘러보기와 겹쳐도 공지를 먼저 닫게 하는 편이 낫다. */
.site-notice[hidden] {
    display: none !important;
}

.site-notice {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.site-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.site-notice-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    padding: 20px 20px 16px;
}

.site-notice-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.site-notice-title {
    margin: 0;
    font-size: 18px;
}

.site-notice-date {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.site-notice-body {
    margin: 0 0 18px;
    line-height: 1.6;
    word-break: keep-all;
}

.site-notice-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.site-notice-optout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.site-notice-close {
    appearance: none;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 700;
    cursor: pointer;
}

.site-notice-close:hover {
    background: var(--brand-600);
}
