@charset "utf-8";

/* ===== 공지사항 — Figma A-1/A-2/A-3 (720px viewport / 375 Figma = 1.92×) ===== */

/* ── 목록 래퍼 ── */
.nt-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* ── 헤더 ── */
.nt-head {position:sticky; top:0; z-index:20; background:var(--card);}

/* 검색 바 */
.nt-bar {display:flex; align-items:center; gap:14px; padding:17px 22px; border-bottom:1.92px solid var(--line);}
.nt-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.nt-back img {width:32px; height:32px;}
.nt-search {flex:1; display:flex; align-items:center; gap:16px; height:74px; padding:0 28px; background:var(--snow); border:1.92px solid var(--line); border-radius:42px;}
.nt-search img {width:31px; height:31px;}
.nt-search input {flex:1; min-width:0; border:0; background:transparent; font-size:25px; color:var(--ink);}
.nt-search input::placeholder {color:#6B7280;}

/* 브레드크럼 */
.nt-crumb {display:flex; align-items:center; gap:11px; padding:15px 27px 13px; border-bottom:1.92px solid var(--line); font-size:23px; font-weight:700; color:#6B7280;}
.nt-crumb img {width:25px; height:25px;}

/* 탭 (스크롤 + 좌우 화살표) */
.nt-tabswrap {position:relative;}
.nt-tabs {display:flex; gap:0; padding:0 22px; overflow-x:auto; scrollbar-width:none; border-bottom:3.84px solid var(--line);}
.nt-tabs::-webkit-scrollbar {display:none;}
.nt-tab {flex:0 0 auto; position:relative; padding:21px 20px; background:none; border:0; color:#94A3B8; font-size:25px; font-weight:500; white-space:nowrap; cursor:pointer;}
.nt-tab.on {color:var(--teal); font-weight:700;}
.nt-tab.on::after {content:''; position:absolute; left:0; right:0; bottom:-3.84px; height:3.84px; border-radius:3px 3px 0 0; background:var(--teal);}
.nt-tabarrow {position:absolute; top:0; bottom:3.84px; width:46px; z-index:5; display:flex; align-items:center; justify-content:center; border:0; cursor:pointer; padding:0;}
.nt-tabarrow img {width:16px; height:16px;}
.nt-tabarrow.prev {left:0; background:linear-gradient(to right, var(--card) 55%, transparent);}
.nt-tabarrow.next {right:0; background:linear-gradient(to left, var(--card) 55%, transparent);}

/* ── 게시판 설명 바 ── */
.nt-desc {display:flex; align-items:flex-start; gap:14px; padding:20px 26px; background:#F8FAFC; border-bottom:1.92px solid var(--line);}
.nt-desc-ic {flex:0 0 auto; width:30px; height:30px; margin-top:2px;}
.nt-desc p {margin:0; font-size:22px; font-weight:400; color:#475569; line-height:1.55;}

/* ── 핀 공지 (어두운 배경) ── */
.nt-pinned {display:flex; align-items:center; gap:18px; padding:28px 26px; background:#1E293B; cursor:pointer; text-decoration:none;}
.nt-pinned-ic {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:48px; height:48px; background:rgba(255,255,255,.12); border-radius:50%;}
.nt-pinned-ic img {width:26px; height:26px; filter:brightness(0) invert(1);}
.nt-pinned-info {flex:1; min-width:0;}
.nt-pinned-title {display:block; font-size:24px; font-weight:700; color:#F1F5F9; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
.nt-pinned-meta {display:block; margin-top:6px; font-size:20px; font-weight:400; color:#94A3B8;}
.nt-pinned-arr {flex:0 0 auto; width:22px; height:22px; filter:brightness(0) invert(.6);}

/* ── 목록 헤더 (건수 + 정렬) ── */
.nt-lhead {display:flex; align-items:center; justify-content:space-between; padding:22px 26px 14px;}
.nt-lhead-count {font-size:24px; font-weight:600; color:#475569;}
.nt-lhead-count b {font-size:28px; font-weight:800; color:var(--teal);}
.nt-sort {display:flex; align-items:center; gap:6px; padding:10px 18px; border:1.92px solid var(--line); border-radius:38px; background:var(--card); font-size:21px; font-weight:500; color:#475569; cursor:pointer; background:none; border:none;}
.nt-sort img {width:18px; height:18px;}

/* ── 게시글 목록 ── */
.nt-list {display:flex; flex-direction:column; gap:0; padding:0 0 170px;}
.nt-item {display:flex; flex-direction:column; gap:10px; padding:26px 26px 22px; background:var(--card); border-bottom:1.92px solid var(--line); cursor:pointer; text-decoration:none;}
.nt-item:first-child {border-top:1.92px solid var(--line);}

.nt-item-row1 {display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.nt-badge {display:inline-flex; align-items:center; padding:5px 16px; border-radius:38px; font-size:20px; font-weight:700; white-space:nowrap;}
.nt-badge.b-pin {background:#FEF2F2; color:#DC2626;}
.nt-badge.b-new {background:#DCFCE7; color:#15803D;}
.nt-badge.b-notice {background:#F0F9FF; color:#0369A1;}

.nt-item-title {font-size:26px; font-weight:600; color:var(--ink); line-height:1.4; word-break:keep-all;}
.nt-item-meta {display:flex; align-items:center; gap:8px; font-size:21px; font-weight:400; color:var(--sub);}
.nt-item-meta .dot {color:var(--mute);}
.nt-item-stats {display:flex; align-items:center; gap:22px;}
.nt-stat {display:flex; align-items:center; gap:7px; font-size:21px; font-weight:400; color:var(--sub);}
.nt-stat img {width:22px; height:22px; opacity:.55; color:#94A3B8;}

/* ── 페이지네이션 ── */
.nt-page {display:flex; align-items:center; justify-content:center; gap:6px; padding:24px 20px 32px; flex-wrap:wrap;}
.nt-page .pg {display:flex; align-items:center; justify-content:center; min-width:48px; height:48px; padding:0 8px; border:0; border-radius:10px; background:none; font-size:21px; font-weight:500; color:var(--sub); cursor:pointer;}
.nt-page .pg.on {background:var(--teal); color:#fff; font-weight:700;}
.nt-page .dots {display:flex; align-items:center; justify-content:center; min-width:32px; height:48px; color:var(--mute); font-size:21px;}

/* ── FAB (글쓰기 버튼) ── */
.nt-fab {position:fixed; right:40px; bottom:180px; z-index:30; display:flex; align-items:center; justify-content:center; width:88px; height:88px; background:var(--teal); border-radius:50%; box-shadow:0 8px 24px rgba(15,118,110,.35); text-decoration:none;}
.nt-fab img {width:38px; height:38px; filter:brightness(0) invert(1);}

/* ── 하단 탭바 고정 ── */
.nt-nav, .nw-nav {position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:40; width:720px; max-width:100%; display:flex; align-items:center; justify-content:space-between; padding:20px 40px; background:var(--card); border-top:1.85px solid var(--line);}
/* nc-nav: nc-bottom(하단 고정 래퍼) 안에 중첩되므로 자체 fixed 지정 금지 — 부모가 이미 뷰포트에 고정되어 있음.
   자체 fixed를 주면 댓글 입력창과 같은 위치에 겹쳐 그려져 입력창이 가려짐(사용자 리포트로 발견) */
.nc-nav {display:flex; align-items:center; justify-content:space-between; width:100%; padding:20px 40px; background:var(--card); border-top:1.85px solid var(--line);}
.nt-nav .tab, .nc-nav .tab, .nw-nav .tab {display:flex; flex-direction:column; align-items:center; gap:5.8px; color:var(--sub); font-size:19.2px;}
.nt-nav .tab img, .nc-nav .tab img, .nw-nav .tab img {width:42px; height:42px;}
.nt-nav .tab.on, .nc-nav .tab.on, .nw-nav .tab.on {color:var(--teal);}
.nt-nav .tab-fab, .nc-nav .tab-fab, .nw-nav .tab-fab {position:relative; align-self:stretch; width:96px;}
.nt-nav .tab-fab .fab, .nc-nav .tab-fab .fab, .nw-nav .tab-fab .fab {position:absolute; left:50%; top:0; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; width:96px; height:96px; border-radius:50%; background:linear-gradient(135deg, #0D9488, #1E3A5F); border:5px solid var(--card); box-shadow:0 10px 24px rgba(13,148,136,0.4);}
.nt-nav .tab-fab .fab img, .nc-nav .tab-fab .fab img, .nw-nav .tab-fab .fab img {width:48px; height:48px;}

/* =========================================================
   A-2 상세 (nc-*)
   ========================================================= */
.nc-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* 헤더 */
.nc-head {position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:0; height:88px; padding:0 22px; background:var(--card); border-bottom:1.92px solid var(--line);}
.nc-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.nc-back img {width:32px; height:32px;}
.nc-head-title {flex:1; font-size:28px; font-weight:700; color:var(--ink); text-align:center;}
.nc-hbtn {display:flex; align-items:center; justify-content:center; width:48px; height:48px; background:none; border:0; cursor:pointer;}
.nc-hbtn img {width:26px; height:26px;}

/* 브레드크럼 */
.nc-crumb {display:flex; align-items:center; gap:8px; padding:18px 26px 14px; font-size:21px; font-weight:500; color:var(--sub);}
.nc-crumb span {color:var(--mute);}

/* 본문 영역 */
.nc-body {flex:1; padding:0 26px 200px; background:var(--card);}

/* 배지 + 제목 */
.nc-badges {display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px;}
.nc-title {font-size:32px; font-weight:800; color:var(--ink); line-height:1.4; margin:0 0 24px; word-break:keep-all;}

/* 작성자 */
.nc-author {display:flex; align-items:center; gap:18px; padding:20px 0; border-top:1.92px solid var(--line); border-bottom:1.92px solid var(--line); margin-bottom:20px;}
.nc-avatar {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; background:var(--teal); font-size:24px; font-weight:700; color:#fff;}
.nc-author-info {flex:1; min-width:0;}
.nc-author-name {display:block; font-size:24px; font-weight:700; color:var(--ink);}
.nc-author-date {display:block; font-size:21px; font-weight:400; color:var(--sub); margin-top:4px;}
.nc-share-btn {flex:0 0 auto; display:flex; align-items:center; gap:7px; padding:10px 20px; border:1.92px solid var(--line); border-radius:38px; background:none; font-size:21px; color:var(--sub); cursor:pointer;}
.nc-share-btn img {width:22px; height:22px;}

/* 통계 (좋아요/댓글/조회) */
.nc-stats {display:flex; align-items:center; gap:0; padding:18px 0; border-bottom:1.92px solid var(--line); margin-bottom:24px;}
.nc-stat-col {flex:1; display:flex; flex-direction:column; align-items:center; gap:6px;}
.nc-stat-col + .nc-stat-col {border-left:1.92px solid var(--line);}
.nc-stat-label {font-size:20px; font-weight:400; color:var(--sub);}
.nc-stat-val {font-size:27px; font-weight:700; color:var(--ink);}

/* 좋아요/공유/저장 버튼 */
.nc-acts {display:flex; align-items:center; gap:0; border:1.92px solid var(--line); border-radius:16px; overflow:hidden; margin-bottom:32px;}
.nc-act {flex:1; display:flex; align-items:center; justify-content:center; gap:10px; padding:22px 0; background:var(--card); border:0; font-size:23px; font-weight:500; color:#475569; cursor:pointer;}
.nc-act + .nc-act {border-left:1.92px solid var(--line);}
.nc-act img {width:26px; height:26px;}
.nc-act.on {color:var(--teal);}
.nc-act.heart.on img {filter:none;}

/* 본문 내용 */
.nc-content {font-size:24px; font-weight:400; color:var(--ink); line-height:1.75; margin-bottom:32px; white-space:pre-wrap; word-break:keep-all;}

/* 태그 */
.nc-tags {display:flex; flex-wrap:wrap; gap:12px; padding:24px 0; border-top:1.92px solid var(--line); margin-bottom:0;}
.nc-tag {padding:9px 20px; border:1.92px solid var(--line); border-radius:38px; font-size:21px; font-weight:500; color:#475569; background:var(--snow); cursor:pointer;}

/* 공식 자료 알림 */
.nc-official {display:flex; align-items:center; gap:14px; padding:22px 24px; background:var(--mint); border-radius:16px; margin:24px 0;}
.nc-official img {flex:0 0 auto; width:28px; height:28px;}
.nc-official p {margin:0; font-size:21px; font-weight:500; color:var(--teal); line-height:1.5;}

/* 댓글 섹션 */
.nc-cmtsec {padding:8px 0;}
.nc-cmt-head {display:flex; align-items:center; gap:12px; padding:20px 0 18px; border-top:3.84px solid var(--line);}
.nc-cmt-head h2 {margin:0; font-size:27px; font-weight:700; color:var(--ink);}
.nc-cmt-cnt {font-size:22px; font-weight:700; color:var(--teal);}
.nc-cmt-empty {display:flex; flex-direction:column; align-items:center; gap:10px; padding:48px 0; color:var(--sub); font-size:22px;}
.nc-cmt-list {display:flex; flex-direction:column; gap:0;}
.nc-cmt-item {display:flex; gap:18px; padding:22px 0; border-bottom:1.92px solid var(--line);}
.nc-cmt-av {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:50%; font-size:22px; font-weight:700; color:#fff;}
.nc-cmt-body {flex:1; min-width:0;}
.nc-cmt-top {display:flex; align-items:center; gap:12px; margin-bottom:8px;}
.nc-cmt-nm {font-size:23px; font-weight:700; color:var(--ink);}
.nc-cmt-dt {font-size:20px; font-weight:400; color:var(--sub);}
.nc-cmt-text {font-size:23px; font-weight:400; color:var(--ink); line-height:1.6; margin:0 0 12px; word-break:keep-all;}
.nc-cmt-acts {display:flex; gap:20px;}
.nc-cmt-act {display:flex; align-items:center; gap:6px; font-size:20px; font-weight:500; color:var(--sub); background:none; border:0; cursor:pointer; padding:0;}
.nc-cmt-act img {width:22px; height:22px;}

/* 하단 고정 (댓글 입력 + 탭바) */
.nc-bottom {position:fixed; left:50%; bottom:0; transform:translateX(-50%); width:720px; max-width:100%; z-index:30; background:var(--card); border-top:1.92px solid var(--line);}
.nc-cmt-write {display:flex; align-items:center; gap:16px; padding:18px 26px 60px;}
.nc-cmt-input {flex:1; height:64px; padding:0 22px; border:1.92px solid var(--line); border-radius:38px; background:var(--snow); font-size:23px; color:var(--ink);}
.nc-cmt-input::placeholder {color:var(--sub);}
.nc-send {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:50%; background:var(--teal); border:0; cursor:pointer;}
.nc-send img {width:28px; height:28px; filter:brightness(0) invert(1);}

/* 삭제 확인 팝업 (window.confirm 대체) — mypage.css .my-modal 패턴 참고 */
.nc-confirm {position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:60; width:720px; max-width:100%; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:38px; background:rgba(0,0,0,.5);}
.nc-confirm-card {width:100%; max-width:538px; overflow:hidden; border-radius:28px; background:var(--card); box-shadow:0 15px 77px rgba(0,0,0,.2);}
.nc-confirm-head {display:flex; flex-direction:column; align-items:center; gap:8px; padding:35px 35px 23px;}
.nc-confirm-head h3 {margin:0; font-size:28px; font-weight:800; color:var(--ink); text-align:center;}
.nc-confirm-head p {margin:0; font-size:22px; color:var(--sub); text-align:center;}
.nc-confirm-foot {display:flex; gap:12px; padding:0 27px 30px;}
.nc-confirm-btn {flex:1; display:flex; align-items:center; justify-content:center; padding:22px 0; border-radius:14px; font-size:23px; font-weight:700; border:0; cursor:pointer;}
.nc-confirm-btn.ghost {border:1.92px solid var(--line); background:none; color:var(--body);}
.nc-confirm-btn.danger {background:#DC2626; color:#fff;}

/* =========================================================
   A-3 작성 (nw-*)
   ========================================================= */
.nw-wrap {display:flex; flex-direction:column; min-height:100%; background:var(--snow);}

/* 헤더 */
.nw-head {position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:0; height:88px; padding:0 22px; background:var(--card); border-bottom:1.92px solid var(--line);}
.nw-back {flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:58px; height:58px;}
.nw-back img {width:32px; height:32px;}
.nw-head-title {flex:1; font-size:28px; font-weight:700; color:var(--ink); text-align:center;}
.nw-hspacer {flex:0 0 auto; width:58px; height:58px;}

/* 폼 본문 */
.nw-body {flex:1; padding:24px 0 200px;}
.nw-card {margin:0 22px 18px; padding:28px 26px 24px; background:var(--card); border:1.92px solid var(--line); border-radius:19px;}
.nw-label {display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:24px; font-weight:700; color:var(--ink);}
.nw-label i {color:#EF4444; font-style:normal; font-size:26px;}
.nw-label small {font-size:20px; font-weight:400; color:var(--sub);}

/* select */
.nw-select {width:100%; height:72px; padding:0 22px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink); appearance:none; background-image:url('/asset/images/common/card-chevron.svg'); background-repeat:no-repeat; background-position:right 20px center; background-size:22px;}

/* input */
.nw-input {width:100%; height:72px; padding:0 22px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink); box-sizing:border-box;}
.nw-input::placeholder {color:var(--sub);}
.nw-count {text-align:right; margin-top:8px; font-size:20px; color:var(--sub);}

/* textarea */
.nw-textarea {width:100%; min-height:200px; padding:20px 22px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink); line-height:1.6; resize:vertical; box-sizing:border-box;}
.nw-textarea::placeholder {color:var(--sub);}
.nw-content-hint {margin:16px 0 0; padding:18px 20px; background:var(--snow); border:1.92px dashed var(--line); border-radius:12px;}
.nw-content-hint p {margin:0 0 8px; font-size:21px; font-weight:600; color:#475569;}
.nw-content-hint p:last-child {margin:0;}

/* 이미지 업로드 */
.nw-upload {display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px; height:168px; border:1.92px dashed var(--line); border-radius:14px; background:var(--snow); cursor:pointer;}
.nw-upload img {width:48px; height:48px; opacity:.45;}
.nw-upload span {font-size:22px; font-weight:500; color:var(--sub);}

/* 태그 */
.nw-tag-row {display:flex; gap:14px; align-items:center;}
.nw-tag-input {flex:1; height:68px; padding:0 20px; border:1.92px solid var(--line); border-radius:14px; background:var(--snow); font-size:24px; color:var(--ink);}
.nw-tag-input::placeholder {color:var(--sub);}
.nw-tag-add {flex:0 0 auto; height:68px; padding:0 28px; border-radius:14px; background:var(--teal); border:0; font-size:23px; font-weight:700; color:#fff; cursor:pointer;}
.nw-tag-list {display:flex; flex-wrap:wrap; gap:12px; margin-top:16px;}
.nw-tag-chip {display:flex; align-items:center; gap:8px; padding:10px 18px; border:1.92px solid var(--line); border-radius:38px; background:var(--snow); font-size:21px; font-weight:500; color:#475569;}
.nw-tag-chip button {display:flex; align-items:center; background:none; border:0; cursor:pointer; padding:0; color:var(--sub); font-size:22px; line-height:1;}

/* 제출 버튼 */
.nw-submit {display:block; width:calc(100% - 44px); margin:0 22px; height:88px; border-radius:16px; background:var(--teal); border:0; font-size:28px; font-weight:700; color:#fff; cursor:pointer; letter-spacing:.5px;}
.nw-submit:active {background:var(--teal-2);}

/* ── 다크모드 ── */
.churchro.dark-mode .nt-pinned {background:#0F172A;}
.churchro.dark-mode .nt-pinned-title {color:#E2E8F0;}
.churchro.dark-mode .nt-desc {background:#16202E;}
.churchro.dark-mode .nc-official {background:var(--mint);}
.churchro.dark-mode .nw-select,
.churchro.dark-mode .nw-input,
.churchro.dark-mode .nw-textarea,
.churchro.dark-mode .nw-tag-input {background:var(--snow); color:var(--ink);}
