/* ===== 기본(원본 식스샵 테마와 동일한 값) ===== */
:root {
  --font-family-body: 'Pretendard';
  --font-weight-body: 400;
  --font-family-heading: 'Pretendard';
  --font-weight-heading: 700;
  --nd-primary: #256EF4;
  --nd-primary-dark: #0B50D0;
  --nd-primary-soft: #ECF2FE;
  --nd-tint: #B8CEF8;
  --nd-text: #1E2124;
  --nd-muted: #464C53;
  --nd-subtle: #858B91;
  --nd-border: #CDD1D5;
  --nd-panel: #F4F5F6;
  --nd-danger: #D63D4A;
  --nd-danger-soft: #FDEEEF;
  --nd-radius: 8px;
}
* { margin: 0; padding: 0; color: inherit; font: inherit; }
*, ::before, ::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-family-body), -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-weight: var(--font-weight-body);
  line-height: 1.6;
  background: #fff;
  color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
#app { flex: 1 0 auto; }

/* 원본 섹션 래퍼 (CustomT02 section-content-width-normal) */
.sx-section { background: #fff; }
.sx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .sx-wrap { padding: 0 24px; } }
.sx-outer { display: flex; flex-direction: column; align-items: center; gap: 20px 0; }
.sx-outer > .block-type-app { width: 100%; }
.sx-section.is-panel { background: var(--nd-panel); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 페이지 로딩 / 오류 */
.nd-loading, .nd-error {
  padding: 96px 16px; text-align: center; color: var(--nd-muted); font-size: 15px;
}
.nd-loading::before {
  content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 14px;
  border: 3px solid var(--nd-primary-soft); border-top-color: var(--nd-primary);
  border-radius: 50%; animation: nd-spin .8s linear infinite;
}
@keyframes nd-spin { to { transform: rotate(360deg); } }

/* ===== 신규 페이지 공통 블록 ===== */
.nd-block { width: 100%; padding: 64px 0; color: var(--nd-text); line-height: 1.6; }
.nd-block + .nd-block { padding-top: 0; }
.nd-block a { text-decoration: none; }
.nd-block svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nd-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.nd-eyebrow { color: var(--nd-primary-dark); font-size: .75rem; letter-spacing: 1.1px; }
.nd-heading h2 { font-size: 30px; line-height: 1.5; margin-top: 7px; font-weight: 700; }
.nd-heading p { font-size: .9375rem; color: var(--nd-muted); margin-top: 6px; }
.nd-note { display: inline-flex; gap: 6px; align-items: center; font-size: .8125rem; color: var(--nd-muted); }
.nd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--nd-border); border-radius: var(--nd-radius);
  background: #fff; font-size: .9375rem; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.nd-btn:hover { color: var(--nd-primary-dark); border-color: var(--nd-primary); }
.nd-btn.is-primary { background: var(--nd-primary); border-color: var(--nd-primary); color: #fff; }
.nd-btn.is-primary:hover { background: var(--nd-primary-dark); border-color: var(--nd-primary-dark); color: #fff; }
.nd-btn.is-dark { background: #000; border-color: #000; color: #fff; }
.nd-btn.is-kakao { background: #FEE500; border-color: #FEE500; color: #191919; font-weight: 600; }
.nd-btn.is-kakao:hover { background: #F5DC00; border-color: #F5DC00; color: #191919; }
.nd-btn.is-danger { color: var(--nd-danger); }
.nd-btn.is-danger:hover { border-color: var(--nd-danger); background: var(--nd-danger-soft); }
.nd-btn:disabled { opacity: .5; cursor: default; }
.nd-btn.is-small { min-height: 34px; padding: 5px 12px; font-size: .8125rem; }
.nd-badge {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--nd-tint); border-radius: 4px;
  padding: 2px 7px; color: var(--nd-primary-dark); background: var(--nd-primary-soft); font-size: .75rem; white-space: nowrap;
}
.nd-badge.is-urgent { border-color: #F4B9BE; color: var(--nd-danger); background: var(--nd-danger-soft); }
.nd-empty { padding: 40px 12px; text-align: center; color: var(--nd-muted); font-size: .875rem; border-bottom: 1px solid var(--nd-border); }

/* 회원 전용 안내 */
.nd-gate { max-width: 560px; margin: 80px auto; padding: 40px 32px; border: 1px solid var(--nd-tint); border-radius: var(--nd-radius); background: var(--nd-primary-soft); text-align: center; color: var(--nd-text); }
.nd-gate h2 { font-size: 24px; font-weight: 700; margin: 10px 0 8px; }
.nd-gate p { color: var(--nd-muted); font-size: .9375rem; white-space: pre-line; }
.nd-gate .nd-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* 로그인 / 회원가입 */
.nd-auth { max-width: 440px; margin: 0 auto; padding: 64px 0 96px; color: var(--nd-text); }
.nd-auth h1 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.nd-auth .nd-auth-desc { text-align: center; color: var(--nd-muted); font-size: .9375rem; margin-bottom: 28px; white-space: pre-line; }
.nd-auth .nd-btn { width: 100%; min-height: 52px; font-size: 1rem; }
.nd-auth .nd-btn + .nd-btn { margin-top: 12px; }
.nd-auth-info { margin-top: 24px; padding: 16px 18px; border-radius: var(--nd-radius); background: var(--nd-panel); color: var(--nd-muted); font-size: .8125rem; line-height: 1.7; }
.nd-auth-info li { margin-left: 16px; }
/* 시안 점검용 임시 가입·로그인 (원본 로그인 화면과 같은 입력 모양) */
.nd-auth-form { display: grid; gap: 12px; }
.nd-auth-form input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--nd-border); border-radius: 12px; background: #fff; font-size: .9375rem; }
.nd-auth-form input:focus { outline: 2px solid var(--nd-text); outline-offset: -1px; }
.nd-auth-form .nd-btn { margin-top: 8px; border-radius: 12px; }
.nd-auth-form .nd-btn + .nd-btn { margin-top: 0; }
.nd-auth-error { color: var(--nd-danger); font-size: .875rem; }
.nd-auth-ok { color: #1B7A3A; font-size: .875rem; }
.nd-field-label { font-size: .875rem; font-weight: 600; color: var(--nd-text); margin: 4px 0 -4px; }
a.account-name { text-decoration: none; }
a.account-name:hover { text-decoration: underline; }
.nd-demo-banner { margin-bottom: 24px; padding: 10px 14px; border: 1px dashed #E0A100; border-radius: 8px; background: #FFF8E6; color: #7A5300; font-size: .8125rem; line-height: 1.6; }
.nd-demo-note { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #FFF8E6; color: #7A5300 !important; font-size: .8125rem !important; }
.nd-auth-links { margin-top: 18px; text-align: center; font-size: .875rem; color: var(--nd-subtle); }
.nd-auth-links a { color: var(--nd-muted); text-decoration: underline; }

/* ===== 팝업(모달) ===== */
.nd-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 20, 26, .55); }
.nd-modal[hidden] { display: none; }
.nd-modal-box { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--nd-text); }
.nd-modal-head { position: sticky; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; background: #fff; border-bottom: 1px solid var(--nd-border); }
.nd-modal-head h2 { font-size: 22px; font-weight: 700; line-height: 1.45; margin-top: 8px; }
.nd-modal-close { flex: 0 0 auto; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 26px; line-height: 1; color: var(--nd-muted); }
.nd-modal-close:hover { background: var(--nd-panel); }
.nd-modal-body { padding: 20px 24px 28px; }
.nd-meta { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; padding: 16px 18px; border-radius: var(--nd-radius); background: var(--nd-primary-soft); font-size: .875rem; }
.nd-meta dt { color: var(--nd-primary-dark); }
.nd-meta dd { color: var(--nd-text); }
.nd-rich { margin-top: 18px; font-size: .9375rem; line-height: 1.8; color: var(--nd-text); white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.nd-files { margin-top: 20px; border-top: 1px solid var(--nd-border); }
.nd-files a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--nd-border); font-size: .875rem; color: var(--nd-text); }
.nd-files a:hover { color: var(--nd-primary-dark); background: var(--nd-primary-soft); }
.nd-files svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* 첫 화면 팝업: 넓은 화면은 나란히(서로 겹치지 않게), 좁은 화면은 한 개씩 넘겨 보기 */
.nd-popups { position: fixed; z-index: 900; top: 140px; left: 0; right: 0; display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding: 0 16px; pointer-events: none; }
.nd-pop { pointer-events: auto; display: flex; flex-direction: column; width: 340px; max-height: calc(100vh - 170px); background: #fff; border: 1px solid var(--nd-border); border-radius: 12px; box-shadow: 0 18px 50px rgba(15, 20, 26, .22); overflow: hidden; color: var(--nd-text); animation: nd-pop-in .25s ease; }
@keyframes nd-pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nd-pop-img { display: block; background: var(--nd-panel); flex: 0 1 auto; min-height: 0; overflow: hidden; }
.nd-pop-img img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.nd-pop-body { padding: 18px 20px 16px; overflow-y: auto; }
.nd-pop-body:empty { display: none; }
.nd-pop-body h3 { font-size: 18px; font-weight: 700; line-height: 1.45; }
.nd-pop-body p { margin-top: 8px; font-size: .9375rem; line-height: 1.7; color: var(--nd-muted); white-space: pre-line; overflow-wrap: anywhere; }
.nd-pop-link { margin-top: 14px; width: 100%; text-decoration: none; }
.nd-pop-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #2B2F33; color: #fff; font-size: .8125rem; }
.nd-pop-foot label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-right: auto; }
.nd-pop-close { border: 0; background: transparent; color: #fff; font-size: .8125rem; cursor: pointer; padding: 4px 6px; }
.nd-pop-close:hover { text-decoration: underline; }
.nd-pop-nav { display: none; align-items: center; gap: 4px; }
.nd-pop-nav button { width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; line-height: 1; }
@media (max-width: 1099px) {
  .nd-popups { top: 96px; }
  .nd-pop { display: none; width: min(380px, 100%); max-height: calc(100vh - 120px); }
  .nd-pop.is-current { display: flex; }
  .nd-pop-nav:not([hidden]) { display: inline-flex; }
}

/* 사진 보기(라이트박스) */
.nd-lightbox { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; background: rgba(8, 10, 14, .94); color: #fff; }
.nd-lightbox[hidden] { display: none; }
.nd-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.nd-lb-title { font-size: 1rem; font-weight: 600; }
.nd-lb-title small { display: block; font-size: .8125rem; font-weight: 400; color: #C7CCD3; }
.nd-lb-tools { display: flex; align-items: center; gap: 8px; }
.nd-lb-tools a, .nd-lb-tools button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font-size: .875rem; text-decoration: none; }
.nd-lb-tools a:hover, .nd-lb-tools button:hover { background: rgba(255,255,255,.12); }
.nd-lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.nd-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.nd-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.nd-lb-nav:hover { background: rgba(255,255,255,.26); }
.nd-lb-nav.prev { left: 10px; }
.nd-lb-nav.next { right: 10px; }
.nd-lb-nav:disabled { opacity: .25; cursor: default; }
.nd-lb-thumbs { display: flex; gap: 8px; padding: 12px 18px 18px; overflow-x: auto; justify-content: center; }
.nd-lb-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #222; cursor: pointer; opacity: .6; }
.nd-lb-thumbs button.is-active { border-color: #fff; opacity: 1; }
.nd-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .nd-lb-stage { padding: 0 8px; }
  .nd-lb-nav { width: 40px; height: 40px; }
  .nd-lb-thumbs { justify-content: flex-start; }
}

/* 행사 달력 이벤트 클릭 가능 표시 */
.calendar-event { cursor: pointer; }
.calendar-event:hover { filter: brightness(.96); text-decoration: underline; }

/* 목록 페이지 이동 버튼 (총회·연수교육·공지) */
.nd-pager { display: inline-flex; align-items: center; gap: 6px; }
.nd-pager button { width: 28px; height: 28px; border: 1px solid var(--nd-border); border-radius: 6px; background: #fff; cursor: pointer; color: var(--nd-muted); }
.nd-pager button:disabled { opacity: .4; cursor: default; }
.nd-pager button:not(:disabled):hover { border-color: var(--nd-primary); color: var(--nd-primary-dark); }

/* 선택된 목록 행 */
.event-row.is-selected, .row.is-selected { background: var(--nd-primary-soft, #ECF2FE); }

/* 긴급공지: 상세 우측 / 목록 좌측 */
.board-layout.is-reverse { grid-template-columns: 1.22fr .78fr !important; }
.board-layout.is-reverse > .featured-event { order: 2; }
.board-layout.is-reverse > .event-board { order: 1; }
.featured-event.is-urgent { background: #FFF5F6 !important; border-color: #F4B9BE !important; }
.featured-event.is-urgent .featured-date, .featured-event.is-urgent .latest-label { color: var(--nd-danger) !important; }
.featured-event.is-urgent .latest-label::before { background: var(--nd-danger) !important; }
@media (max-width: 1023px) {
  .board-layout.is-reverse { grid-template-columns: 1fr !important; }
  .board-layout.is-reverse > .featured-event { order: 0; }
}

/* ===== 회무자료실 ===== */
.nd-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.nd-tabs button { min-height: 40px; padding: 6px 16px; border: 1px solid var(--nd-border); border-radius: 999px; background: #fff; cursor: pointer; font-size: .875rem; color: var(--nd-muted); }
.nd-tabs button[aria-pressed="true"] { background: var(--nd-primary); border-color: var(--nd-primary); color: #fff; }
.nd-search { position: relative; display: flex; align-items: center; min-width: 260px; }
.nd-search input { width: 100%; height: 44px; padding: 0 44px 0 14px; border: 1px solid var(--nd-border); border-radius: var(--nd-radius); background: #fff; font-size: .9375rem; }
.nd-search input:focus { outline: 2px solid var(--nd-primary); outline-offset: -1px; }
.nd-search button { position: absolute; right: 4px; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; color: var(--nd-muted); display: inline-flex; align-items: center; justify-content: center; }
.nd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.nd-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--nd-text); font-size: .9375rem; }
.nd-table th { padding: 12px 10px; border-bottom: 1px solid var(--nd-border); background: var(--nd-panel); font-size: .8125rem; color: var(--nd-muted); font-weight: 600; text-align: center; white-space: nowrap; }
.nd-table td { padding: 16px 10px; border-bottom: 1px solid var(--nd-border); vertical-align: middle; }
.nd-table td.c { text-align: center; white-space: nowrap; color: var(--nd-muted); font-size: .875rem; }
.nd-table tbody tr { cursor: pointer; transition: background .15s; }
.nd-table tbody tr:hover { background: var(--nd-primary-soft); }
.nd-table .t-title { color: var(--nd-text); }
.nd-table .t-clip { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--nd-subtle); }
.nd-table .t-clip svg { width: 15px; height: 15px; }
.nd-list-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--nd-muted); font-size: .8125rem; }
@media (max-width: 767px) {
  .nd-search { min-width: 0; width: 100%; }
  .nd-table thead { display: none; }
  .nd-table, .nd-table tbody, .nd-table tr, .nd-table td { display: block; width: 100%; }
  .nd-table tr { padding: 14px 4px; border-bottom: 1px solid var(--nd-border); }
  .nd-table td { padding: 2px 0; border: 0; }
  .nd-table td.c { text-align: left; display: inline-block; width: auto; margin-right: 10px; }
  .nd-table td.t-no { display: none; }
}
.nd-detail { border-top: 2px solid var(--nd-text); }
.nd-detail-head { padding: 22px 6px 18px; border-bottom: 1px solid var(--nd-border); }
.nd-detail-head h3 { font-size: 22px; font-weight: 700; line-height: 1.5; margin-top: 10px; }
.nd-detail-head .nd-sub { display: flex; gap: 14px; margin-top: 8px; color: var(--nd-muted); font-size: .8125rem; }
.nd-detail-body { padding: 24px 6px 32px; min-height: 160px; border-bottom: 1px solid var(--nd-border); }
.nd-detail-actions { display: flex; justify-content: center; margin-top: 28px; }

/* ===== 소통게시판 ===== */
.nd-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nd-table .t-count { color: var(--nd-primary); font-size: .8125rem; font-weight: 600; }
.nd-badge.is-question { border-color: #F1D9A6; background: #FFF6E5; color: #A35F00; }
.nd-badge.is-request { border-color: #CFE7D6; background: #EAF7EE; color: #1B7A3A; }
.nd-comments { padding: 24px 6px 8px; }
.nd-comments h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.nd-comments h4 span { color: var(--nd-primary); }
.nd-comments ul { list-style: none; border-top: 1px solid var(--nd-border); }
.nd-comments li { padding: 14px 4px; border-bottom: 1px solid var(--nd-border); }
.nd-comments .nd-c-empty { color: var(--nd-subtle); font-size: .875rem; text-align: center; padding: 22px 0; }
.nd-c-head { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--nd-subtle); }
.nd-c-head strong { color: var(--nd-text); font-size: .875rem; }
.nd-c-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.nd-c-actions button { border: 0; background: transparent; color: var(--nd-muted); font-size: .8125rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.nd-c-actions button:hover { background: var(--nd-panel); color: var(--nd-text); }
.nd-c-body { margin-top: 6px; font-size: .9375rem; color: var(--nd-text); white-space: pre-line; overflow-wrap: anywhere; }
.nd-comment-form { display: flex; gap: 10px; align-items: stretch; margin-top: 16px; }
.nd-comment-form textarea, .nd-write input[type="text"], .nd-write textarea { flex: 1; width: 100%; padding: 12px 14px; border: 1px solid var(--nd-border); border-radius: var(--nd-radius); background: #fff; font-size: .9375rem; line-height: 1.6; resize: vertical; }
.nd-comment-form textarea:focus, .nd-write input:focus, .nd-write textarea:focus { outline: 2px solid var(--nd-primary); outline-offset: -1px; }
.nd-comment-form .nd-btn { min-width: 110px; }
.nd-comment-form.is-edit { flex-direction: column; margin-top: 8px; }
.nd-comment-form.is-edit span { align-self: flex-end; }
.nd-write { border-top: 2px solid var(--nd-text); padding-top: 8px; }
.nd-write h3 { font-size: 20px; font-weight: 700; margin: 14px 0 6px; }
.nd-write-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--nd-border); }
.nd-write-label { padding-top: 10px; font-weight: 600; font-size: .9375rem; }
.nd-radio-pill { position: relative; cursor: pointer; }
.nd-radio-pill input { position: absolute; opacity: 0; }
.nd-radio-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--nd-border); border-radius: 999px; font-size: .875rem; color: var(--nd-muted); }
.nd-radio-pill input:checked + span { background: var(--nd-primary); border-color: var(--nd-primary); color: #fff; }
.nd-radio-pill input:focus-visible + span { outline: 2px solid var(--nd-primary); outline-offset: 2px; }
.nd-detail-actions { gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .nd-write-row { grid-template-columns: 1fr; gap: 8px; }
  .nd-write-label { padding-top: 0; }
  .nd-comment-form { flex-direction: column; }
  .nd-toolbar-right { width: 100%; }
  .nd-toolbar-right .nd-search { flex: 1; }
}

/* ===== 약사회 소개 ===== */
.nd-greeting-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--nd-radius); background: var(--nd-panel); }
.nd-officers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nd-officer { display: flex; flex-direction: column; border: 1px solid var(--nd-border); border-radius: var(--nd-radius); overflow: hidden; background: #fff; }
.nd-officer.is-lead { border-color: var(--nd-tint); background: var(--nd-primary-soft); }
.nd-officer-photo { aspect-ratio: 1 / 1; background: var(--nd-panel); display: flex; align-items: center; justify-content: center; color: var(--nd-subtle); }
.nd-officer-photo img { width: 100%; height: 100%; object-fit: cover; }
.nd-officer-photo svg { width: 54px; height: 54px; stroke-width: 1.2; }
.nd-officer-body { padding: 16px 18px 18px; }
.nd-officer-body .pos { color: var(--nd-primary-dark); font-size: .8125rem; }
.nd-officer-body h3 { font-size: 18px; font-weight: 700; margin-top: 2px; }
.nd-officer-body .aff { color: var(--nd-muted); font-size: .8125rem; margin-top: 4px; }
.nd-officer-body .contact { display: grid; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nd-border); font-size: .8125rem; color: var(--nd-muted); }
.nd-officer-body .contact a { color: var(--nd-text); }
.nd-officer-body .contact a:hover { color: var(--nd-primary-dark); }
@media (max-width: 1023px) { .nd-officers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .nd-officers { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.nd-timeline { position: relative; border-top: 2px solid var(--nd-text); }
.nd-tl-year { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--nd-border); }
.nd-tl-year > h3 { font-size: 30px; font-weight: 700; color: var(--nd-primary); line-height: 1.2; }
.nd-tl-items { display: grid; gap: 14px; }
.nd-tl-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.nd-tl-item .md { color: var(--nd-primary-dark); font-weight: 600; font-size: .9375rem; }
.nd-tl-item .tx strong { display: block; font-size: 1rem; font-weight: 600; color: var(--nd-text); }
.nd-tl-item .tx p { color: var(--nd-muted); font-size: .875rem; margin-top: 4px; white-space: pre-line; }
.nd-tl-item img { margin-top: 10px; width: 220px; max-width: 100%; border-radius: 6px; }
@media (max-width: 767px) {
  .nd-tl-year { grid-template-columns: 1fr; gap: 12px; }
  .nd-tl-year > h3 { font-size: 24px; }
}

/* ===== 협력업체 ===== */
@media (max-width: 767px) {
  .nd-heading h2 { font-size: 24px; }
  .nd-block { padding: 48px 0; }
}

/* 사진첩 카드: 클릭 가능 */
.gallery-card > a { cursor: pointer; }
.card-image .nd-photo-count { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; }
.card-image.nd-noimg { display: flex; align-items: center; justify-content: center; color: var(--nd-subtle); background: var(--nd-panel); }
.card-image.nd-noimg svg { width: 40px; height: 40px; }

/* 회보 리더 PDF 캔버스 */
.reader-page-wrapper canvas { width: 100%; height: auto; display: block; box-shadow: 0 5px 20px #20365116; background: #fff; }
.reader-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.nd-reader-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ===== 협력업체 소개 (업체 프로필형) ===== */
.nd-pf { border: 1px solid var(--nd-border); border-radius: 16px; overflow: hidden; background: #fff; }
.nd-pf + .nd-pf { margin-top: 28px; }
.nd-pf-hero { padding: 40px 44px 44px; background: linear-gradient(135deg, #2F7BFF 0%, #1B55C9 100%); color: #fff; }
.nd-pf-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.nd-pf-brand strong { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -.3px; }
.nd-pf-brand div > span { display: block; color: #D6E4FF; font-size: .8125rem; }
.nd-pf-logo { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--nd-primary-dark); font-weight: 800; font-size: 1.25rem; }
.nd-pf-logo img { width: 100%; height: 100%; object-fit: contain; }
.nd-pf-badge { margin-left: auto; font-style: normal; font-size: .8125rem; color: #E3ECFF; background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; }
.nd-pf-hero h3 { margin-top: 28px; max-width: 760px; font-size: 2rem; line-height: 1.35; font-weight: 800; letter-spacing: -.6px; }
.nd-pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.nd-pf-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.6); color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.nd-pf-actions a.is-solid { background: #fff; border-color: #fff; color: var(--nd-primary-dark); }
.nd-pf-actions a:hover { background: rgba(255,255,255,.12); }
.nd-pf-actions a.is-solid:hover { background: #EEF4FF; }
.nd-pf-actions svg { width: 15px; height: 15px; }
.nd-pf-body { padding: 36px 44px 44px; display: flex; flex-direction: column; gap: 28px; }
.nd-pf-desc { max-width: 860px; color: var(--nd-muted); font-size: 1rem; line-height: 1.85; white-space: pre-line; }
.nd-pf-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nd-pf-svc { padding: 22px; border-radius: 14px; background: var(--nd-panel); display: flex; flex-direction: column; gap: 8px; }
.nd-pf-svc .ic, .nd-pf-ben .ic { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nd-pf-svc .ic { background: var(--nd-primary-soft); color: var(--nd-primary); margin-bottom: 4px; }
.nd-pf-svc .ic svg, .nd-pf-ben .ic svg, .nd-pf-ci .ic svg { width: 20px; height: 20px; stroke-width: 1.9; }
.nd-pf-svc h4, .nd-pf-ben h4 { font-size: 1rem; font-weight: 700; color: var(--nd-text); }
.nd-pf-svc p, .nd-pf-ben p { font-size: .875rem; line-height: 1.6; color: var(--nd-muted); }
.nd-pf-bgroup + .nd-pf-bgroup { margin-top: 28px; }
.nd-pf-gname { margin-bottom: 12px; font-size: 1.0625rem; font-weight: 700; color: var(--nd-primary-dark); }
.nd-pf-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nd-pf-ben { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--nd-border); border-radius: 14px; background: #fff; }
.nd-pf-ben .ic { background: var(--nd-primary); color: #fff; }
.nd-pf-ben > div { display: flex; flex-direction: column; gap: 6px; }
.nd-pf-contact { border-radius: 16px; background: #17202E; color: #fff; overflow: hidden; }
.nd-pf-contact + .nd-pf-contact { margin-top: 20px; }
.nd-pf-cgrid { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 40px 44px; }
.nd-pf-cname { flex: 1 1 220px; }
.nd-pf-cname h3 { font-size: 1.375rem; font-weight: 800; }
.nd-pf-cname p { margin-top: 8px; color: #AEB8C8; font-size: .875rem; }
.nd-pf-ccol { flex: 1 1 240px; display: flex; flex-direction: column; gap: 18px; }
.nd-pf-ci { display: flex; gap: 12px; align-items: flex-start; }
.nd-pf-ci .ic { color: #8DB5FF; margin-top: 2px; }
.nd-pf-ci strong { display: block; font-size: .875rem; font-weight: 700; color: #fff; }
.nd-pf-ci a, .nd-pf-ci span { color: #D5DEEC; font-size: .875rem; text-decoration: none; }
.nd-pf-ci a:hover { color: #fff; text-decoration: underline; }
.nd-pf-ci .pl { white-space: pre-line; line-height: 1.6; }
.nd-pf-biz { padding: 16px 44px; background: #111824; color: #7F8A9C; font-size: .8125rem; }
@media (max-width: 1023px) { .nd-pf-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .nd-pf-hero { padding: 28px 22px 32px; }
  .nd-pf-hero h3 { font-size: 1.5rem; margin-top: 22px; }
  .nd-pf-badge { margin-left: 0; }
  .nd-pf-body { padding: 26px 22px 30px; }
  .nd-pf-services, .nd-pf-benefits { grid-template-columns: 1fr; }
  .nd-pf-cgrid { padding: 28px 22px; gap: 24px; }
  .nd-pf-biz { padding: 14px 22px; }
}

/* ===== 소통게시판 첨부파일 ===== */
.nd-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: 1; min-width: 0; }
.nd-attach-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nd-attach-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nd-attach-hint { color: var(--nd-subtle); font-size: .8125rem; }
.nd-attach-list { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.nd-attach-list:empty { display: none; }
.nd-attach-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--nd-border); border-radius: 8px; background: #fff; font-size: .875rem; }
.nd-attach-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-attach-list li small { color: var(--nd-subtle); white-space: nowrap; }
.nd-attach-list li.is-new { border-color: var(--nd-tint); background: var(--nd-primary-soft); }
.nd-attach-list button { border: 0; background: none; cursor: pointer; font-size: 1.125rem; line-height: 1; color: var(--nd-muted); padding: 0 4px; }
.nd-write-progress { color: var(--nd-primary-dark); font-size: .875rem; }

/* ===== 회보 뷰어: 세로 스크롤로 이어 보기 ===== */
.reader-canvas.is-scroll { flex-direction: column !important; align-items: center !important; gap: 20px; scroll-behavior: auto; }
.reader-canvas.is-scroll .reader-page-wrapper.is-stacked { margin: 0 !important; align-self: center; flex-shrink: 0; background: #fff; box-shadow: 0 5px 20px #20365116; }
.reader-canvas.is-scroll .reader-page-wrapper.is-stacked canvas { width: 100%; height: auto; display: block; }
.reader-canvas:focus-visible { outline: 2px solid var(--nd-primary); outline-offset: -2px; }
