/* =====================================================
   pages.css — 페이지별 스타일 취합
   각 페이지의 <style> 블록을 여기서 관리합니다
   ===================================================== */

/* -------------------------------------------------------
   공통 — 게시판 반응형 (board / qna / autograph)
   ------------------------------------------------------- */
.search-wrap {
  position: relative;
  flex: 0 1 360px;
  min-width: 200px;
  width: 360px;
}
.search-wrap input {
  padding-right: 40px;
  width: 100%;
  box-sizing: border-box;
}
.search-wrap button {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pewter);
  transition: color var(--transition);
}
.search-wrap button:hover { color: var(--electric-blue); }

@media (max-width: 767px) {
  .search-wrap {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 150px;
  }
  .board-table thead { display: none; }
  .board-table th:nth-child(1),
  .board-table td:nth-child(1),
  .board-table td:nth-child(5) { display: none; }
  .board-table th,
  .board-table td { padding: 8px 10px; }
}

/* -------------------------------------------------------
   공통 — 게시판 리스트 (2줄 카드형: 제목 / 작성자·날짜·조회 / 요약)
   ------------------------------------------------------- */
.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-list-item {
  display: block;
  padding: 8px 4px;
  border-bottom: 1px solid var(--cloud-gray);
  cursor: pointer;
  transition: background-color var(--transition);
}

.board-list-item:hover {
  background-color: var(--light-ash);
}

.board-list-item.is-notice {
  background-color: #FBF5F8;
}

.board-item-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--carbon-dark);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-item-title .board-badge-notice {
  color: var(--brand-pink);
  font-weight: 700;
  margin-right: 6px;
}

.board-item-meta {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--pewter);
  margin-bottom: 6px;
}

.board-item-meta .board-item-dot {
  margin: 0 6px;
  color: var(--pale-silver);
}

.board-item-desc {
  font-size: 13px;
  color: var(--silver-fog);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -------------------------------------------------------
   메인페이지 - 미지게시판 / 회원 알림방 미리보기 위젯
   ------------------------------------------------------- */
@media (max-width: 767px) {
  .home-board-widget {
    background: #fff;
    border-radius: 14px;
    padding: 20px 16px 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  }
  .home-board-widget + .home-board-widget {
    margin-top: 28px;
  }
}

/* -------------------------------------------------------
   공통 — 업로드 영역
   ------------------------------------------------------- */
.upload-area {
  display: block;
  border: 2px dashed var(--cloud-gray);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.upload-area:hover {
  border-color: var(--electric-blue);
  background: #f0f4ff;
}
.upload-area input[type="file"] { display: none; }

/* 이미지 교체 미리보기 (news_modify) */
.upload-preview { position: relative; }
.upload-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}
.upload-preview-change {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
}

/* -------------------------------------------------------
   공통 — 사진 미리보기 그리드 (photos_form / photos_modify)
   ------------------------------------------------------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.preview-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--light-ash);
  position: relative;
}
.preview-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-cell .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-cell .existing-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* -------------------------------------------------------
   공통 — 동영상 탭 / 파일 바 (videos_form / videos_modify)
   ------------------------------------------------------- */
.tab-btn {
  padding: 8px 20px;
  font-size: 14px;
  border: 1px solid var(--cloud-gray);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  color: var(--pewter);
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--carbon-dark);
  border-color: var(--carbon-dark);
  color: #fff;
}
.current-file-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light-ash);
  border-radius: 6px;
  border: 1px solid var(--cloud-gray);
  margin-bottom: 10px;
}

/* -------------------------------------------------------
   공통 — Quill 에디터
   (board_form / board_modify / news_form / news_modify / qna_form / qna_modify)
   ------------------------------------------------------- */
.ql-toolbar {
  border-color: var(--cloud-gray) !important;
  border-radius: 6px 6px 0 0;
}
.ql-container {
  border-color: var(--cloud-gray) !important;
  border-radius: 0 0 6px 6px;
  font-size: 15px;
}
.ql-editor { min-height: 290px; font-family: 'Pretendard', sans-serif; }
.ql-editor .ql-font-pretendard { font-family: 'Pretendard'; }
.ql-editor .ql-font-nanumgothic { font-family: 'Nanum Gothic'; }
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=pretendard]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=pretendard]::before {
  content: 'Pretendard';
  font-family: 'Pretendard';
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=nanumgothic]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=nanumgothic]::before {
  content: 'Nanum Gothic';
  font-family: 'Nanum Gothic';
}

/* -------------------------------------------------------
   Q&A — 배지 (qna / qna_detail)
   ------------------------------------------------------- */
.badge-answered {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  background: #e8f0fe;
  color: var(--electric-blue);
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-pending {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  background: var(--cloud-gray);
  color: var(--pewter);
  margin-left: 6px;
  vertical-align: middle;
}

/* -------------------------------------------------------
   Q&A 상세 (qna_detail)
   ------------------------------------------------------- */
.answer-box {
  background: #f0f4ff;
  border-left: 3px solid var(--electric-blue);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin-top: 32px;
}
.answer-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--electric-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.answer-body {
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.9;
}
.answer-meta {
  font-size: 12px;
  color: var(--silver-fog);
  margin-top: 12px;
}

/* Q&A 댓글 - 관리자 답변형 */
.answer-box--comment {
  margin-top: 0;
  padding: 16px 20px;
}
.answer-box--comment .answer-body {
  font-size: 14px;
  line-height: 1.8;
}
.answer-box--comment .answer-meta {
  margin-top: 10px;
}
.comment-item.is-admin {
  border-bottom: 0;
}

/* -------------------------------------------------------
   게시판 상세 공통 — 댓글 계층 표시
   · 1레벨 댓글·본문 작성자: @닉네임 배지로 강조(등록 버튼 핑크의 옅은 톤)
   · 2레벨 이상: 레벨별 들여쓰기 + 좌측 레일 색상 + ↳ 표시 (배경색 없음)
   · 4레벨 이상은 4레벨로 고정
   적용: board / mizimembers / autograph / opboard / qna _detail
   .comment-list 하위로 한정 (다른 .comment-item 에 영향 없음)
   ------------------------------------------------------- */
.comment-list {
  --lv2-rail: var(--electric-blue);
  --lv3-rail: #14a38b;
  --lv4-rail: #e0932b;
}
.comment-list .comment-item {
  position: relative;
  padding: 16px 0 14px;
}
/* 1레벨 댓글 사이에만 구분선 → 스레드 단위로 묶임 */
.comment-list > .comment-item.lv-1 ~ .comment-item.lv-1 {
  border-top: 1px solid var(--cloud-gray);
}
/* 답글(2레벨 이상) 공통: 좌측 레일만, 배경 없음 */
.comment-list .comment-item.lv-2,
.comment-list .comment-item.lv-3,
.comment-list .comment-item.lv-4 {
  margin-left: min(calc((var(--lv) - 1) * 28px), 84px);
  margin-bottom: 8px;
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--rail);
}
.comment-list .comment-item.lv-2 { --rail: var(--lv2-rail); }
.comment-list .comment-item.lv-3 { --rail: var(--lv3-rail); }
.comment-list .comment-item.lv-4 { --rail: var(--lv4-rail); }

/* Q&A 관리자 답변(answer-box)이 답글일 때: 박스 자체의 좌측 바를 쓰고 외곽 레일은 생략(이중 바 방지) */
.comment-list .comment-item.is-admin:not(.lv-1) {
  border-left: 0;
  padding-left: 0;
}

/* 답글 머리표시: ↳ 아이콘 */
.comment-list .comment-reply-mark {
  display: none;
  color: var(--rail);
  font-weight: 600;
  margin-right: 4px;
}
.comment-list .comment-item:not(.lv-1) .comment-reply-mark { display: inline; }

/* 작성자 배지 — 1레벨 댓글 + 본문 작성자 공용
 * (.comment-list 밖에서도 쓰이므로 범위 한정 없이 선언, 색상 변수도 배지 자체에 둠) */
.comment-author-badge {
  --author-text:   #C4006F;   /* #ED008C 계열, 흰 배경 대비 확보 */
  --author-bg:     #FFF0F8;
  --author-border: #F8B6DB;
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--author-text);
  background: var(--author-bg);
  border: 1px solid var(--author-border);
}

@media (max-width: 767px) {
  .comment-list .comment-item.lv-2,
  .comment-list .comment-item.lv-3,
  .comment-list .comment-item.lv-4 {
    margin-left: min(calc((var(--lv) - 1) * 14px), 42px);
  }
}

/* -------------------------------------------------------
   소식 상세 (news_detail)
   ------------------------------------------------------- */
.news-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--electric-blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.news-body {
  font-size: 16px;
  color: var(--graphite);
  line-height: 2;
}
.news-body p { margin-bottom: 20px; }
.news-body strong { color: var(--carbon-dark); font-weight: 600; }
.news-thumb {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/9;
  background: var(--light-ash);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card {
  border: 1px solid var(--cloud-gray);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--transition);
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--light-ash);
  display: block;
}
.related-card-body { padding: 12px 14px; }
.related-card-body span {
  font-size: 11px;
  font-weight: 500;
  color: var(--electric-blue);
}
.related-card-body h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--carbon-dark);
  margin: 4px 0 6px;
  line-height: 1.45;
}
.related-card-body p {
  font-size: 12px;
  color: var(--silver-fog);
}

/* -------------------------------------------------------
   낙서장 (smalltalk)
   ------------------------------------------------------- */
.talk-compose {
  border: 1px solid var(--cloud-gray);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
  background: #fff;
}
.talk-compose textarea {
  width: 100%;
  resize: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--carbon-dark);
  font-family: inherit;
  line-height: 1.7;
  background: transparent;
}
.talk-compose textarea::placeholder { color: var(--silver-fog); }
.talk-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cloud-gray);
}
.talk-card {
  border: 1px solid var(--cloud-gray);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow var(--transition);
}
.talk-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.talk-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cloud-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--pewter);
  flex-shrink: 0;
}
.talk-body {
  font-size: 15px;
  color: var(--graphite);
  line-height: 1.75;
  margin: 8px 0;
  word-break: break-word;
}
.talk-meta {
  font-size: 12px;
  color: var(--silver-fog);
  display: flex;
  align-items: center;
  gap: 12px;
}
.reply-form {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cloud-gray);
}
.reply-form.is-open { display: block; }
.reply-form textarea {
  width: 100%;
  resize: none;
  border: 1px solid var(--cloud-gray);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--carbon-dark);
  font-family: inherit;
  line-height: 1.6;
  background: var(--light-ash);
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.reply-form textarea:focus { border-color: var(--electric-blue); }
.reply-form textarea::placeholder { color: var(--silver-fog); }
.reply-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.reply-cancel-btn {
  background: none;
  border: 1px solid var(--cloud-gray);
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--pewter);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), color var(--transition);
}
.reply-cancel-btn:hover { border-color: var(--carbon-dark); color: var(--carbon-dark); }
.reply-submit-btn {
  background: var(--electric-blue);
  border: none;
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--transition);
}
.reply-submit-btn:hover { background: #2f58cc; }

/* -------------------------------------------------------
   회원 알림방 (mizimembers)
   ------------------------------------------------------- */
.notice-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  margin-right: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.badge-event   { background: #fff3e0; color: #e65100; }
.badge-benefit { background: #e8f5e9; color: #2e7d32; }
.badge-notice  { background: #e8f0fe; color: var(--electric-blue); }

/* -------------------------------------------------------
   Q&A 목록 (qna) - 제목 카테고리 태그
   ------------------------------------------------------- */
.qna-cat-tag {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  vertical-align: middle;
  white-space: nowrap;
  background: var(--light-ash);
  color: var(--pewter);
}
.qna-cat-tag.is-notice {
  background: #e8f0fe;
  color: var(--electric-blue);
}
.qna-view-count {
  color: var(--silver-fog);
  font-size: 12px;
}
.notice-card {
  border: 1px solid var(--cloud-gray);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
}
.notice-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.notice-card .notice-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--carbon-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.notice-card .notice-title .board-link { color: inherit; text-decoration: none; cursor: pointer; }
.notice-card .notice-title .board-link:hover { color: var(--electric-blue); }
.notice-card .notice-meta {
  font-size: 13px;
  color: var(--silver-fog);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.notice-card .notice-desc {
  font-size: 14px;
  color: var(--pewter);
  margin-top: 8px;
  line-height: 1.6;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.member-only-banner {
  background: linear-gradient(135deg, #3E6AE1 0%, #2a4db8 100%);
  border-radius: 8px;
  padding: 20px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.member-only-banner svg { flex-shrink: 0; opacity: 0.9; }
.member-only-banner p { font-size: 13px; opacity: 0.85; margin-top: 4px; }

/* -------------------------------------------------------
   동영상 상세 (videos_detail)
   ------------------------------------------------------- */
.video-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
}
.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.video-player:hover img { opacity: 0.6; }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-btn-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.video-player:hover .play-btn-circle { transform: scale(1.08); }
.related-video {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--cloud-gray);
  transition: opacity var(--transition);
}
.related-video:last-child { border-bottom: none; }
.related-video:hover { opacity: 0.75; }
.related-thumb {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--carbon-dark);
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  display: block;
}
.related-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-thumb-play div {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------
   사진 상세 (photos_detail)
   ------------------------------------------------------- */
.photo-viewer {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.photo-viewer img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
}
.thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}
.thumb-strip::-webkit-scrollbar { height: 4px; }
.thumb-strip::-webkit-scrollbar-track { background: var(--light-ash); }
.thumb-strip::-webkit-scrollbar-thumb { background: var(--cloud-gray); border-radius: 2px; }
.thumb-item {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.thumb-item.active { border-color: var(--electric-blue); }
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------
   친필메시지 상세 (autograph_detail)
   ------------------------------------------------------- */
.autograph-image {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 32px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.autograph-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.post-nav { border-top: 1px solid var(--cloud-gray); margin-top: 40px; }
.post-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cloud-gray);
  text-decoration: none;
  transition: background var(--transition);
}
.post-nav-item:hover { background: var(--light-ash); padding-left: 8px; }
.post-nav-label {
  font-size: 12px;
  color: var(--silver-fog);
  flex-shrink: 0;
  width: 36px;
}
.post-nav-title {
  font-size: 14px;
  color: var(--graphite);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-nav-date {
  font-size: 12px;
  color: var(--silver-fog);
  flex-shrink: 0;
}
.qna-lock {
    display: inline-block;
    vertical-align: -2px;
    margin-left: 4px;
    color: var(--pewter);
    flex-shrink: 0;
}
		/* clubmizi 페이지 전용 - 소개글 / 규약 */
		.mizi-intro { max-width: 860px; margin: 0 auto 56px; }
		.mizi-intro .news-body p { margin-bottom: 22px; }
		.mizi-intro .news-body p:last-child { margin-bottom: 0; }

		.mizi-rules { max-width: 860px; margin: 0 auto; }
		.mizi-rules-header {
			text-align: center;
			margin-bottom: 40px;
			padding-top: 40px;
			border-top: 1px solid var(--cloud-gray);
		}
		.mizi-rules-header h2 {
			font-size: 24px;
			font-weight: 600;
			color: var(--carbon-dark);
			letter-spacing: -0.01em;
		}

		.rule-section { margin-bottom: 40px; }
		.rule-section-title {
			display: flex;
			align-items: center;
			gap: 10px;
			font-size: 18px;
			font-weight: 600;
			color: #fff;
			background: var(--electric-blue);
			border-radius: 6px;
			padding: 10px 16px;
			margin-bottom: 20px;
		}

		.rule-item { margin-bottom: 24px; }
		.rule-item:last-child { margin-bottom: 0; }
		.rule-item-title {
			font-size: 15px;
			font-weight: 600;
			color: var(--carbon-dark);
			margin-bottom: 10px;
		}
		.rule-item-lead {
			font-size: 14px;
			color: var(--graphite);
			line-height: 1.8;
			margin-bottom: 10px;
		}
		.rule-list {
			list-style: none;
			display: flex;
			flex-direction: column;
			gap: 8px;
		}
		.rule-list li {
			position: relative;
			padding-left: 14px;
			font-size: 14px;
			color: var(--graphite);
			line-height: 1.8;
		}
		.rule-list li::before {
			content: '-';
			position: absolute;
			left: 0;
			color: var(--silver-fog);
		}

		.rule-closing {
			margin-top: 40px;
			padding: 24px 28px;
			background: var(--light-ash);
			border-radius: 8px;
		}
		.rule-closing p {
			font-size: 14px;
			color: var(--graphite);
			line-height: 1.9;
			margin-bottom: 14px;
		}
		.rule-closing p:last-child { margin-bottom: 0; }

		.rule-notice {
			margin-top: 24px;
			padding: 18px 20px;
			border-left: 3px solid var(--electric-blue);
			background: #f0f4ff;
			font-size: 13px;
			color: var(--graphite);
			line-height: 1.8;
			border-radius: 0 6px 6px 0;
		}

		@media (max-width: 767px) {
			.mizi-rules-header h2 { font-size: 20px; }
			.rule-section-title { font-size: 16px; }
		}

/* -------------------------------------------------------
   홈 (index) — 공연 카운트다운
   동작: assets/js/countdown.js
   색상: 버튼(btn-write-2/3)·작성자 배지와 같은 핑크 계열
     #ED008C 기본 / #B8006B 그라데이션 끝 / #830050 진한 톤
     #C4006F 글자용 / #FFF0F8 옅은 배경 / #F8B6DB 옅은 테두리
   ------------------------------------------------------- */
.concert-countdown {
  --cd-bg:        #FFF0F8;   /* 섹션 배경 (배지 배경과 동일) */
  --cd-line:      #F8B6DB;   /* 섹션 위아래 경계선 */
  --cd-period:    #C4006F;   /* 공연 기간 문구 */
  --cd-title:     #830050;   /* 제목 (진한 핑크) */
  --cd-box-from:  #ED008C;   /* 숫자 칸: btn-write-3 과 동일한 유광 그라데이션 */
  --cd-box-to:    #B8006B;
  --cd-box-edge:  #C4006F;
  --cd-label:     rgba(255, 255, 255, 0.85);
  --cd-value:     #fff;
  background: var(--cd-bg);
  border-top: 1px solid var(--cd-line);
  border-bottom: 1px solid var(--cd-line);
  padding: 36px 24px;
}
.concert-countdown[hidden] { display: none; }

.countdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.countdown-period {
  font-size: clamp(16px, 1.9vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--cd-period);
}
.countdown-title {
  margin-top: 6px;
  font-size: clamp(17px, 2.4vw, 28px);   /* 이전(24~40px)의 약 70% */
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cd-title);
}

.countdown-timer {
  display: flex;
  gap: 12px;
}
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(72px, 10vw, 150px);
  padding: 12px 20px;
  border: 1px solid var(--cd-box-edge);
  border-radius: 8px;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.08) 48%,
      rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, var(--cd-box-from) 0%, var(--cd-box-to) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(131, 0, 80, 0.35),
    0 4px 12px rgba(237, 0, 140, 0.18);
  text-shadow: 0 1px 1px rgba(100, 0, 60, 0.35);
  line-height: 1.2;
}
.countdown-label {
  margin-top: 4px;
  font-size: clamp(14px, 2vw, 26px);
  font-weight: 500;
  color: var(--cd-label);
}
/* 숫자를 라벨(일/시/분/초) 위에 표시 — 마크업 순서는 그대로 두고 order 로 변경 */
.countdown-value {
  order: -1;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--cd-value);
  font-variant-numeric: tabular-nums;   /* 숫자 폭 고정 → 초가 바뀔 때 흔들림 방지 */
}

/* 공연 기간 중: 타이머 숨기고 안내 문구만 */
.concert-countdown.is-live .countdown-timer { display: none; }

@media (max-width: 767px) {
  .concert-countdown { padding: 28px 16px; }
  .countdown-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 18px;
  }
  .countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .countdown-box { min-width: 0; padding: 10px 4px; }
  .countdown-label { font-size: 12px; }
  .countdown-value { font-size: 20px; }
}

/* -------------------------------------------------------
   아이디/비밀번호 문의 (login_accoun)
   · 회원가입(sign) 화면과 같은 카드 구성, 클래스는 acct- 접두어로 한정
   ------------------------------------------------------- */
.acct-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
  background: var(--light-ash);
}

.acct-card {
  width: 100%;
  max-width: 480px;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
}

.acct-title {
  margin-bottom: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  color: var(--carbon-dark);
}

.acct-sub {
  margin-bottom: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--pewter);
}

/* 문자 안내 박스 */
.acct-notice {
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid #F8B6DB;
  border-radius: 6px;
  background: #FFF0F8;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
  text-align: center;
}
.acct-notice strong { color: #C4006F; }

.acct-req  { color: var(--electric-blue); }
.acct-opt  { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--silver-fog); }
.acct-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--silver-fog); }

/* 문의 유형 (라디오) */
.acct-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.acct-type label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--graphite);
  cursor: pointer;
}
.acct-type input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-pink);
}

.acct-count {
  margin-top: 4px;
  text-align: right;
  font-size: 12px;
  color: var(--silver-fog);
}

/* 개인정보 동의 */
.acct-agree {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 4px;
  background: var(--light-ash);
  font-size: 12px;
  line-height: 1.7;
  color: var(--pewter);
}
.acct-agree .ui-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--graphite);
  cursor: pointer;
}

.acct-recaptcha .g-recaptcha { transform-origin: 0 0; }
@media (max-width: 380px) {
  .acct-recaptcha .g-recaptcha { transform: scale(0.9); }
}

.acct-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: var(--pewter);
}
.acct-links a {
  font-weight: 500;
  color: var(--electric-blue);
  text-decoration: none;
}
.acct-links a:hover { text-decoration: underline; }

/* 봇 방지용 숨김 입력칸 (화면 밖으로 이동) */
.acct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 모바일: 좌/우 여백을 PC 값의 절반으로 (페이지 24→12px, 카드 내부 40→20px) */
@media (max-width: 767px) {
  .acct-page { padding: 80px 12px 48px; }
  .acct-card { padding: 40px 20px; }
}
