/* ==========================================================================
   부안임씨 전서공파 대종회 - 서브페이지 공통 레이아웃
   (css/style.css 의 디자인 토큰과 컴포넌트를 그대로 사용한다)
   ========================================================================== */

.page-wrap {
  min-height: 60vh;
  padding-bottom: 5rem;
}

/* ---------- 페이지 상단 (제목 + 경로) ---------- */
.page-hero {
  padding: 3.2rem 0 2.6rem;
  background: #ffffff;
  border-bottom: 1px solid #eceef7;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.9rem;
}

.page-breadcrumb a:hover {
  color: var(--primary-hover);
}

.page-breadcrumb .sep {
  color: #cbd5e1;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.page-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 780px;
  word-break: keep-all;
}

/* ---------- 하위 탭 ---------- */
.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.page-tab {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: #f5f6fb;
  border: 1px solid #e3e5f2;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.page-tab:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
}

.page-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ---------- 본문 섹션 ---------- */
.page-section {
  padding: 3.5rem 0 0;
}

.page-section + .page-section {
  padding-top: 3rem;
}

.page-section__head {
  margin-bottom: 1.6rem;
}

.page-section__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.page-section__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: keep-all;
}

/* ---------- 일반 카드 ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.info-card {
  background: #ffffff;
  border: 1px solid #e5e7f2;
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.info-card__tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.info-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.6rem;
  word-break: keep-all;
}

.info-card__text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: keep-all;
}

.info-card__meta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eceef7;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
}

.info-card__thumb {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.1rem;
}

/* ---------- 연혁 타임라인 ---------- */
.timeline {
  position: relative;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e3e5f2;
}

.timeline__item {
  position: relative;
  padding: 0 0 1.8rem 1.4rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--primary);
}

.timeline__year {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-hover);
  margin-bottom: 0.3rem;
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.35rem;
}

.timeline__text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: keep-all;
}

/* ---------- 게시판 ---------- */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.board-count {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-muted);
}

.board-count strong {
  color: var(--primary-hover);
}

.board-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  background: #ffffff;
  border: 1px solid #e3e5f2;
  border-radius: var(--radius-full);
  min-width: 280px;
}

.board-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-main);
  background: transparent;
  min-width: 0;
}

.board-search button {
  height: 36px;
  padding: 0 1rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e5e7f2;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.board-head,
.board-item {
  display: grid;
  grid-template-columns: 90px 1fr 150px 120px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
}

.board-head {
  background: #f7f8fc;
  border-bottom: 1px solid #e5e7f2;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-light);
}

.board-item {
  border-bottom: 1px solid #f1f2f8;
  transition: background 0.18s ease;
}

.board-item:last-child {
  border-bottom: none;
}

.board-item:hover {
  background: #fafbff;
}

.board-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.82rem;
  font-weight: 800;
}

.board-tag.is-solid {
  background: var(--primary);
  color: #ffffff;
}

.board-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: keep-all;
}

.board-item__title:hover {
  color: var(--primary-hover);
}

.board-item__title small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.board-item__author,
.board-item__date {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
}

.board-empty {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--text-light);
  font-weight: 600;
}

.board-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #e3e5f2;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.6rem;
  border-radius: 10px;
  border: 1px solid #e3e5f2;
  background: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pagination .is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
}

/* ---------- 안내 박스 ---------- */
.notice-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  background: var(--primary-light);
  border: 1px solid #dfe2fb;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  color: #3a3f63;
  line-height: 1.7;
  word-break: keep-all;
}

.notice-strip strong {
  color: var(--primary-hover);
}

/* ---------- 준비중 표시 ---------- */
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: #f1f2f8;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .board-head {
    display: none;
  }
  .board-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.1rem 1.1rem;
  }
  .board-item__author,
  .board-item__date {
    text-align: left;
    display: inline-block;
    margin-right: 0.8rem;
  }
  .board-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 2.4rem 0 2rem;
  }
  .page-section {
    padding-top: 2.4rem;
  }
  .info-card__thumb {
    height: 180px;
  }
}

/* ---------- 서브페이지 라이트박스 ---------- */
.page-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.page-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.page-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 32, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-lightbox__card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.page-lightbox__card img {
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.page-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 1.2rem;
  font-weight: 800;
  z-index: 2;
}

.page-lightbox__close:hover {
  background: var(--primary);
  color: #ffffff;
}

.page-lightbox__body {
  padding: 1.5rem 1.7rem 1.8rem;
}

.page-lightbox__meta {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 0.5rem;
}

.page-lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.6rem;
  word-break: keep-all;
}

.page-lightbox__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  word-break: keep-all;
}

/* ==========================================================================
   종원 명부 (종원 정보 열람) - Member Directory Component
   ========================================================================== */
.member-directory-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 툴바 (검색 + 뷰 전환) */
.member-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.member-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.member-search-box .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #8c7e6b;
}

.member-search-input {
  width: 100%;
  min-height: 50px;
  padding: 0.65rem 2.8rem 0.65rem 2.9rem;
  border-radius: var(--radius-full);
  border: 2px solid #ded5c2;
  background: #ffffff;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.member-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.member-search-clear {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #eae3d2;
  color: #554d3f;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #eae3d2;
  padding: 4px;
  border-radius: var(--radius-full);
}

.view-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: #5c5243;
  cursor: pointer;
  transition: var(--transition);
}

.view-btn.is-active {
  background: #ffffff;
  color: #14100a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 세손 필터 탭 */
.member-gen-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.member-gen-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #ded5c2;
  font-size: 0.94rem;
  font-weight: 700;
  color: #4b4235;
  cursor: pointer;
  transition: var(--transition);
}

.member-gen-chip .gen-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-dark);
  background: #fdf6e7;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.member-gen-chip:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold-dark);
}

.member-gen-chip.is-active {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.member-gen-chip.is-active .gen-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 건수 안내 */
.member-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-bottom: 1px solid #ded5c2;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.member-result-count strong {
  color: var(--gold-dark);
}

.member-result-notice {
  font-size: 0.88rem;
  color: #786e60;
}

/* 카드형 그리드 */
.member-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.member-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #ded5c2;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 16px -6px rgba(28, 22, 14, 0.08);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px -10px rgba(28, 22, 14, 0.16);
}

.member-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.member-card__gen-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.82rem;
  font-weight: 800;
}

.member-card__branch-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #554d3f;
}

.member-card__name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.member-card__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 900;
  color: #14100a;
  letter-spacing: -0.01em;
}

.member-card__hanja {
  font-size: 1.05rem;
  font-weight: 700;
  color: #716758;
}

.member-card__info-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #fbf8f2;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
  border: 1px solid #f0e7d6;
}

.member-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.93rem;
}

.member-info-row .info-label {
  font-weight: 700;
  color: #6d6353;
  flex-shrink: 0;
}

.member-info-row .info-val {
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

.member-info-row .phone-link {
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-info-row .phone-link:hover {
  color: #92400e;
}

.member-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.member-call-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: var(--transition);
}

.member-call-btn:hover {
  background: linear-gradient(135deg, #334155, #1e293b);
  transform: translateY(-1px);
}

.member-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  background: #ffffff;
  border: 1px solid #ded5c2;
  color: #4b4235;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.member-detail-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-light);
}

/* 명부 테이블 뷰 */
.member-table-wrap {
  background: #ffffff;
  border: 1px solid #ded5c2;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 4px 16px -6px rgba(28, 22, 14, 0.08);
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.member-table th {
  background: #f9f5ed;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #554a3a;
  border-bottom: 2px solid #e5dac7;
}

.member-table td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid #f2e9dc;
  font-size: 0.95rem;
  color: var(--text-main);
  vertical-align: middle;
}

.member-table tbody tr {
  transition: background 0.16s ease;
  cursor: pointer;
}

.member-table tbody tr:hover {
  background: #fdfaf3;
}

.member-table-gen {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.table-subbranch {
  font-weight: 700;
  color: #554d3f;
}

.table-detail-btn {
  border: 1px solid #ded5c2;
  background: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #554d3f;
  cursor: pointer;
  transition: var(--transition);
}

.table-detail-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.hanja-dim {
  color: #786e60;
  font-size: 0.9em;
}

/* 검색 결과 없음 */
.member-empty {
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #d5cab5;
  border-radius: var(--radius-lg);
}

.member-empty__icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
}

.member-empty__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #14100a;
  margin-bottom: 0.4rem;
}

.member-empty__desc {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* 종원 상세 정보 모달 */
.member-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.member-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.member-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 10, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.member-modal__card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ded5c2;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(18, 14, 10, 0.4);
  padding: 2.2rem 2.4rem;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-modal.is-open .member-modal__card {
  transform: translateY(0) scale(1);
}

.member-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4eee2;
  border: 1px solid #e0d6c2;
  font-size: 1.1rem;
  color: #4a4133;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.member-modal__close:hover {
  background: #1e293b;
  color: #ffffff;
}

.member-modal__header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #ded5c2;
}

.member-modal__name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  color: #14100a;
  margin: 0.4rem 0 0.2rem;
}

.member-modal__hanja {
  font-size: 1.3rem;
  color: #665b4c;
  font-weight: 700;
}

.member-modal__sub {
  font-size: 1.02rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.member-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.member-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fbf8f2;
  border: 1px solid #efe6d5;
  border-radius: var(--radius-md);
}

.member-detail-label {
  font-weight: 700;
  color: #665b4c;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.member-detail-value {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  text-align: right;
}

.member-phone-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-phone-link {
  color: var(--gold-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-action-btn {
  border: 1px solid #ded5c2;
  background: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #554a3a;
}

.member-action-btn:hover {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.member-status-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: #e6f4ea;
  color: #137333;
  font-size: 0.85rem;
  font-weight: 800;
}

.member-modal__footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #ded5c2;
}

@media (max-width: 640px) {
  .member-modal__card {
    padding: 1.6rem 1.4rem;
  }
  .member-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .member-detail-value {
    text-align: left;
  }
}

/* ===========================================================================
   13. 커뮤니티 게시글 상세보기 (Post View) 스타일
   =========================================================================== */
.post-view-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e7ded0;
  box-shadow: 0 4px 20px rgba(74, 55, 33, 0.06);
  padding: 2.5rem 3rem;
  margin-bottom: 2.5rem;
  position: relative;
}

/* 상단 헤더 */
.post-header {
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #efe8dc;
  margin-bottom: 2.2rem;
}

.post-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.post-board-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: var(--gold-light);
  color: var(--gold-dark);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
}

.post-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  background: #f1ebd8;
  color: #635032;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.post-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.4;
  word-break: keep-all;
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-author-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post-author-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.post-author-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.post-author-sub {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
}

.post-stats-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-light);
}

.post-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid #e0d6c5;
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-tool-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-mid);
  color: var(--gold-dark);
}

/* 게시글 본문 */
.post-content-area {
  font-size: 1.12rem;
  line-height: 1.95;
  color: #2b2823;
  word-break: keep-all;
}

.post-content-area p {
  margin-bottom: 1.4rem;
}

.post-content-area strong {
  font-weight: 800;
  color: #1a1713;
}

.post-callout {
  background: #fbf8f2;
  border-left: 4px solid var(--gold-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
  box-shadow: inset 0 0 0 1px rgba(184, 142, 60, 0.12);
}

.post-callout h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.post-callout ul {
  padding-left: 1.2rem;
  margin: 0;
}

.post-callout li {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.post-callout li:last-child {
  margin-bottom: 0;
}

/* 첨부 이미지 */
.post-gallery-section {
  margin: 2.2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.post-gallery-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e7ded0;
  background: #fbf8f2;
}

.post-gallery-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.post-gallery-img:hover {
  transform: scale(1.02);
}

.post-gallery-caption {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #efe8dc;
}

/* 첨부 파일 */
.post-attachments-box {
  background: #fdfaf6;
  border: 1px solid #e9dfd0;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
}

.post-attach-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.post-attach-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-attach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #ece4d6;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  transition: background 0.2s ease;
}

.post-attach-item:hover {
  background: #fcf9f2;
  border-color: var(--gold-mid);
}

.post-attach-name {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-attach-size {
  color: var(--text-light);
  font-size: 0.82rem;
}

.post-attach-btn {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid var(--gold-mid);
  cursor: pointer;
}

.post-attach-btn:hover {
  background: var(--gold-mid);
  color: #ffffff;
}

/* 하단 반응 바 */
.post-reactions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.2rem 0 1.2rem;
  margin-top: 2rem;
  border-top: 1px dashed #e8dfd2;
}

.post-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  border: 2px solid #e7c27d;
  background: #fffdf9;
  color: #724e13;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(184, 142, 60, 0.12);
}

.post-like-btn.is-liked {
  background: linear-gradient(135deg, #d39e3d 0%, #b88226 100%);
  color: #ffffff;
  border-color: #b88226;
  box-shadow: 0 6px 18px rgba(184, 130, 38, 0.35);
  transform: scale(1.05);
}

.post-like-btn:hover {
  transform: translateY(-2px);
}

.post-like-icon {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.post-like-btn:hover .post-like-icon {
  transform: scale(1.2);
}

.post-like-count {
  font-weight: 900;
}

/* 작성자 프로필 카드 */
.post-author-card {
  background: #fbf8f2;
  border: 1px solid #ede3d4;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.post-author-card__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-author-card__info h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.post-author-card__info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.post-author-card__btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #dcd1be;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-author-card__btn:hover {
  background: var(--gold-dark);
  color: #ffffff;
  border-color: var(--gold-dark);
}

/* 댓글 섹션 */
.post-comments-container {
  margin-top: 3rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e7ded0;
  box-shadow: 0 4px 20px rgba(74, 55, 33, 0.06);
  padding: 2.2rem 2.8rem;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid #efe8dc;
  margin-bottom: 1.8rem;
}

.comments-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comments-count-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--gold-light);
  color: var(--gold-dark);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 900;
}

/* 댓글 작성 폼 */
.comment-form {
  background: #fbf8f2;
  border: 1px solid #ece2d2;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 2.2rem;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.comment-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #ded5c2;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text-main);
}

.comment-input:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(184, 142, 60, 0.15);
}

.comment-textarea {
  width: 100%;
  min-height: 90px;
  padding: 0.8rem 1rem;
  border: 1px solid #ded5c2;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  resize: vertical;
  background: #ffffff;
  color: var(--text-main);
  line-height: 1.6;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(184, 142, 60, 0.15);
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.comment-form-notice {
  font-size: 0.85rem;
  color: var(--text-light);
}

.comment-submit-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--gold-dark);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit-btn:hover {
  background: #6a4916;
  transform: translateY(-1px);
}

/* 댓글 목록 */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comment-item {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: #faf7f2;
  border: 1px solid #efe7d8;
  position: relative;
  transition: all 0.2s ease;
}

.comment-item:hover {
  background: #fdfbf7;
  border-color: #e5dac7;
}

.comment-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-author-name {
  font-weight: 800;
  color: var(--text-main);
  font-size: 1rem;
}

.comment-gen-tag {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 700;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.comment-body {
  font-size: 1rem;
  line-height: 1.65;
  color: #3b362f;
  word-break: keep-all;
  white-space: pre-line;
}

.comment-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.comment-action-link {
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.comment-action-link:hover {
  color: var(--gold-dark);
}

.comment-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-light);
  font-weight: 600;
}

/* 이전글 / 다음글 네비게이션 */
.post-nav-container {
  margin-top: 2rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e7ded0;
  overflow: hidden;
}

.post-nav-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid #efe8dc;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.post-nav-row:last-child {
  border-bottom: none;
}

.post-nav-row:hover {
  background: #fcf9f2;
}

.post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 90px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.post-nav-title {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
}

.post-nav-date {
  font-size: 0.88rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.post-nav-empty {
  color: #a89f8f;
  font-weight: 500;
}

/* 하단 액션 버튼바 */
.post-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.8rem;
  margin-bottom: 3rem;
}

/* 토스트 메시지 */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2b2216;
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  pointer-events: none;
}

.toast-notice.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 768px) {
  .post-view-card {
    padding: 1.6rem 1.2rem;
  }
  .post-title {
    font-size: 1.4rem;
  }
  .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-stats-meta {
    width: 100%;
    justify-content: space-between;
  }
  .post-comments-container {
    padding: 1.6rem 1.2rem;
  }
  .comment-form-row {
    grid-template-columns: 1fr;
  }
  .post-nav-row {
    padding: 0.9rem 1rem;
  }
  .post-nav-label {
    min-width: 75px;
    font-size: 0.85rem;
  }
  .post-nav-date {
    display: none;
  }
}

/* 인쇄 스타일 */
@media print {
  .site-header,
  .site-footer,
  .post-toolbar,
  .post-reactions-bar,
  .comment-form,
  .post-nav-container,
  .post-bottom-actions,
  .page-hero {
    display: none !important;
  }
  .post-view-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* ===========================================================================
   14. 종중 소식 - 행사 안내 상세 (Event View) 스타일
   =========================================================================== */
.event-summary-box {
  background: #fbf8f2;
  border: 1px solid #ede3d4;
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  margin: 1.8rem 0 2.2rem;
  box-shadow: 0 2px 10px rgba(184, 142, 60, 0.06);
}

.event-summary-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.6rem;
}

.event-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event-summary-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #725a38;
}

.event-summary-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .event-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}



