/* 클럽 공지 — 본문·첨부 모양 (회원 화면 · 운영진 화면 공통, 토큰만 사용) */

.nt-plain { white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-rich { overflow-wrap: anywhere; }
.nt-rich p { margin: 0; min-height: 1em; }
.nt-rich strong { font-weight: var(--cx-fw-bold); }
.nt-rich ol, .nt-rich ul { margin: var(--cx-sp-1) 0; padding-left: 1.4em; }
.nt-rich li[data-list="bullet"] { list-style-type: disc; }
.nt-rich li[data-list="ordered"] { list-style-type: decimal; }
.nt-rich .ql-ui { display: none; }
.nt-rich img { display: block; max-width: 100%; height: auto; margin: var(--cx-sp-2) 0; border-radius: var(--cx-r-md); cursor: zoom-in; }
/* 사진 크기 (에디터에서 고른 값). 휴대폰에서 너무 작아지지 않게 최소 폭 */
.nt-rich img[data-size="25"], .ql-editor img[data-size="25"] { width: 25%; min-width: 120px; }
.nt-rich img[data-size="50"], .ql-editor img[data-size="50"] { width: 50%; min-width: 160px; }
.nt-rich img[data-size="75"], .ql-editor img[data-size="75"] { width: 75%; min-width: 200px; }
.nt-rich a, .nt-plain a { color: var(--cx-primary-text); }

/* 글자색: 에디터는 색 이름만 저장하고, 실제 색은 테마 토큰 (어두운 화면에서도 읽히게) */
.ql-color-red    { color: var(--cx-danger); }
.ql-color-blue   { color: var(--cx-primary-text); }
.ql-color-green  { color: var(--cx-success); }
.ql-color-orange { color: var(--cx-warning); }
.ql-color-gray   { color: var(--cx-text-3); }

/* 투표 카드 */
.nt-poll { margin-top: var(--cx-sp-4); padding: var(--cx-sp-4); border: var(--cx-border-w) solid var(--cx-border); border-radius: var(--cx-r-lg); background: var(--cx-surface); }
.nt-poll.is-closed { background: var(--cx-surface-2); }
.nt-poll__q { display: flex; align-items: center; gap: var(--cx-sp-2); flex-wrap: wrap; font-size: var(--cx-fs-md); }
.nt-poll__q b { flex: 1 1 auto; min-width: 0; }
.nt-poll__icon { font-size: var(--cx-fs-lg); }
.nt-poll__meta { margin: var(--cx-sp-1) 0 var(--cx-sp-3); color: var(--cx-text-3); font-size: var(--cx-fs-xs); }
.nt-poll__opts { display: flex; flex-direction: column; gap: var(--cx-sp-2); }
.nt-poll__opt {
  display: flex; align-items: center; gap: var(--cx-sp-3); min-height: var(--cx-control-h); padding: 0 var(--cx-sp-3);
  border: var(--cx-border-w) solid var(--cx-border-strong); border-radius: var(--cx-r-md); background: var(--cx-surface); cursor: pointer; font-size: var(--cx-fs-sm);
}
.nt-poll__opt:has(input:checked) { border-color: var(--cx-primary); background: var(--cx-primary-soft); font-weight: var(--cx-fw-semibold); }
.nt-poll__opt input { width: 18px; height: 18px; accent-color: var(--cx-primary); flex: none; }
.nt-poll__res { display: flex; flex-direction: column; gap: var(--cx-sp-3); }
.nt-poll__line { display: flex; justify-content: space-between; gap: var(--cx-sp-2); font-size: var(--cx-fs-sm); }
.nt-poll__label { min-width: 0; overflow-wrap: anywhere; }
.nt-poll__mine { color: var(--cx-primary-text); font-size: var(--cx-fs-xs); white-space: nowrap; }
.nt-poll__num { flex: none; color: var(--cx-text-2); font-variant-numeric: tabular-nums; }
.nt-poll__row.is-mine .nt-poll__num { color: var(--cx-primary-text); font-weight: var(--cx-fw-bold); }
.nt-poll__track { height: 8px; margin-top: var(--cx-sp-1); border-radius: var(--cx-r-full); background: var(--cx-surface-2); overflow: hidden; }
.nt-poll.is-closed .nt-poll__track { background: var(--cx-border); }
.nt-poll__bar { display: block; height: 100%; border-radius: var(--cx-r-full); background: var(--cx-text-3); }
.nt-poll__row.is-mine .nt-poll__bar { background: var(--cx-primary); }
.nt-poll__who { margin-top: var(--cx-sp-1); border: 0; background: none; padding: 0; color: var(--cx-primary-text); font: inherit; font-size: var(--cx-fs-xs); font-weight: var(--cx-fw-semibold); cursor: pointer; }
.nt-poll__voters { display: flex; flex-wrap: wrap; gap: var(--cx-sp-1); margin-top: var(--cx-sp-1); }
.nt-poll__voters span { padding: 1px var(--cx-sp-2); border-radius: var(--cx-r-full); background: var(--cx-surface-2); font-size: var(--cx-fs-xs); }
.nt-poll__hint { margin: var(--cx-sp-3) 0 0; color: var(--cx-text-2); font-size: var(--cx-fs-xs); }
.nt-poll__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--cx-sp-2); margin-top: var(--cx-sp-3); color: var(--cx-text-3); font-size: var(--cx-fs-xs); }
.nt-poll__btns { display: inline-flex; gap: var(--cx-sp-2); }

/* 첨부 */
.nt-atts { display: flex; flex-direction: column; gap: var(--cx-sp-2); margin-top: var(--cx-sp-4); }
.nt-card {
  display: flex; gap: var(--cx-sp-3); align-items: stretch; overflow: hidden;
  border: var(--cx-border-w) solid var(--cx-border); border-radius: var(--cx-r-md); background: var(--cx-surface);
  color: var(--cx-text); text-decoration: none;
}
.nt-card:hover { border-color: var(--cx-primary); }
.nt-card__img { flex: none; width: 96px; min-height: 72px; background: var(--cx-surface-2); display: grid; place-items: center; }
.nt-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-card__img--none { font-size: var(--cx-fs-xl); color: var(--cx-text-3); }
.nt-card__text { display: flex; flex-direction: column; gap: 2px; padding: var(--cx-sp-2) var(--cx-sp-3) var(--cx-sp-2) 0; min-width: 0; justify-content: center; }
.nt-card__text b { font-size: var(--cx-fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-card__desc { font-size: var(--cx-fs-xs); color: var(--cx-text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nt-card__site { font-size: var(--cx-fs-xs); color: var(--cx-text-3); }
@media (min-width: 576px) { .nt-card__img { width: 140px; min-height: 88px; } }

.nt-file {
  display: flex; align-items: center; gap: var(--cx-sp-3); padding: var(--cx-sp-2) var(--cx-sp-3);
  border: var(--cx-border-w) solid var(--cx-border); border-radius: var(--cx-r-md); background: var(--cx-surface);
  color: var(--cx-text); text-decoration: none; font-size: var(--cx-fs-sm);
}
.nt-file:hover { border-color: var(--cx-primary); }
.nt-file__ext { flex: none; min-width: 40px; padding: 2px var(--cx-sp-1); border-radius: var(--cx-r-sm); background: var(--cx-primary-soft); color: var(--cx-primary-text); font-size: var(--cx-fs-xs); font-weight: var(--cx-fw-bold); text-align: center; }
.nt-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-file__size { flex: none; color: var(--cx-text-3); font-size: var(--cx-fs-xs); font-variant-numeric: tabular-nums; }
.nt-file__go { flex: none; color: var(--cx-primary-text); font-weight: var(--cx-fw-semibold); font-size: var(--cx-fs-xs); }
