/* =====================================================================
 * V2 공지센터 · notice.css
 * 완전 반응형(모바일/태블릿/PC) · V2 디자인 시스템(라운드/여백/골드 액센트)
 * 기존 board 데이터를 읽어 UI 만 새로 구성. 자립형(다른 SHOP CSS 비의존).
 * ===================================================================== */

:root {
    --ntc-bg:      #f6f6f4;
    --ntc-surface: #ffffff;
    --ntc-ink:     #16161a;
    --ntc-ink-2:   #5c5f66;
    --ntc-ink-3:   #9a9ca3;
    --ntc-line:    #ececea;
    --ntc-line-2:  #e2e2df;
    --ntc-gold:    #8f6d39;
    --ntc-gold-bg: #f4efe4;
    --ntc-radius:  16px;
    --ntc-pad:     16px;
    --ntc-max:     820px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--ntc-bg);
    color: var(--ntc-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
        "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.v2ntc-page {
    width: 100%;
    max-width: var(--ntc-max);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--ntc-bg);
}

a { color: inherit; text-decoration: none; }

/* ---------- 헤더 ---------- */
.v2ntc-head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: 54px;
    padding: 0 6px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--ntc-line);
}
.v2ntc-back, .v2ntc-share {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: 0; padding: 0;
    border: none; background: none; cursor: pointer;
    font-size: 26px; line-height: 1; color: var(--ntc-ink);
}
.v2ntc-share { font-size: 19px; }
.v2ntc-head-title { margin: 0; font-size: 16px; font-weight: 800; text-align: center; }
.v2ntc-head-sp { display: block; }

/* ---------- 본문 래퍼 ---------- */
.v2ntc-main {
    padding: 0 var(--ntc-pad) 40px;
}

/* ---------- 히어로 ---------- */
.v2ntc-hero {
    padding: 26px 4px 18px;
    text-align: center;
}
.v2ntc-hero-ic {
    font-size: 34px; line-height: 1;
}
.v2ntc-hero-title {
    margin: 10px 0 6px;
    font-size: 24px; font-weight: 900; letter-spacing: -.4px;
}
.v2ntc-hero-sub {
    margin: 0; color: var(--ntc-ink-2);
    font-size: 13.5px; line-height: 1.5;
}

/* ---------- 검색 ---------- */
.v2ntc-search {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px 8px 14px;
    background: var(--ntc-surface);
    border: 1px solid var(--ntc-line-2);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.v2ntc-search-ic { width: 18px; height: 18px; color: var(--ntc-ink-3); flex: 0 0 auto; }
.v2ntc-search input {
    flex: 1 1 auto; min-width: 0;
    border: none; outline: none; background: none;
    font-size: 15px; color: var(--ntc-ink);
}
.v2ntc-search input::placeholder { color: var(--ntc-ink-3); }
.v2ntc-search-btn {
    flex: 0 0 auto;
    padding: 9px 16px; border: none; border-radius: 999px;
    background: var(--ntc-ink); color: #fff;
    font-size: 13px; font-weight: 800; cursor: pointer;
}
.v2ntc-search-btn:hover { background: #000; }

/* ---------- 개수 ---------- */
.v2ntc-count {
    display: flex; align-items: center; gap: 8px;
    margin: 16px 2px 10px;
    color: var(--ntc-ink-2); font-size: 13px;
}
.v2ntc-count b { color: var(--ntc-ink); font-weight: 800; }
.v2ntc-count-reset {
    margin-left: auto; color: var(--ntc-gold); font-weight: 700; font-size: 12.5px;
}

/* ---------- 목록 ---------- */
.v2ntc-list { display: flex; flex-direction: column; gap: 10px; }

.v2ntc-card {
    display: grid;
    grid-template-columns: 44px 1fr 16px;
    gap: 12px;
    align-items: start;
    padding: 16px;
    background: var(--ntc-surface);
    border: 1px solid var(--ntc-line);
    border-radius: var(--ntc-radius);
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.v2ntc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    border-color: var(--ntc-line-2);
}
.v2ntc-card.is-pinned {
    border-color: #e6dcc4;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 60%);
}
.v2ntc-card-ic {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    font-size: 22px; line-height: 1;
    background: var(--ntc-gold-bg); border-radius: 12px;
}
.v2ntc-card.is-pinned .v2ntc-card-ic { background: #f0e6cf; }
.v2ntc-card-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.v2ntc-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.v2ntc-pin {
    font-size: 11px; font-weight: 800; color: var(--ntc-gold);
    background: var(--ntc-gold-bg); padding: 2px 7px; border-radius: 6px;
}
.v2ntc-type { font-size: 11px; font-weight: 800; color: var(--ntc-ink-3); }
.v2ntc-badge {
    font-size: 10px; font-weight: 900; letter-spacing: .3px;
    padding: 2px 6px; border-radius: 5px; color: #fff;
}
.v2ntc-badge.is-new { background: #1f9d55; }
.v2ntc-badge.is-hot { background: #e0483d; }
.v2ntc-file { font-size: 12px; }

.v2ntc-card-title {
    font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ntc-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v2ntc-card-sum {
    font-size: 12.5px; line-height: 1.5; color: var(--ntc-ink-2);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.v2ntc-card-meta {
    display: flex; align-items: center; gap: 10px; margin-top: 2px;
    font-size: 11.5px; color: var(--ntc-ink-3); font-weight: 600;
}
.v2ntc-card-arrow { align-self: center; color: var(--ntc-ink-3); font-size: 18px; }

/* 진입 리빌(JS 활성 시에만 숨김 → JS 없어도 정상 노출) */
.v2ntc-js [data-reveal] { opacity: 0; transform: translateY(10px); }
.v2ntc-js [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity .4s ease, transform .4s ease;
}
@media (prefers-reduced-motion: reduce) {
    .v2ntc-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 페이저 ---------- */
.v2ntc-pager {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 22px;
}
.v2ntc-pg {
    padding: 9px 16px; border: 1px solid var(--ntc-line-2); border-radius: 10px;
    background: var(--ntc-surface); font-size: 13px; font-weight: 700; color: var(--ntc-ink);
}
.v2ntc-pg:hover { border-color: var(--ntc-gold); color: var(--ntc-gold); }
.v2ntc-pg.is-off { color: var(--ntc-ink-3); background: transparent; border-color: var(--ntc-line); pointer-events: none; }
.v2ntc-pg-info { font-size: 13px; color: var(--ntc-ink-2); }
.v2ntc-pg-info b { color: var(--ntc-ink); font-weight: 800; }

/* ---------- 빈 상태 ---------- */
.v2ntc-empty { text-align: center; padding: 60px 20px; color: var(--ntc-ink-2); }
.v2ntc-empty-ic { font-size: 40px; }
.v2ntc-empty p { margin: 14px 0 16px; font-size: 14px; }
.v2ntc-empty-btn, .v2ntc-list-btn, .v2ntc-count-reset.btn {
    display: inline-block; padding: 11px 20px; border-radius: 12px;
    background: var(--ntc-ink); color: #fff; font-size: 13px; font-weight: 800;
}
.v2ntc-empty-btn:hover { background: #000; }

/* ---------- 상세 ---------- */
.v2ntc-article {
    background: var(--ntc-surface);
    border: 1px solid var(--ntc-line);
    border-radius: 18px;
    padding: 22px 20px;
    margin-top: 14px;
}
.v2ntc-art-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.v2ntc-art-title {
    margin: 0 0 12px; font-size: 21px; font-weight: 900; line-height: 1.4; letter-spacing: -.3px;
    word-break: keep-all;
}
.v2ntc-art-meta {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 18px; margin-bottom: 20px;
    border-bottom: 1px solid var(--ntc-line);
    font-size: 12.5px; color: var(--ntc-ink-3); font-weight: 600;
}

/* 본문 — 이미지 자동 반응형 */
.v2ntc-content {
    font-size: 15px; line-height: 1.75; color: #24242a; word-break: break-word;
}
.v2ntc-content img,
.v2ntc-content video,
.v2ntc-content iframe {
    max-width: 100% !important;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 12px auto;
}
.v2ntc-content table { max-width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.v2ntc-content a { color: var(--ntc-gold); text-decoration: underline; word-break: break-all; }
.v2ntc-content p { margin: 0 0 12px; }
.v2ntc-content h1, .v2ntc-content h2, .v2ntc-content h3 { line-height: 1.4; }

/* ---------- 첨부파일 ---------- */
.v2ntc-files { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--ntc-line-2); }
.v2ntc-files-h { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.v2ntc-files-h span { color: var(--ntc-gold); }
.v2ntc-files-imgs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px; margin-bottom: 14px;
}
.v2ntc-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--ntc-line); background: #fafafa; }
.v2ntc-img img { display: block; width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; }
.v2ntc-files-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v2ntc-files-list a {
    display: grid; grid-template-columns: 24px 1fr auto 20px; align-items: center; gap: 10px;
    padding: 12px 14px; background: #fafaf8; border: 1px solid var(--ntc-line); border-radius: 12px;
    font-size: 13px;
}
.v2ntc-files-list a:hover { border-color: var(--ntc-gold); background: #fff; }
.v2ntc-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.v2ntc-fsize { color: var(--ntc-ink-3); font-size: 11.5px; font-weight: 700; }
.v2ntc-fdl { color: var(--ntc-gold); }

/* ---------- 이전/다음 ---------- */
.v2ntc-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.v2ntc-nav-item {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; background: var(--ntc-surface);
    border: 1px solid var(--ntc-line); border-radius: 12px;
}
.v2ntc-nav-item:hover { border-color: var(--ntc-line-2); }
.v2ntc-nav-item.is-next { text-align: right; }
.v2ntc-nav-item.is-off { opacity: .55; pointer-events: none; }
.v2ntc-nav-dir { font-size: 11px; font-weight: 800; color: var(--ntc-gold); }
.v2ntc-nav-subj {
    font-size: 13.5px; color: var(--ntc-ink); font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.v2ntc-actions { margin-top: 22px; text-align: center; }

/* ---------- 푸터 ---------- */
.v2ntc-footer {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
    padding: 26px 16px 34px; color: var(--ntc-ink-3);
}
.v2ntc-footer a { font-size: 12.5px; font-weight: 700; color: var(--ntc-ink-2); }
.v2ntc-footer a:hover { color: var(--ntc-gold); }
.v2ntc-footer small { display: block; width: 100%; text-align: center; margin-top: 8px; font-size: 11px; }

/* ---------- 토스트 ---------- */
.v2ntc-toast {
    position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(12px);
    z-index: 13000; max-width: 88vw;
    padding: 12px 18px; border-radius: 12px;
    background: rgba(20,20,24,.94); color: #fff; font-size: 13.5px; font-weight: 700;
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.v2ntc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
 * 태블릿 (≥ 700px)
 * ===================================================================== */
@media (min-width: 700px) {
    .v2ntc-main { padding: 0 24px 48px; }
    .v2ntc-hero { padding: 34px 4px 22px; }
    .v2ntc-hero-ic { font-size: 40px; }
    .v2ntc-hero-title { font-size: 28px; }
    .v2ntc-card { padding: 18px 20px; grid-template-columns: 48px 1fr 16px; }
    .v2ntc-card-ic { width: 48px; height: 48px; font-size: 24px; }
    .v2ntc-card-title { font-size: 16px; }
    .v2ntc-card-sum { -webkit-line-clamp: 2; }
    .v2ntc-article { padding: 30px 30px; }
    .v2ntc-art-title { font-size: 24px; }
    .v2ntc-nav { flex-direction: row; }
    .v2ntc-nav-item { flex: 1 1 0; min-width: 0; }
}

/* =====================================================================
 * PC (≥ 1024px) — 컨테이너 중앙, 카드 여백 확대
 * ===================================================================== */
@media (min-width: 1024px) {
    :root { --ntc-max: 860px; }
    body { background: #efeeec; }
    .v2ntc-page {
        margin: 0 auto; min-height: 100vh;
        box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 10px 50px rgba(0,0,0,.05);
        background: var(--ntc-bg);
    }
    .v2ntc-hero-title { font-size: 30px; }
    .v2ntc-card:hover { transform: translateY(-3px); }
    .v2ntc-content { font-size: 15.5px; }
}

/* =====================================================================
 * 보완: 중요 공지 하이라이트 / 상대시간 / 첨부 다운로드 카드
 * ===================================================================== */

/* ---- 중요 공지 하이라이트(가로 슬라이드) ---- */
.v2ntc-hl { margin: 4px 0 24px; }
.v2ntc-hl-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.v2ntc-hl-head h2 { margin: 0; font-size: 16px; font-weight: 900; }
.v2ntc-hl-hint { font-size: 11.5px; color: var(--ntc-ink-3); font-weight: 700; }
.v2ntc-hl-rail {
    display: flex; gap: 12px; overflow-x: auto;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(var(--ntc-pad) * -1); padding: 2px var(--ntc-pad) 6px;
}
.v2ntc-hl-rail::-webkit-scrollbar { display: none; }
.v2ntc-hl-card {
    flex: 0 0 auto; width: 78%; max-width: 300px; scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px;
    background: linear-gradient(135deg, #fff9ef 0%, #fffdfa 55%, #ffffff 100%);
    border: 1px solid #ecdcba; box-shadow: 0 2px 10px rgba(143,109,57,.06);
    transition: transform .16s ease, box-shadow .16s ease;
}
.v2ntc-hl-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(143,109,57,.12); }
.v2ntc-hl-top { display: flex; align-items: center; gap: 8px; }
.v2ntc-hl-ic { font-size: 20px; line-height: 1; }
.v2ntc-hl-title {
    font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--ntc-ink); min-height: 42px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all;
}
.v2ntc-hl-sum {
    font-size: 12.5px; color: var(--ntc-ink-2); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v2ntc-hl-meta { display: flex; gap: 10px; margin-top: 2px; font-size: 11.5px; color: var(--ntc-ink-3); font-weight: 700; }

.v2ntc-list-h { margin: 8px 2px 12px; font-size: 16px; font-weight: 900; }

/* ---- 상대시간 ---- */
.v2ntc-rel { color: var(--ntc-ink-3); font-weight: 700; }
.v2ntc-art-meta .v2ntc-rel { color: var(--ntc-gold); }

/* ---- 첨부 다운로드 카드 ---- */
.v2ntc-dlcards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.v2ntc-dlcard {
    display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
    padding: 14px; border: 1px solid var(--ntc-line); border-radius: 14px; background: #fafaf8;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.v2ntc-dlcard:hover { border-color: var(--ntc-gold); background: #fff; transform: translateY(-1px); }
.v2ntc-dlcard-ic {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    font-size: 22px; background: #fff; border: 1px solid var(--ntc-line); border-radius: 11px;
}
.v2ntc-dlcard-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2ntc-dlcard-name { font-size: 13.5px; font-weight: 700; color: var(--ntc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2ntc-dlcard-meta { font-size: 11.5px; color: var(--ntc-ink-3); font-weight: 700; display: flex; gap: 7px; align-items: center; }
.v2ntc-dlcard-meta b { color: var(--ntc-gold); font-weight: 800; }
.v2ntc-dlcard-btn {
    flex: 0 0 auto; padding: 9px 13px; border-radius: 10px; background: var(--ntc-ink); color: #fff;
    font-size: 12px; font-weight: 800; white-space: nowrap;
}
.v2ntc-dlcard:hover .v2ntc-dlcard-btn { background: #000; }

/* ---- 반응형(태블릿/PC) ---- */
@media (min-width: 700px) {
    .v2ntc-hl-card { width: 52%; max-width: 320px; }
    .v2ntc-dlcards { grid-template-columns: 1fr 1fr; }
}
/* PC(≥1024): 마우스는 스와이프가 불가하므로 가로 슬라이드를 그리드로 전환.
   전 카드를 한 화면에 노출하고 "밀어서 보기" 힌트도 숨긴다. */
@media (min-width: 1024px) {
    .v2ntc-hl-hint { display: none; }
    .v2ntc-hl-rail {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 14px;
        overflow: visible;
        margin: 0;
        padding: 2px 0 6px;
    }
    .v2ntc-hl-card { width: auto; max-width: none; }
}

/* =====================================================================
 * 첨부파일: 화면 보기 전용(다운로드 불가) — 2026-07-21
 *  이미지는 인라인으로 노출하되 링크로 감싸지 않고, 우클릭/드래그/롱프레스
 *  저장을 UI 레벨에서 억제한다. (표시된 이미지의 URL 자체를 100% 막을 수는 없음)
 * ===================================================================== */
.v2ntc-att-view { display: flex; flex-direction: column; gap: 12px; }
.v2ntc-att-img {
    margin: 0; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--ntc-line); background: #fafaf8;
}
.v2ntc-att-img img {
    display: block; width: 100%; height: auto; max-width: 100%;
    -webkit-user-select: none; user-select: none;
    -webkit-user-drag: none; user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;            /* 우클릭/롱프레스 저장 메뉴 억제 */
}
.v2ntc-att-file {
    display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
    padding: 13px 14px; border: 1px solid var(--ntc-line); border-radius: 12px; background: #fafaf8;
}
.v2ntc-att-file-ic {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    font-size: 20px; background: #fff; border: 1px solid var(--ntc-line); border-radius: 10px;
}
.v2ntc-att-file-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2ntc-att-file-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2ntc-att-file-meta { font-size: 11.5px; color: var(--ntc-ink-3); font-weight: 700; display: flex; gap: 7px; align-items: center; }
.v2ntc-att-file-meta b { color: var(--ntc-gold); font-weight: 800; }
.v2ntc-att-nodl {
    flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--ntc-ink-3);
    background: #efefec; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}

/* ===== 공통 V2 헤더/하단네비 셸 통합(2026-07-21) =====
   기존 .v2ntc-page 래퍼 대신 .v2live-shell 안에서 콘텐츠 폭/정렬을 잡는다. */
.v2ntc-main{ max-width: 880px; margin: 0 auto; }
.v2ntc-subback{ margin: 4px 0 2px; }
.v2ntc-subback a{ display:inline-flex; align-items:center; min-height:40px; font-size:13px; font-weight:700; color:var(--ntc-ink-2); }
.v2ntc-subback a:hover{ color:var(--ntc-ink); }

/* 배경: 샵/메인과 동일한 따뜻한 회색으로. 흰 셸이 그대로 비쳐 "너무 하얗게"
   보이던 것을 --ntc-bg(#f6f6f4)로 채워 흰 카드가 대비되게 한다. (2026-07-21)
   shop-final.css 의 .v2live-shell{background:#fff !important} 를 이겨야 하므로
   더 높은 특이도 + !important 로 덮는다. */
.v2ntc-body .v2live-shell{ background: var(--ntc-bg) !important; }
