:root {

  /* ── 타이포그래피 스케일 (PROJECT_RULES.md 원칙3 / layout.css --fs-* 공통 참조) ── */
  --pub-fs-xs: var(--fs-xs, 12px);   /* 12px — 배지 전용 */
  --pub-fs-sm: var(--fs-sm, 14px);   /* 14px — 메타·날짜·보조텍스트 최솟값 */
  --pub-fs-base: var(--fs-base, 16px);   /* 16px — 본문 기본 */
  --pub-fs-md: var(--fs-md, 17px);   /* 17px — 강조 본문·버튼·폼 */
  --pub-fs-lg: var(--fs-lg, 18px);   /* 18px — 카드 제목·섹션명 */
  --pub-fs-xl: var(--fs-xl, 20px);   /* 20px — 서브 헤더 */
  --pub-fs-2xl: var(--fs-2xl, 24px);   /* 24px — 페이지 제목 */
  --pub-fs-3xl: var(--fs-3xl, 28px);   /* 28px — 섹션 대제목 */
  --pub-fs-hero: var(--fs-hero, 32px);   /* 32px — 히어로 제목 */
}

/* ═══════════════════════════════════════════
   홍보포털 전용 CSS  –  publicity/assets/css/publicity.css
   ═══════════════════════════════════════════ */

/* ── rem 기준 폰트 크기 고정 (홍보포털 전체 페이지 공통 적용) ──
   placard.css / event CSS 등 rem 단위 사용 요소의 기준점.
   layout.css·style.css에서 html font-size가 명시되지 않아
   브라우저 기본값(16px)이 깨지는 문제를 여기서 고정함. */
html { font-size: var(--pub-fs-base); }

/* ── 전체 래퍼 ── */
.pub-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 60px;
  box-sizing: border-box;
}

/* ── 서브 네비 ── */
.pub-subnav {
  background: #fff;
  border-bottom: 2px solid #f1f5f9;
  margin: 0 -16px 24px;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pub-subnav-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 0;
  scrollbar-width: none;
}
.pub-subnav-inner::-webkit-scrollbar { display: none; }
.pub-snav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pub-snav-item:hover { background: #f1f5f9; color: #1e293b; }
.pub-snav-item.active {
  background: var(--ac, #8e44ad);
  color: #fff;
}
.pub-snav-write {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #fff;
  background: #8e44ad;
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
  transition: background .15s;
}
.pub-snav-write:hover { background: #7d3c98; }

/* ── 2단 레이아웃 ── */
.pub-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .pub-body { grid-template-columns: 1fr; }
  .pub-sidebar { display: none; }
}

/* ── 히어로 헤더 ── */
.pub-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 24px;
}
.pub-hero-icon {
  font-size:var(--pub-fs-hero);
  opacity: .9;
  flex-shrink: 0;
}
.pub-hero-text { flex: 1; }
.pub-hero-text h1 {
  margin: 0 0 6px;
  font-size: var(--pub-fs-2xl);
  font-weight: 800;
}
.pub-hero-text p { margin: 0; font-size: var(--pub-fs-sm); opacity: .85; }
.pub-hero-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.pub-stat { text-align: center; }
.pub-stat-num { display: block; font-size:var(--pub-fs-3xl); font-weight: 800; }
.pub-stat-label { font-size:var(--pub-fs-xs); opacity: .8; }

/* ── 섹션 공통 ── */
.pub-section { margin-bottom: 32px; }
.pub-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}
.pub-section-hd h2 {
  margin: 0;
  font-size: var(--pub-fs-base);
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pub-section-hd h2 i { color: #8e44ad; }
.pub-more-link {
  font-size: var(--pub-fs-xs);
  color: #8e44ad;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.pub-more-link:hover { text-decoration: underline; }

/* ── 최신 글 목록 ── */
.pub-latest-list { display: flex; flex-direction: column; gap: 4px; }
.pub-latest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  background: #fff;
  border: 1px solid #f1f5f9;
  transition: background .12s, box-shadow .12s;
}
.pub-latest-item:hover { background: #fdf4ff; border-color: #e9d5ff; box-shadow: 0 2px 8px rgba(142,68,173,.08); }
.pub-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-latest-title {
  flex: 1;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pub-latest-meta {
  display: flex;
  gap: 10px;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 카테고리 그리드 ── */
.pub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.pub-cat-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .pub-cat-grid-2 { grid-template-columns: 1fr; }
}
.pub-cat-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  border-top: 3px solid var(--cc, #8e44ad);
}
.pub-cat-block-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.pub-cat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--pub-fs-sm);
  flex-shrink: 0;
}
.pub-cat-name { font-size: var(--pub-fs-sm); font-weight: 800; color: #1e293b; flex: 1; }
.pub-cat-more {
  font-size:var(--pub-fs-xs);
  color: var(--cc, #8e44ad);
  text-decoration: none;
  font-weight: 600;
}
.pub-cat-posts {
  list-style: none;
  margin: 0; padding: 8px 0;
}
.pub-cat-posts li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: var(--pub-fs-sm);
  color: #374151;
  text-decoration: none;
  transition: background .1s;
}
.pub-cat-posts li a:hover { background: #fdf4ff; }
.pub-cat-post-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.pub-cat-post-date { font-size:var(--pub-fs-xs); color: #94a3b8; flex-shrink: 0; margin-left: 8px; }
.pub-cat-empty { padding: 16px; font-size: var(--pub-fs-sm); color: #94a3b8; text-align: center; }

/* ── 빈 상태 ── */
.pub-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 20px;
  font-size: var(--pub-fs-base);
  color: #94a3b8;
}
.pub-empty i { font-size:var(--pub-fs-hero); }

/* ── 사이드바 ── */
.pub-sidebar { display: flex; flex-direction: column; gap: 16px; }
.pub-write-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #8e44ad;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: var(--pub-fs-sm);
  text-decoration: none;
  transition: background .15s;
}
.pub-write-btn:hover { background: #7d3c98; }
.pub-side-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.pub-side-box-hd {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pub-popular-list {
  list-style: none;
  margin: 0; padding: 8px 0;
}
.pub-popular-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
}
.pub-popular-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  text-decoration: none;
  color: #374151;
  gap: 8px;
}
.pub-rank {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size:var(--pub-fs-xs);
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
}
.pub-rank.top3 { background: #8e44ad; color: #fff; }
.pub-pop-title { font-size: var(--pub-fs-xs); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-pop-meta { font-size:var(--pub-fs-xs); color: #94a3b8; flex-shrink: 0; }
.pub-side-cat-list {
  list-style: none;
  margin: 0; padding: 6px 0;
}
.pub-side-cat-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: var(--pub-fs-sm);
  color: #374151;
  text-decoration: none;
  transition: background .1s;
}
.pub-side-cat-list li a:hover { background: #fdf4ff; }
.pub-side-cat-list li a.active { background: #f3e8ff; font-weight: 700; color: #8e44ad; }
.pub-side-cnt {
  margin-left: auto;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 10px;
}
.pub-side-rel-list {
  list-style: none;
  margin: 0; padding: 6px 0;
}
.pub-side-rel-list li a {
  display: block;
  padding: 7px 14px;
  font-size: var(--pub-fs-xs);
  color: #374151;
  text-decoration: none;
  transition: background .1s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pub-side-rel-list li a:hover { background: #fdf4ff; }
.pub-side-rel-list li.current a { background: #f3e8ff; color: #8e44ad; font-weight: 700; }
.pub-side-info-list {
  list-style: none;
  margin: 0; padding: 10px 14px;
}
.pub-side-info-list li {
  font-size: var(--pub-fs-xs);
  color: #64748b;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}
.pub-side-info-list li:last-child { border-bottom: none; }

/* ── 목록 페이지 ── */
.pub-list-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #8e44ad;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.pub-list-hd h1 {
  margin: 0 0 4px;
  font-size: var(--pub-fs-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pub-list-hd p { margin: 0; font-size: var(--pub-fs-xs); color: #64748b; }
.pub-total-cnt { font-size: var(--pub-fs-sm); color: #64748b; white-space: nowrap; }
.pub-total-cnt strong { color: #8e44ad; font-weight: 800; }

.pub-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.pub-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  outline: none;
  transition: border-color .15s;
}
.pub-search-input:focus { border-color: #8e44ad; }
.pub-search-btn {
  padding: 10px 18px;
  background: #8e44ad;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.pub-search-btn:hover { background: #7d3c98; }
.pub-search-clear {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  color: #64748b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .12s;
}
.pub-search-clear:hover { background: #f8fafc; }

.pub-list-table {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  text-decoration: none;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  transition: background .1s;
}
.pub-row:last-child { border-bottom: none; }
.pub-row:hover { background: #fdf4ff; }
.pub-row-num {
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.pub-row-title {
  flex: 1;
  font-size: var(--pub-fs-sm);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pub-row-meta {
  display: flex;
  gap: 10px;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-row-author { color: #64748b; }

/* ── 페이지네이션 ── */
.pub-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
}
.pub-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #fff;
  transition: all .12s;
}
.pub-page-btn:hover { border-color: #8e44ad; color: #8e44ad; }
.pub-page-btn.active { background: #8e44ad; color: #fff; border-color: #8e44ad; }

/* ── 상세 페이지 ── */
.pub-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}
.pub-detail-hd {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.pub-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
  margin-bottom: 12px;
}
.pub-detail-breadcrumb a { color: #94a3b8; text-decoration: none; }
.pub-detail-breadcrumb a:hover { color: #8e44ad; }
.pub-detail-breadcrumb i { font-size:var(--pub-fs-xs); }
.pub-detail-title {
  margin: 0 0 14px;
  font-size:var(--pub-fs-2xl);
  font-weight: 800;
  color: #1e293b;
  line-height: 1.4;
}
.pub-detail-meta {
  display: flex;
  gap: 16px;
  font-size: var(--pub-fs-sm);
  color: #64748b;
  flex-wrap: wrap;
}
.pub-detail-meta i { margin-right: 4px; }
.pub-detail-body {
  padding: 28px;
  font-size: var(--pub-fs-base);
  line-height: 1.8;
  color: #374151;
  min-height: 200px;
}
.pub-detail-body p { margin: 0 0 1em; }
.pub-detail-foot {
  display: flex;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  gap: 10px;
}
.pub-btn-back, .pub-btn-write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all .12s;
}
.pub-btn-back { border: 1px solid #e2e8f0; color: #475569; background: #fff; }
.pub-btn-back:hover { background: #f1f5f9; }
.pub-btn-write { background: #8e44ad; color: #fff; }
.pub-btn-write:hover { background: #7d3c98; }

.pub-prevnext { border-top: 1px solid #f1f5f9; }
.pub-pn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  text-decoration: none;
  color: #374151;
  border-bottom: 1px solid #f8fafc;
  transition: background .1s;
  font-size: var(--pub-fs-sm);
}
.pub-pn-item:hover { background: #fdf4ff; }
.pub-pn-label { color: #94a3b8; font-size: var(--pub-fs-xs); flex-shrink: 0; width: 60px; }
.pub-pn-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 글쓰기 페이지 ── */
.pub-write-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}
.pub-write-hd {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  color: #fff;
}
.pub-write-hd h1 { margin: 0 0 6px; font-size: var(--pub-fs-xl); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.pub-write-hd p { margin: 0; font-size: var(--pub-fs-sm); opacity: .85; }

.pub-alert {
  margin: 16px 28px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pub-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.pub-alert ul { margin: 0; padding-left: 16px; }

.pub-form { padding: 24px 28px; }
.pub-form-row { margin-bottom: 20px; }
.pub-form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pub-form-label {
  display: block;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}
.pub-form-label.required::after {
  content: ' *';
  color: #e74c3c;
}
.pub-form-input, .pub-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  color: #1e293b;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.pub-form-input:focus, .pub-form-textarea:focus { border-color: #8e44ad; box-shadow: 0 0 0 3px rgba(142,68,173,.1); }
.pub-form-textarea { resize: vertical; line-height: 1.6; }
.pub-form-hint { font-size:var(--pub-fs-xs); color: #94a3b8; margin-top: 4px; display: block; }

.pub-cat-select-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-cat-radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .12s;
}
.pub-cat-radio input { display: none; }
.pub-cat-radio:hover { border-color: var(--cc, #8e44ad); color: var(--cc, #8e44ad); }
.pub-cat-radio.selected {
  border-color: var(--cc, #8e44ad);
  background: var(--cc, #8e44ad);
  color: #fff;
}

.pub-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
}
.pub-btn-cancel, .pub-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .12s;
}
.pub-btn-cancel { background: #f1f5f9; color: #475569; }
.pub-btn-cancel:hover { background: #e2e8f0; }
.pub-btn-submit { background: #8e44ad; color: #fff; }
.pub-btn-submit:hover { background: #7d3c98; }

/* ════════════════════════════════════════════════════════════
   행사·이벤트 목록 (event_list.php) – ev-* 컴포넌트
════════════════════════════════════════════════════════════ */

/* 전체 랩퍼 확장 */
.ev-wrap { max-width: 1280px; }
.ev-body { display: flex; gap: 28px; align-items: flex-start; }
.ev-main { flex: 1; min-width: 0; }
.ev-sidebar { width: 240px; flex-shrink: 0; }

/* ── 페이지 헤더 ── */
.ev-page-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  border-bottom: 2px solid #e74c3c;
  margin-bottom: 0;
}
.ev-page-hd-left h1 {
  font-size:var(--pub-fs-2xl);
  font-weight: 800;
  color: #e74c3c;
  margin: 0 0 4px;
}
.ev-page-hd-left h1 i { margin-right: 6px; }
.ev-page-hd-left p { font-size: var(--pub-fs-sm); color: #64748b; margin: 0; }
.ev-page-hd-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ev-total-cnt { font-size: var(--pub-fs-sm); color: #64748b; }
.ev-total-cnt strong { color: #e74c3c; font-weight: 700; }
.ev-reg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #e74c3c;
  color: #fff;
  border-radius: 20px;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.ev-reg-btn:hover { background: #c0392b; color: #fff; }

/* ── 다중 필터 바 ── */
.ev-filter-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 16px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ev-filter-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #f1f5f9;
  min-height: 44px;
}
.ev-filter-row:last-child { border-bottom: none; }

.ev-filter-label {
  width: 80px;
  flex-shrink: 0;
  font-size: var(--pub-fs-xs);
  font-weight: 700;
  color: #475569;
  padding: 0 12px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  height: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ev-filter-label i { color: #94a3b8; font-size:var(--pub-fs-xs); }

.ev-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px;
  flex: 1;
}
.ev-fbtn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--pub-fs-xs);
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .12s;
  white-space: nowrap;
}
.ev-fbtn:hover {
  background: #fee2e2;
  color: #e74c3c;
  border-color: #fca5a5;
}
.ev-fbtn.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
  font-weight: 700;
}

/* 검색 행 */
.ev-filter-search-row .ev-filter-btns { padding: 8px 10px; }
.ev-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.ev-search-input {
  flex: 1;
  max-width: 400px;
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: var(--pub-fs-sm);
  outline: none;
  transition: border-color .15s;
}
.ev-search-input:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}
.ev-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.ev-search-btn:hover { background: #c0392b; }
.ev-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 50%;
  text-decoration: none;
  font-size: var(--pub-fs-xs);
  transition: all .12s;
}
.ev-search-clear:hover { background: #fee2e2; color: #e74c3c; }

/* ── 활성 필터 태그 ── */
.ev-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-bottom: 4px;
}
.ev-af-label { font-size: var(--pub-fs-xs); color: #94a3b8; font-weight: 600; }
.ev-af-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #fff5f5;
  color: #e74c3c;
  border: 1px solid #fca5a5;
  border-radius: 20px;
  font-size: var(--pub-fs-xs);
  font-weight: 500;
}
.ev-af-remove {
  color: #e74c3c;
  text-decoration: none;
  font-size:var(--pub-fs-xs);
  opacity: .7;
  transition: opacity .12s;
}
.ev-af-remove:hover { opacity: 1; }
.ev-af-reset {
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .12s;
}
.ev-af-reset:hover { color: #e74c3c; }

/* ── 카드 그리드 공통 (뷰 전환 JS가 ev-view-* 클래스로 제어) ── */
.ev-grid {
  margin-top: 4px;
}

/* ── 이벤트 카드 ── */
.ev-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all .18s;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(231,76,60,.15);
  border-color: #fca5a5;
}

/* 이미지 영역 */
.ev-card-img {
  position: relative;
  width: 100%;
  padding-top: 58%;
  background: #f8f9fa;
  overflow: hidden;
}
.ev-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.ev-card:hover .ev-card-img img { transform: scale(1.05); }

/* 상태 배지 */
.ev-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  z-index: 2;
}
.ev-status-on  { background: #e74c3c; color: #fff; }
.ev-status-soon { background: #f39c12; color: #fff; }

/* 비용 배지 */
.ev-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  z-index: 2;
}
.ev-badge-free { background: #27ae60; color: #fff; }
.ev-badge-paid { background: #2980b9; color: #fff; }
.ev-badge-both { background: #7f8c8d; color: #fff; }

/* 카드 본문 */
.ev-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
/* ev-card-body-main: 카드형·목록형·웹진형에서는 flex:1 컬럼으로 동작 */
.ev-card-body-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
/* ev-card-body-right: 기본은 숨김 (게시판형에서 ev-show-board로 표시) */
.ev-card-body-right {
  display: none;
}

.ev-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ev-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size:var(--pub-fs-xs);
  font-weight: 600;
}
.ev-tag-cat    { background: #fff5f5; color: #e74c3c; border: 1px solid #fca5a5; }
.ev-tag-region { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }

.ev-card-title {
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--pub-fs-xs);
  color: #64748b;
  flex-wrap: wrap;
}
.ev-card-date i { color: #e74c3c; font-size:var(--pub-fs-xs); }
.ev-date-sep { color: #94a3b8; margin: 0 2px; }

.ev-card-venue {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--pub-fs-xs);
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-card-venue i { color: #7c3aed; font-size:var(--pub-fs-xs); flex-shrink: 0; }
.ev-venue-type {
  font-size:var(--pub-fs-xs);
  font-weight: 600;
  color: #7c3aed;
  background: #f3f0ff;
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}
.ev-addr {
  color: #64748b;
  font-size:var(--pub-fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}
.ev-org, .ev-age {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
}
.ev-org i { color: #64748b; }
.ev-age i { color: #f59e0b; }

/* ── 빈 결과 ── */
.ev-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.ev-empty i { font-size:var(--pub-fs-hero); margin-bottom: 16px; display: block; }
.ev-empty p { font-size: var(--pub-fs-base); margin: 0 0 16px; }
.ev-empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  text-decoration: none;
  font-size: var(--pub-fs-sm);
  transition: all .12s;
}
.ev-empty-reset:hover { background: #e74c3c; color: #fff; }

/* ── 페이지네이션 ── */
.ev-pagination { margin-top: 28px; }

/* ── 사이드바 ── */
.ev-sidebar .pub-write-btn {
  background: #e74c3c;
}
.ev-sidebar .pub-write-btn:hover { background: #c0392b; }

/* 빠른 필터 */
.ev-quick-filters { padding: 4px 2px; }
.ev-qf-group { margin-bottom: 12px; }
.ev-qf-group:last-child { margin-bottom: 0; }
.ev-qf-title {
  display: block;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.ev-qf-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin: 0 3px 4px 0;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: var(--pub-fs-xs);
  text-decoration: none;
  transition: all .12s;
}
.ev-qf-btn:hover { background: #fee2e2; color: #e74c3c; border-color: #fca5a5; }
.ev-qf-btn.active { background: #e74c3c; color: #fff; border-color: #e74c3c; font-weight: 700; }

/* 이달의 행사 통계 */
.ev-month-stats { list-style: none; padding: 0; margin: 0; }
.ev-month-stats li { margin-bottom: 8px; }
.ev-month-stats li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.ev-ms-region { font-size: var(--pub-fs-xs); color: #475569; width: 50px; flex-shrink: 0; }
.ev-ms-bar {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}
.ev-ms-bar span {
  display: block;
  height: 100%;
  background: #e74c3c;
  border-radius: 3px;
  transition: width .3s;
}
.ev-ms-cnt { font-size:var(--pub-fs-xs); color: #94a3b8; width: 24px; text-align: right; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   뷰 선택기 버튼 (목록형·웹진형·카드형·달력형)
══════════════════════════════════════════════════ */
.ev-view-toggle {
  display: flex;
  gap: 2px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}
.ev-vbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: var(--pub-fs-xs);
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.ev-vbtn i { font-size: var(--pub-fs-xs); }
.ev-vbtn:hover { background: #fff; color: #1e293b; }
.ev-vbtn.active {
  background: #fff;
  color: #e74c3c;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  font-weight: 700;
}
.ev-vbtn.active i { color: #e74c3c; }

/* ══════════════════════════════════════════════════
   뷰 전환 – 공통 숨김/표시 헬퍼
══════════════════════════════════════════════════ */
/* 카드형: list·news·webzine·board 전용 요소 숨김 */
.ev-view-card  .ev-show-list    { display: none !important; }
.ev-view-card  .ev-show-news    { display: none !important; }
.ev-view-card  .ev-show-webzine { display: none !important; }
.ev-view-card  .ev-show-board   { display: none !important; }
/* 목록형: card-img·news·webzine·board 전용 숨김 */
.ev-view-list  .ev-hide-list    { display: none !important; }
.ev-view-list  .ev-show-news    { display: none !important; }
.ev-view-list  .ev-show-webzine { display: none !important; }
.ev-view-list  .ev-show-board   { display: none !important; }
.ev-view-list  .ev-hide-board   { }   /* list에서는 card-img 이미 hide-list로 숨김 */
/* 뉴스형: list·webzine·board·card-img 전용 숨김 */
.ev-view-news  .ev-hide-news    { display: none !important; }
.ev-view-news  .ev-show-list    { display: none !important; }
.ev-view-news  .ev-show-webzine { display: none !important; }
.ev-view-news  .ev-show-board   { display: none !important; }
.ev-view-news  .ev-hide-list    { display: none !important; }
.ev-view-news  .ev-hide-board   { display: none !important; }
/* 뉴스형 전용 요소 강제 표시 */
.ev-view-news  .ev-show-news    { display: block !important; }
/* 웹진형: list·news·board 전용 숨김, card-img는 표시 */
.ev-view-webzine .ev-hide-list  { display: none !important; }
.ev-view-webzine .ev-show-list  { display: none !important; }
.ev-view-webzine .ev-show-news  { display: none !important; }
.ev-view-webzine .ev-show-board { display: none !important; }
/* 게시판형: card-img·news·webzine·list 전용 숨김 */
.ev-view-board .ev-hide-board   { display: none !important; }
.ev-view-board .ev-show-list    { display: none !important; }
.ev-view-board .ev-show-news    { display: none !important; }
.ev-view-board .ev-show-webzine { display: none !important; }

/* ══════════════════════════════════════════════════
   ── 카드형 ──
══════════════════════════════════════════════════ */
.ev-view-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ev-view-card .ev-card {
  flex-direction: column;
  border-radius: 12px;
}
.ev-view-card .ev-card-img { display: block; }
.ev-view-card .ev-wz-desc  { display: none; }

/* ══════════════════════════════════════════════════
   ── 목록형 (가로형 최적화, 데스크탑 공간 활용 극대화) ──
══════════════════════════════════════════════════ */
.ev-view-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ev-view-list .ev-card {
  flex-direction: row;
  align-items: stretch;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: none;
  padding: 0;
  gap: 0;
  transition: background .15s, border-color .15s;
  min-height: 100px;
}
.ev-view-list .ev-card:first-child { border-radius: 12px 12px 0 0; }
.ev-view-list .ev-card:last-child  { border-bottom: none; border-radius: 0 0 12px 12px; }
.ev-view-list .ev-card:hover {
  transform: none;
  box-shadow: inset 4px 0 0 #e74c3c;
  border-color: #fde8e8;
  background: #fffafa;
}

/* 목록형 썸네일 – 16:9 비율 넓은 이미지 */
.ev-list-thumb {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  margin: 12px 0 12px 14px;
  border-radius: 10px;
  background: #f1f5f9;
}
.ev-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.ev-view-list .ev-card:hover .ev-list-thumb img { transform: scale(1.04); }
.ev-list-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:var(--pub-fs-hero);
}
.ev-list-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.4;
}
.ev-list-badge-on   { background: #e74c3c; color: #fff; }
.ev-list-badge-soon { background: #f39c12; color: #fff; }

/* 목록형 카드 바디 – 2단 그리드로 정보 배치 */
.ev-view-list .ev-card-body {
  flex: 1;
  padding: 14px 20px 14px 16px;
  gap: 5px;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.ev-view-list .ev-card-tags { gap: 4px; }
.ev-view-list .ev-card-title {
  font-size: var(--pub-fs-base);
  font-weight: 700;
  -webkit-line-clamp: 1;
  margin: 0;
}
.ev-view-list .ev-card-date  {
  font-size: var(--pub-fs-xs);
  color: #64748b;
}
.ev-view-list .ev-card-venue { font-size: var(--pub-fs-xs); }
.ev-view-list .ev-card-footer {
  border-top: none;
  padding-top: 4px;
  margin-top: auto;
  gap: 10px;
}
/* 목록형 비용배지 (인라인) */
.ev-list-fee { display: inline-flex; }
.ev-list-fee .ev-badge {
  position: static;
  display: inline-block;
  padding: 1px 6px;
  font-size:var(--pub-fs-xs);
}

/* 목록형 우측 메타 컬럼 (날짜·장소·조회 등) */
.ev-view-list .ev-list-meta-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  width: 220px;
  padding: 14px 20px 14px 0;
  border-left: 1px solid #f1f5f9;
}

/* ══════════════════════════════════════════════════
   ── 웹진형 (에디토리얼 잡지 스타일, 포스터 이미지 표시) ──
══════════════════════════════════════════════════ */
.ev-view-webzine {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
/* 첫 번째 카드: 풀 와이드 피처 */
.ev-view-webzine .ev-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.ev-view-webzine .ev-card:first-child .ev-card-img {
  width: 45%;
  flex-shrink: 0;
  padding-top: 0;
  height: auto;
  min-height: 240px;
}
.ev-view-webzine .ev-card:first-child .ev-card-body {
  flex: 1;
  padding: 28px 28px 24px;
  justify-content: center;
  gap: 12px;
}
.ev-view-webzine .ev-card:first-child .ev-card-title {
  font-size:var(--pub-fs-2xl);
  -webkit-line-clamp: 3;
}
.ev-view-webzine .ev-card:first-child .ev-wz-desc {
  font-size: var(--pub-fs-sm);
  -webkit-line-clamp: 3;
}

/* 나머지 카드: 세로형 */
.ev-view-webzine .ev-card {
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.ev-view-webzine .ev-card-img {
  padding-top: 62%;
  display: block !important;  /* 이미지 영역 항상 표시 */
}
.ev-view-webzine .ev-card-body {
  gap: 8px;
  padding: 18px 18px 16px;
}
.ev-view-webzine .ev-card-title {
  font-size: var(--pub-fs-base);
  font-weight: 700;
  -webkit-line-clamp: 2;
  color: #1e293b;
}
.ev-wz-desc {
  font-size:var(--pub-fs-xs);
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-view-webzine .ev-card-date { font-size: var(--pub-fs-sm); }
.ev-view-webzine .ev-card-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
/* 웹진형 이미지 오버레이 효과 */
.ev-view-webzine .ev-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.4) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   ── 게시판형 (일반게시판 스타일, 한 줄 행 레이아웃) ──
══════════════════════════════════════════════════ */
.ev-view-board {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* 게시판 헤더행 */
.ev-view-board::before {
  content: '';
  display: block;
  height: 0;
}

/* 게시판형 각 행 */
.ev-view-board .ev-card {
  flex-direction: row;
  align-items: center;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: none;
  padding: 0;
  gap: 0;
  min-height: 64px;
  transition: background .12s;
  position: relative;
}
.ev-view-board .ev-card:first-child { border-radius: 12px 12px 0 0; }
.ev-view-board .ev-card:last-child  { border-bottom: none; border-radius: 0 0 12px 12px; }
.ev-view-board .ev-card:hover {
  transform: none;
  box-shadow: none;
  background: #fffafa;
  border-color: #fde8e8;
}
.ev-view-board .ev-card:hover .ev-board-thumb img { transform: scale(1.06); }

/* 게시판형 소형 썸네일 */
.ev-board-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  margin: 6px 12px 6px 14px;
  border-radius: 8px;
  background: #f1f5f9;
}
.ev-board-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.ev-board-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--pub-fs-xl);
}
.ev-board-status {
  position: absolute;
  bottom: 1px;
  left: 0;
  right: 0;
  text-align: center;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  line-height: 1.6;
}
.ev-board-status-on   { background: rgba(231,76,60,.85);  color: #fff; }
.ev-board-status-soon { background: rgba(243,156,18,.85); color: #fff; }

/* 게시판형 카드 바디 – 좌:태그+제목 / 우:날짜+장소+뷰 */
.ev-view-board .ev-card-body {
  flex: 1;
  padding: 8px 12px 8px 0;
  gap: 3px;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.ev-view-board .ev-card-body-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ev-view-board .ev-card-tags { gap: 3px; flex-wrap: nowrap; }
.ev-view-board .ev-card-title {
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  -webkit-line-clamp: 1;
  color: #1e293b;
  margin: 0;
}
.ev-view-board .ev-card-body-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 16px 0 12px;
  min-width: 200px;
}
.ev-view-board .ev-card-date  {
  font-size: var(--pub-fs-xs);
  color: #64748b;
  white-space: nowrap;
}
.ev-view-board .ev-card-venue { font-size:var(--pub-fs-xs); }
.ev-view-board .ev-card-footer {
  flex-direction: column;
  align-items: flex-end;
  border-top: none;
  padding-top: 0;
  gap: 3px;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
}

/* 게시판형: 뷰카운트 강조 */
.ev-view-board .ev-vc {
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}
.ev-view-board .ev-vc i { color: #94a3b8; }

/* 게시판형 비용배지 (인라인) */
.ev-view-board .ev-list-fee { display: inline-flex; }
.ev-view-board .ev-list-fee .ev-badge {
  position: static;
  display: inline-block;
  padding: 1px 5px;
  font-size:var(--pub-fs-xs);
}

/* ══════════════════════════════════════════════════
   ── 반응형 ──
══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .ev-view-card    { grid-template-columns: repeat(3, 1fr); }
  .ev-list-thumb   { width: 130px; height: 84px; }
}
@media (max-width: 1024px) {
  .ev-view-card    { grid-template-columns: repeat(2, 1fr); }
  .ev-view-webzine { grid-template-columns: repeat(2, 1fr); }
  .ev-view-webzine .ev-card:first-child { flex-direction: column; }
  .ev-view-webzine .ev-card:first-child .ev-card-img { width: 100%; min-height: 200px; padding-top: 55%; }
  .ev-body  { flex-direction: column; }
  .ev-sidebar { width: 100%; }
  .ev-list-thumb { width: 110px; height: 76px; }
}
@media (max-width: 768px) {
  .ev-view-card    { grid-template-columns: repeat(2, 1fr); }
  .ev-list-thumb   { width: 90px; height: 66px; }
  .ev-view-board .ev-card-body-right { min-width: 140px; }
}
@media (max-width: 640px) {
  .ev-view-card    { grid-template-columns: 1fr; }
  .ev-view-webzine { grid-template-columns: 1fr; }
  .ev-view-webzine .ev-card:first-child { grid-column: 1; }
  .ev-filter-label { width: 60px; font-size:var(--pub-fs-xs); }
  .ev-page-hd { flex-direction: column; gap: 8px; }
  .ev-page-hd-right { flex-direction: row; flex-wrap: wrap; }
  .ev-vbtn span { display: none; }  /* 모바일: 아이콘만 */
  .ev-vbtn { padding: 6px 10px; }
  .ev-view-list .ev-card-footer { display: none; }
  .ev-view-board .ev-card-body-right { display: none; }
  .ev-list-thumb { width: 72px; height: 56px; margin: 8px 10px 8px 10px; }
}


/* ══════════════════════════════════════════════════
   ── 뉴스형 (news) ── v2
   참조: 서울문화포털 스타일 – 5열 세로 포스터 카드
   상단: 세로형 포스터(2:3비율) + 우상단 분야배지 + 좌상단 상태배지
   하단: 제목(볼드·2줄) → 날짜 → 기관명
══════════════════════════════════════════════════ */

/* ── 그리드: 5열 ── */
.ev-view-news {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 4px 0;
}

/* ── 카드 기본 ── */
.ev-view-news .ev-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;               /* 포스터 이미지가 카드 경계 밖으로 나오지 않도록 */
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: #222;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  cursor: pointer;
  position: relative;             /* 배지 absolute 기준점 */
}
.ev-view-news .ev-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  border-color: #ccc;
  transform: translateY(-2px);
}
/* 선택(active) 카드 – 빨간 테두리 */
.ev-view-news .ev-card.ev-card-selected {
  border: 2px solid #e8392a;
  box-shadow: 0 4px 18px rgba(232,57,42,.18);
}

/* ── 포스터 이미지 영역 (2:3 세로형) ── */
.ev-news-poster {
  position: relative;
  width: 100%;
  padding-bottom: 150%;           /* 2:3 비율 = 150% */
  height: 0;
  overflow: hidden;
  background: #e8e8e8;
  flex-shrink: 0;
  border-radius: 0;               /* 카드 자체가 overflow:hidden이므로 불필요 */
  isolation: isolate;
}
.ev-news-poster img,
.ev-news-poster > div:not(.ev-news-poster-ph),
.ev-news-poster > [class*="evd-ph"],
.ev-news-poster > [class*="ev-ph"] {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.ev-news-poster img {
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .3s ease;
}
.ev-view-news .ev-card:hover .ev-news-poster img {
  transform: scale(1.03);
}

/* 포스터 없을 때 플레이스홀더 */
.ev-news-poster-ph {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size:var(--pub-fs-hero);
  padding: 20px;
  box-sizing: border-box;
}
.ev-news-poster-ph p {
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: rgba(255,255,255,.95);
  text-align: center;
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  word-break: keep-all;
}

/* ── 우상단 분야 배지 ── */
.ev-np-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(80, 20, 180, 0.88);
  color: #fff;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: .3px;
  line-height: 1.4;
  backdrop-filter: blur(3px);
  white-space: nowrap;
  z-index: 2;
}
/* 분야별 배지 색상 */
.ev-np-cat.cat-공연  { background: rgba(52, 73, 184, 0.9); }
.ev-np-cat.cat-전시  { background: rgba(142, 68, 173, 0.9); }
.ev-np-cat.cat-축제  { background: rgba(39, 174, 96, 0.9); }
.ev-np-cat.cat-교육  { background: rgba(41, 128, 185, 0.9); }
.ev-np-cat.cat-체험  { background: rgba(22, 160, 133, 0.9); }
.ev-np-cat.cat-스포츠 { background: rgba(231, 76, 60, 0.9); }

/* ── 좌상단 상태 배지 (진행중/D-n) ── */
.ev-np-status {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 2;
  backdrop-filter: blur(3px);
}
.ev-np-status-on   { background: rgba(231, 76, 60, 0.9); color: #fff; }
.ev-np-status-soon { background: rgba(243, 156, 18, 0.9); color: #fff; }

/* ── 하단 텍스트 영역 ── */
.ev-news-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
}
/* 제목: 굵게, 최대 2줄, 말줄임 */
.ev-nb-title {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  color: #111;
  line-height: 1.45;
  margin: 0 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}
/* 날짜 */
.ev-nb-date {
  font-size:var(--pub-fs-xs);
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 기관명/지역명 */
.ev-nb-org {
  font-size:var(--pub-fs-xs);
  color: #999;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ev-card-body 자체는 보이되, 내부 기존 항목만 숨김 */
.ev-view-news .ev-card-body { display: block; padding: 0; }
.ev-view-news .ev-card-body-main  { display: none; }
.ev-view-news .ev-card-body-right { display: none; }

/* ── 반응형 ── */
@media (max-width: 1200px) {
  .ev-view-news { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (max-width: 900px) {
  .ev-view-news { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 620px) {
  .ev-view-news { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ev-nb-title  { font-size:var(--pub-fs-xs); }
  .ev-nb-date   { font-size:var(--pub-fs-xs); }
  .ev-nb-org    { font-size:var(--pub-fs-xs); }
  .ev-np-cat, .ev-np-status { font-size:var(--pub-fs-xs); padding: 3px 6px; }
}


/* ════════════════════════════════════════════════════════════
   행사·이벤트 상세 (event_detail.php) – evd-* 컴포넌트 v2
════════════════════════════════════════════════════════════ */

/* ── 전체 래퍼 ── */
.evd-wrap { background: #f8fafc; }

/* ── 브레드크럼 바 ── */
.evd-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.evd-bc-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--pub-fs-sm);
  color: #64748b;
}
.evd-bc-inner a { color: #64748b; text-decoration: none; transition: color .15s; }
.evd-bc-inner a:hover { color: #e74c3c; }
.evd-bc-sep { font-size:var(--pub-fs-xs); color: #cbd5e1; }

/* ── 히어로 영역 (심플 헤더) ── */
.evd-hero {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

/* 브레드크럼 + 뱃지 한 줄 */
.evd-hero-toprow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.evd-bc-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  flex-shrink: 0;
}
.evd-bc-inline a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
}
.evd-bc-inline a:hover { color: var(--cat-color, #e74c3c); }
.evd-bc-sep2 { color: #cbd5e1; font-size:var(--pub-fs-xs); }
/* 이미지 배경 관련 (레거시 – 비활성) */
.evd-hero--has-img .evd-hero-inner { position: relative; z-index: 2; }
.evd-hero-img-wrap { display: none; }  /* 배경 이미지 숨김 */
.evd-hero-img-overlay { display: none; }

.evd-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 18px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* 뱃지 줄 */
.evd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.evd-hbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size:var(--pub-fs-xs);
  font-weight: 600;
  letter-spacing: .2px;
}
/* 밝은 배경용 뱃지 색상 */
.evd-hbadge-ongoing  { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.evd-hbadge-soon     { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.evd-hbadge-upcoming { background: #dbeafe; color: #2563eb; border: 1px solid #93c5fd; }
.evd-hbadge-ended    { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.evd-hbadge-cat1     { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.evd-hbadge-cat2     { border: none; color: #fff; }
.evd-hbadge-free     { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
.evd-hbadge-paid     { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.evd-hbadge-both     { background: #faf5ff; color: #7c3aed; border: 1px solid #c4b5fd; }

/* 깜빡이는 점 */
.evd-blink { animation: evdBlink 1.2s ease-in-out infinite; }
@keyframes evdBlink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

/* 제목 */
.evd-hero-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #0f172a;
  word-break: keep-all;
}

/* 핵심 요약 줄 */
.evd-hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
}
.evd-hs-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--pub-fs-sm);
  color: #475569;
}
.evd-hs-item i { font-size: var(--pub-fs-xs); color: #94a3b8; }
.evd-hs-item em {
  font-style: normal;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 6px;
  font-size:var(--pub-fs-xs);
  color: #334155;
  margin-left: 3px;
}

/* 메타 */
.evd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}
.evd-hero-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ── 공유 바 ── */
.evd-share-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.evd-share-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.evd-share-label {
  font-size: var(--pub-fs-sm);
  color: #64748b;
  font-weight: 500;
  margin-right: 4px;
}
.evd-sbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: var(--pub-fs-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  text-decoration: none;
  transition: all .15s;
}
.evd-sbar-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.evd-sbar-copy:hover  { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.evd-sbar-kakao { background: #fee500; border-color: #fee500; color: #1a1a1a; }
.evd-sbar-kakao:hover { background: #fdd835; border-color: #fdd835; color: #1a1a1a; }
.evd-sbar-list { margin-left: auto; }

/* ── 2컬럼 바디 ── */
.evd-body-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px; /* minmax(0)으로 메인 컬럼 초과 방지 */
  gap: 24px;
  align-items: start;
  overflow: hidden;
}

/* ── 메인 컬럼 ── */
.evd-main-col {
  min-width: 0;        /* grid/flex 자식 shrink 보장 */
  overflow: hidden;    /* 내부 콘텐츠 초과 차단 */
  max-width: 100%;
}

/* ── 핵심 인포박스 v2 ── */
.evd-infobox-v2 {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 20px;
}
.evd-infobox-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #1e293b;
}
.evd-info-grid { display: flex; flex-direction: column; }
.evd-ig-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);  /* minmax(0)으로 dd 너비 초과 방지 */
  gap: 0;
  padding: 13px 20px;
  border-bottom: 1px solid #f1f5f9;
  align-items: start;
  overflow: hidden;
}
.evd-ig-row:last-child { border-bottom: none; }
.evd-ig-row--full { grid-template-columns: 1fr; }
.evd-ig-row--full dt { margin-bottom: 8px; }
.evd-ig-row dt {
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 1px;
}
.evd-ig-row dt i { font-size: var(--pub-fs-sm); width: 15px; text-align: center; }
.evd-ig-row dd {
  font-size: var(--pub-fs-sm);
  color: #1e293b;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;            /* flex/grid 자식 shrink 보장 */
  overflow-wrap: break-word;
  word-break: break-word;
}
.evd-ig-sep { color: #94a3b8; font-size: var(--pub-fs-sm); }
.evd-ig-time {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: var(--pub-fs-xs);
  color: #475569;
  width: fit-content;
  margin-top: 2px;
}
.evd-ig-sub {
  font-size: var(--pub-fs-xs);
  color: #64748b;
  margin-top: 2px;
}
.evd-ig-venue { font-weight: 700; font-size: var(--pub-fs-base); }
.evd-ig-addr {
  font-size: var(--pub-fs-sm);
  color: #64748b;
}
.evd-ig-addr em { font-style: normal; color: #475569; }
.evd-ig-region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
}
.evd-ig-org {
  font-size: var(--pub-fs-sm);
  color: #475569;
}
.evd-ig-org strong {
  display: inline-block;
  font-weight: 600;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0 6px;
  font-size:var(--pub-fs-xs);
  color: #64748b;
  margin-right: 4px;
}
.evd-ig-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  border: 1px solid;
  width: fit-content;
}
.evd-ig-fee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  width: fit-content;
}
.evd-fee-free { background: #f0fdf4; color: #16a34a; }
.evd-fee-paid { background: #eff6ff; color: #2563eb; }
.evd-fee-both { background: #faf5ff; color: #7c3aed; }
.evd-ig-attach {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: var(--pub-fs-sm);
  color: #334155;
  text-decoration: none;
  transition: all .15s;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.evd-ig-attach:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(37,99,235,.12);
  transform: translateY(-1px);
}
.evd-attach-icon { font-size:var(--pub-fs-2xl); flex-shrink: 0; }
.evd-attach-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.evd-attach-name {
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evd-attach-meta {
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
}
.evd-attach-dl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-size:var(--pub-fs-xs);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.evd-ig-attach:hover .evd-attach-dl { background: #1d4ed8; }
/* ── 첨부사진 행 ── */
.evd-ig-row--photo > dd {
  padding: 0;
}
/* 썸네일 버튼 래퍼 */
.evd-photo-thumb {
  display: inline-flex;
  position: relative;
  width: auto;
  max-width: 320px;
  border: none;
  padding: 0;
  margin: 0;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  transition: box-shadow .2s, transform .2s;
  vertical-align: top;
}
.evd-photo-thumb:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.evd-photo-thumb img {
  display: block;
  width: auto;
  max-width: 320px;
  max-height: 220px;
  object-fit: contain;
  transition: opacity .2s;
}
.evd-photo-thumb:hover img { opacity: .88; }

/* "크게 보기" 오버레이 레이블 */
.evd-photo-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: var(--pub-fs-xs);
  font-weight: 600;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity .2s;
}
.evd-photo-thumb:hover .evd-photo-zoom { opacity: .7; }

/* ── 라이트박스 오버레이 ── */
#evLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#evLightbox.open { display: flex; }
#evLightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  cursor: default;
  animation: evLbFadeIn .2s ease;
}
#evLbClose {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size:var(--pub-fs-2xl);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
#evLbClose:hover { background: rgba(255,255,255,.3); }
@keyframes evLbFadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.evd-ig-note {
  background: #fffbeb;
  border-left: 3px solid #f39c12;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: var(--pub-fs-sm);
  color: #92400e;
  line-height: 1.6;
}

/* ── 섹션 공통 ── */
.evd-section {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 20px;
}
.evd-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #1e293b;
}

/* 지도 */
.evd-map-container {
  width: 100%;
  height: 300px;
  background: #f1f5f9;
}
.evd-map-addr {
  padding: 10px 20px;
  font-size: var(--pub-fs-sm);
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 본문 */
.evd-body-content {
  padding: 24px 20px;
  font-size: var(--pub-fs-base);
  line-height: 1.8;
  color: #334155;
  /* ── 내용글 너비 초과 방지 ── */
  overflow-wrap: break-word;   /* 긴 단어/URL 강제 줄바꿈 */
  word-break: break-word;      /* 구형 브라우저 호환 */
  overflow: hidden;            /* 외부 초과 차단 */
  max-width: 100%;             /* 부모 너비 초과 금지 */
}
/* 본문 내 미디어 요소 너비 제한 */
.evd-body-content img,
.evd-body-content video,
.evd-body-content iframe,
.evd-body-content table,
.evd-body-content pre,
.evd-body-content code {
  max-width: 100%;
  box-sizing: border-box;
}
.evd-body-content img  { border-radius: 6px; height: auto; display: block; }
.evd-body-content pre  { overflow-x: auto; white-space: pre-wrap; }
.evd-body-content table { border-collapse: collapse; word-break: keep-all; }
.evd-body-content iframe { width: 100%; }

/* ── 카테고리 빠른 필터 바 ── */
.evd-cat-filter-bar {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.evd-cfb-label {
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #475569;
  margin-right: 4px;
  white-space: nowrap;
}
.evd-cfb-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: var(--pub-fs-xs);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid;
  border-color: #e2e8f0;
  color: #475569;
  background: #f8fafc;
  transition: all .15s;
}
.evd-cfb-tag:hover {
  background: var(--tc, #e74c3c);
  border-color: var(--tc, #e74c3c);
  color: #fff;
  transform: translateY(-1px);
}
.evd-cfb-tag--active { font-weight: 700; }

/* ── 하단 버튼 ── */
.evd-foot-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.evd-fbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all .15s;
}
.evd-fbtn-list {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.evd-fbtn-list:hover { background: #e2e8f0; }
.evd-fbtn-cat { border-style: solid; }
.evd-fbtn-cat:hover { filter: brightness(.93); }
.evd-fbtn-write {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
  margin-left: auto;
}
.evd-fbtn-write:hover { background: #c0392b; }

/* 수정 버튼 (관리자/본인) */
.evd-fbtn-edit {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}
.evd-fbtn-edit:hover { background: #2563eb; border-color: #2563eb; }

/* 수정 버튼 (비밀번호 인증 방식) */
.evd-fbtn-edit-pw {
  background: #fff;
  color: #3b82f6;
  border-color: #3b82f6;
  cursor: pointer;
}
.evd-fbtn-edit-pw:hover { background: #eff6ff; }

/* 삭제 버튼 */
.evd-fbtn-delete {
  background: #fff;
  color: #e74c3c;
  border-color: #e74c3c;
  cursor: pointer;
}
.evd-fbtn-delete:hover { background: #fee2e2; }

/* 삭제 버튼 (비밀번호 인증 방식) */
.evd-fbtn-delete-pw {
  background: #fff;
  color: #e74c3c;
  border-color: #e74c3c;
  cursor: pointer;
}
.evd-fbtn-delete-pw:hover { background: #fee2e2; }

/* ── 이전/다음 네비게이션 ── */
.evd-prevnext {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.evd-pn-item {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: background .15s;
}
.evd-pn-item:last-child { border-bottom: none; }
.evd-pn-item:hover { background: #f8fafc; }
.evd-pn-dir {
  font-size: var(--pub-fs-xs);
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.evd-pn-title {
  font-size: var(--pub-fs-sm);
  color: #334155;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.evd-pn-cat {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.evd-pn-date {
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
  white-space: nowrap;
}

/* ────────────────────────────────────
   사이드바
──────────────────────────────────── */
.evd-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 등록 버튼 */
.evd-side-reg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: var(--pub-fs-base);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: filter .15s;
}
.evd-side-reg-btn:hover { filter: brightness(.9); }

/* 사이드 카드 */
.evd-side-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.evd-side-card-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

/* 행사 요약 리스트 */
.evd-sc-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.evd-sc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid #f8fafc;
}
.evd-sc-list li:last-child { border-bottom: none; }
.evd-sc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--pub-fs-sm);
  flex-shrink: 0;
}
.evd-sc-list li div { display: flex; flex-direction: column; gap: 1px; }
.evd-sc-list li em {
  font-style: normal;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  font-weight: 500;
}
.evd-sc-list li strong { font-size: var(--pub-fs-sm); color: #1e293b; font-weight: 600; }

/* 사이드 공유 버튼 */
.evd-sc-share {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
}
.evd-sc-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: var(--pub-fs-sm);
  cursor: pointer;
  transition: all .15s;
}
.evd-sc-share-btn:hover { background: #f1f5f9; }
.evd-sc-share-kakao { background: #fee500; border-color: #fee500; color: #1a1a1a; }
.evd-sc-share-kakao:hover { background: #fdd835; }

/* 관련 행사 리스트 */
.evd-rel-list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
}
.evd-rel-list li { border-bottom: 1px solid #f8fafc; }
.evd-rel-list li:last-child { border-bottom: none; }
.evd-rel-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  text-decoration: none;
  transition: background .12s;
}
.evd-rel-list a:hover { background: #f8fafc; }
.evd-rel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
}
.evd-rel-dot-on { background: #e74c3c; animation: evdBlink 1.5s infinite; }
.evd-rel-title {
  flex: 1;
  font-size: var(--pub-fs-sm);
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.evd-rel-date { font-size:var(--pub-fs-xs); color: #94a3b8; white-space: nowrap; }
.evd-side-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: var(--pub-fs-xs);
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-top: 1px solid #f1f5f9;
  transition: all .12s;
}
.evd-side-more:hover { color: #e74c3c; background: #f8fafc; }

/* 분야별 필드 리스트 */
.evd-side-field-list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
}
.evd-side-field-list li { border-bottom: 1px solid #f8fafc; }
.evd-side-field-list li:last-child { border-bottom: none; }
.evd-side-field-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background .12s;
  color: #334155;
}
.evd-side-field-list a:hover,
.evd-side-field-list a.active { background: #f8fafc; }
.evd-side-field-list a.active .evd-sfl-name { font-weight: 700; color: var(--sfc, #e74c3c); }
.evd-sfl-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--pub-fs-xs);
  flex-shrink: 0;
}
.evd-sfl-name { flex: 1; font-size: var(--pub-fs-sm); }
.evd-sfl-cur {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  background: #fee2e2;
  color: #e74c3c;
  border-radius: 4px;
  padding: 1px 5px;
}

/* 달력 보기 링크 */
.evd-side-cal-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-decoration: none;
  color: #475569;
  font-size: var(--pub-fs-sm);
  font-weight: 500;
  transition: all .15s;
  border: 1.5px solid #e2e8f0;
}
.evd-side-cal-link i {
  font-size: var(--pub-fs-lg);
  color: #e74c3c;
}
.evd-side-cal-link span { flex: 1; }
.evd-side-cal-link small { font-size:var(--pub-fs-xs); color: #94a3b8; }
.evd-side-cal-link:hover { border-color: #e74c3c; background: #fff5f5; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .evd-body-wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 36px;
    overflow: hidden;
  }
  .evd-sidebar-col { order: -1; }
  .evd-hero-title { font-size: 1.25rem; }
  .evd-ig-row { grid-template-columns: 90px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .evd-hero-inner { padding: 16px 14px 14px; }
  .evd-hero-title { font-size: 1.1rem; }
  .evd-hero-summary { gap: 4px 10px; }
  .evd-share-bar-inner { gap: 6px; }
  .evd-sbar-btn { padding: 5px 10px; font-size: var(--pub-fs-xs); }
  .evd-ig-row { grid-template-columns: 1fr; gap: 4px; }
  .evd-ig-row dt { padding-bottom: 2px; }
  .evd-pn-item { grid-template-columns: 60px 1fr auto; }
  .evd-pn-cat { display: none; }
  .evd-foot-btns { gap: 8px; }
  .evd-fbtn-write { margin-left: 0; }
  .evd-cat-filter-bar { gap: 6px; padding: 10px 14px; }
}

/* ════════════════════════════════════════════════════════════
   행사 달력 (event_calendar.php) – cal-* 컴포넌트
════════════════════════════════════════════════════════════ */

/* ── 달력 페이지 상단 바 (제목 + 뷰 선택기) ── */
.ev-cal-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  border-bottom: 2px solid #e74c3c;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.ev-cal-top-left {}
.ev-cal-title {
  font-size:var(--pub-fs-2xl);
  font-weight: 800;
  color: #e74c3c;
  margin: 0 0 4px;
}
.ev-cal-title i { margin-right: 6px; }
.ev-cal-subtitle {
  font-size: var(--pub-fs-sm);
  color: #64748b;
  margin: 0;
}
.ev-cal-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── 달력 헤더 (연/월 네비게이션) ── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
  flex-wrap: wrap;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  text-decoration: none;
  font-size: var(--pub-fs-sm);
  transition: all .15s;
}
.cal-nav-btn:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}
.cal-ym {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-year {
  font-size: var(--pub-fs-xl);
  font-weight: 700;
  color: #1e293b;
  min-width: 52px;
  text-align: center;
}
.cal-month {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: #1e3a8a;
  color: #fff;
  font-size: var(--pub-fs-xl);
  font-weight: 800;
  border-radius: 8px;
}
.cal-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cal-tip {
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cal-tip i { color: #e74c3c; }

/* 뷰 전환 버튼 */
.cal-view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}
.cal-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: var(--pub-fs-sm);
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all .12s;
  cursor: pointer;
  border: none;
  background: transparent;
}
.cal-view-btn:hover { color: #e74c3c; }
.cal-view-btn.active {
  background: #e74c3c;
  color: #fff;
  font-weight: 700;
}

/* ── 달력 래퍼 ── */
.cal-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

/* ── 요일 헤더 행 ── */
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.cal-dow {
  text-align: center;
  padding: 10px 4px;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #475569;
}
.cal-dow.sun { color: #ef4444; }
.cal-dow.sat { color: #3b82f6; }

/* ── 날짜 그리드 ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));  /* minmax(0)로 셀 너비 초과 방지 */
}
.cal-cell {
  min-height: 110px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 6px 5px 5px;
  vertical-align: top;
  position: relative;
  background: #fff;
  transition: background .1s;
  overflow: hidden;          /* 셀 내용 너비 초과 차단 */
  min-width: 0;              /* flex/grid 자식 shrink 허용 */
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell-empty { background: #fafafa; }
.cal-cell-today { background: #fff9f9; }
.cal-cell-today::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #e74c3c;
  border-radius: 0 0 2px 2px;
}
.cal-cell:hover:not(.cal-cell-empty) { background: #fef9f9; }
.cal-cell-sun .cal-date-num { color: #ef4444; }
.cal-cell-sat .cal-date-num { color: #3b82f6; }

/* 날짜 숫자 */
.cal-date-num {
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #334155;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 3px;
  flex-shrink: 0;
}
.cal-date-num.today {
  background: #e74c3c;
  color: #fff !important;
  font-weight: 800;
}

/* ── 행사 항목 ── */
.cal-ev-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-ev-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--ev-bg, #f1f5f9);
  text-decoration: none;
  overflow: hidden;
  transition: all .12s;
  cursor: pointer;
  width: 100%;               /* 셀 너비에 맞춤 */
  min-width: 0;              /* flex item shrink 허용 */
  box-sizing: border-box;
}
.cal-ev-item:hover { filter: brightness(.93); }

/* 기간 행사 좌우 연결 표시 */
.cal-ev-item.period-start { border-radius: 4px 0 0 4px; }
.cal-ev-item.period-mid   { border-radius: 0; padding-left: 2px; }
.cal-ev-item.period-end   { border-radius: 0 4px 4px 0; }

.cal-ev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ev-dot, #94a3b8);
  flex-shrink: 0;
}
.cal-ev-name {
  font-size:var(--pub-fs-xs);
  color: var(--ev-text, #475569);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  min-width: 0;              /* 텍스트 ellipsis 작동 보장 */
  flex: 1;                   /* 남은 공간 모두 사용 */
}

/* 더보기 버튼 */
.cal-ev-more {
  display: block;
  width: 100%;
  text-align: left;
  padding: 2px 5px;
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: all .1s;
  box-sizing: border-box;
  overflow: hidden;
}
.cal-ev-more:hover { background: #fee2e2; color: #e74c3c; }

/* ── 범례 ── */
.cal-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 4px;
  margin-top: 8px;
}
.cal-legend-label {
  font-size: var(--pub-fs-xs);
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--pub-fs-xs);
  color: #475569;
}
.cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── 이번 달 행사 요약 목록 ── */
.cal-month-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cal-month-list-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #1e293b;
}
.cal-month-cnt {
  margin-left: auto;
  padding: 2px 10px;
  background: #e74c3c;
  color: #fff;
  border-radius: 20px;
  font-size: var(--pub-fs-xs);
  font-weight: 700;
}
.cal-month-items { padding: 6px 0; }
.cal-ml-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f8fafc;
  transition: background .1s;
  flex-wrap: nowrap;
  overflow: hidden;      /* 행 너비 초과 방지 */
  min-width: 0;          /* flex 자식 shrink 보장 */
}
.cal-ml-item:last-child { border-bottom: none; }
.cal-ml-item:hover { background: #fff9f9; }
.cal-ml-item.ongoing { background: #fff5f5; }
.cal-ml-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-ml-dates {
  font-size: var(--pub-fs-xs);
  color: #94a3b8;
  min-width: 80px;
  flex-shrink: 0;
}
.cal-ml-cat {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.cal-ml-title {
  font-size: var(--pub-fs-sm);
  color: #1e293b;
  font-weight: 500;
  flex: 1;
  min-width: 0;          /* 필수: flex:1 + ellipsis 작동 보장 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-ml-region {
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
  flex-shrink: 0;
}
.cal-ml-ongoing {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  color: #e74c3c;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* ── 사이드바 월 이동 ── */
.cal-side-months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px 0;
}
.cal-sm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: var(--pub-fs-xs);
  color: #475569;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all .12s;
}
.cal-sm-btn:hover { background: #fee2e2; color: #e74c3c; border-color: #fca5a5; }
.cal-sm-btn.active { background: #e74c3c; color: #fff; border-color: #e74c3c; font-weight: 700; }

/* 연도 이동 */
.cal-side-years {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 0;
}
.cal-sy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--pub-fs-xs);
  color: #475569;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all .12s;
}
.cal-sy-btn:hover { background: #fee2e2; color: #e74c3c; border-color: #fca5a5; }
.cal-sy-btn.active { background: #1e3a8a; color: #fff; border-color: #1e3a8a; font-weight: 700; }

/* 통계 도트 */
.cal-ms-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ── 팝오버 (더보기) ── */
.cal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: transparent;
}
.cal-popover {
  position: absolute;
  z-index: 1001;
  width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  overflow: hidden;
  animation: cal-pop-in .18s ease;
}
@keyframes cal-pop-in {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.cal-popover-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e3a8a;
  color: #fff;
  font-size: var(--pub-fs-sm);
  font-weight: 700;
}
.cal-pop-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--pub-fs-sm);
  transition: color .1s;
}
.cal-pop-close:hover { color: #fff; background: rgba(255,255,255,.15); }
.cal-pop-body { max-height: 320px; overflow-y: auto; padding: 8px 0; }
.cal-pop-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f5f9;
  transition: background .1s;
}
.cal-pop-item:last-child { border-bottom: none; }
.cal-pop-item:hover { background: #fff9f9; }
.cal-pop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.cal-pop-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cal-pop-title {
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}
.cal-pop-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.cal-pop-cat {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
}
.cal-pop-date, .cal-pop-region {
  font-size:var(--pub-fs-xs);
  color: #94a3b8;
}
.cal-pop-free {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #86efac;
  padding: 1px 6px;
  border-radius: 4px;
}
.cal-pop-paid {
  font-size:var(--pub-fs-xs);
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .cal-wrap { border-radius: 8px; }
  .cal-cell { min-height: 72px; padding: 4px 3px; overflow: hidden; }
  .cal-ev-name { font-size:var(--pub-fs-xs); }
  .cal-date-num { font-size:var(--pub-fs-xs); width: 20px; height: 20px; }
  .cal-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cal-header-right { width: 100%; justify-content: space-between; }
  .cal-popover { width: calc(100vw - 32px); left: 16px !important; }
  .cal-ml-item { flex-wrap: wrap; gap: 4px; }
  .cal-ml-title { min-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 이달 목록 뷰 행 반응형 */
  .cal-ml-dates { min-width: 68px; font-size:var(--pub-fs-xs); }
  .cal-ml-region { display: none; }  /* 좁은 화면에서 지역 숨김 */
}
@media (max-width: 600px) {
  /* 달력 셀: 행사명 숨기고 도트만 표시 */
  .cal-ev-name { display: none; }
  .cal-ev-item {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: var(--ev-dot, #94a3b8);
    flex-shrink: 0;
  }
  .cal-ev-dot { display: none; }
  .cal-ev-list { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .cal-ev-more { font-size:var(--pub-fs-xs); padding: 1px 2px; width: 100%; }
}
@media (max-width: 480px) {
  .cal-cell { min-height: 54px; padding: 3px 2px; }
  .cal-ev-item { width: 8px; height: 8px; }
  .cal-ev-dot { width: 5px; height: 5px; }
  .cal-date-num { font-size:var(--pub-fs-xs); width: 18px; height: 18px; }
}

/* ════════════════════════════════════════════════════════════
   위치서비스·로드뷰·주변정보 – evd-location / evd-nearby 컴포넌트
════════════════════════════════════════════════════════════ */

/* ── 지도 탭 (지도/로드뷰 전환) ── */
.evd-sec-head { justify-content: flex-start; }
.evd-map-tabs {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.evd-maptab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: var(--pub-fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.evd-maptab:hover { border-color: var(--cat-color); color: var(--cat-color); }
.evd-maptab-active { background: var(--cat-color); border-color: var(--cat-color); color: #fff; }

/* ── 지도 래퍼 ── */
.evd-map-wrap-full {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}
.evd-map-container-full {
  width: 100%;
  height: 360px;
  background: #e2e8f0;
}
.evd-roadview-container {
  width: 100%;
  height: 360px;
  background: #1e293b;
}

/* 지도 컨트롤 버튼 */
.evd-map-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}
.evd-mc-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.95);
  color: #475569;
  font-size: var(--pub-fs-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: all .15s;
}
.evd-mc-btn:hover { background: #fff; color: var(--cat-color); border-color: var(--cat-color); }

/* ── 주소바 + 지도앱 열기 ── */
.evd-map-addr-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.evd-mab-addr {
  flex: 1;
  font-size: var(--pub-fs-sm);
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 200px;
}
.evd-mab-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.evd-mab-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: var(--pub-fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.evd-mab-kakao { background: #fee500; color: #1a1a1a; }
.evd-mab-kakao:hover { background: #fdd835; }
.evd-mab-naver { background: #03c75a; color: #fff; }
.evd-mab-naver:hover { background: #02b350; }
.evd-mab-taxi  { background: #3b82f6; color: #fff; }
.evd-mab-taxi:hover  { background: #2563eb; }

/* ── 내 위치 거리 바 ── */
.evd-distance-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  font-size: var(--pub-fs-sm);
  flex-wrap: wrap;
}
.evd-distance-bar i { color: var(--cat-color); font-size: var(--pub-fs-base); }
#evd-distance-txt { font-weight: 700; color: #1e293b; }
.evd-walk-time, .evd-car-time {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2px 10px;
  font-size: var(--pub-fs-xs);
  color: #475569;
}

/* ══════════════════════════════════════════
   교통편 안내 (Transport) – v2
   ══════════════════════════════════════════ */
.evd-transport-body {
  padding: 8px 0 4px;
}

/* 섹션 블록 카드 */
.evd-tr-block {
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-left: 4px solid #cbd5e1;
  border-radius: 10px;
  margin: 0 20px 14px;
  padding: 0;
  overflow: hidden;
}
.evd-tr-block.evd-tr-block--bus    { border-left-color: #27ae60; background: #f0faf4; }
.evd-tr-block.evd-tr-block--car    { border-left-color: #2980b9; background: #f0f6fb; }
.evd-tr-block.evd-tr-block--park   { border-left-color: #8e44ad; background: #f7f0fb; }
.evd-tr-block.evd-tr-block--ktx    { border-left-color: #c0392b; background: #fdf0f0; }
.evd-tr-block.evd-tr-block--shuttle{ border-left-color: #16a085; background: #f0faf8; }
.evd-tr-block.evd-tr-block--taxi   { border-left-color: #f39c12; background: #fdf6ec; }

/* 섹션 헤딩 행 */
.evd-tr-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
}
.evd-tr-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: var(--pub-fs-sm);
  flex-shrink: 0;
}
.evd-tr-title {
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

/* 목록 */
.evd-tr-ul {
  list-style: none;
  padding: 10px 14px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.evd-tr-li {
  font-size:var(--pub-fs-xs);
  color: #334155;
  line-height: 1.65;
  padding: 6px 10px;
  background: #fff;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  word-break: keep-all;
}
.evd-tr-li strong {
  color: #1a3a5c;
  font-weight: 700;
}
/* → 화살표 강조 */
.evd-tr-arrow {
  color: #27ae60;
  font-weight: 700;
  margin: 0 2px;
}

/* 일반 문단 */
.evd-tr-p {
  font-size:var(--pub-fs-xs);
  color: #64748b;
  margin: 6px 20px;
  line-height: 1.6;
  word-break: keep-all;
}

/* 모바일 */
@media (max-width: 640px) {
  .evd-tr-block { margin: 0 12px 12px; }
  .evd-tr-ul    { padding: 8px 10px 10px; gap: 6px; }
  .evd-tr-li    { font-size: var(--pub-fs-sm); padding: 5px 8px; }
}

/* ── 주변정보 탭 ── */
.evd-nearby-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.evd-nb-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: var(--pub-fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.evd-nb-tab:hover { border-color: #f39c12; color: #f39c12; }
.evd-nb-tab-active { background: #f39c12; border-color: #f39c12; color: #fff; }
.evd-nb-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  font-size:var(--pub-fs-xs);
  font-weight: 700;
}
.evd-nb-tab-active .evd-nb-cnt { background: rgba(255,255,255,.35); }

/* ── 주변정보 패널 ── */
.evd-nb-panel { padding: 16px; }
.evd-nb-panel-hidden { display: none; }

/* ── 주변정보 그리드 ── */
.evd-nb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.evd-nb-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── 주변정보 카드 ── */
.evd-nb-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  position: relative;
  transition: all .15s;
}
.evd-nb-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.evd-nb-card-sm { padding: 10px; }
.evd-nb-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--pub-fs-base);
  flex-shrink: 0;
}
.evd-nb-card-sm .evd-nb-card-icon {
  width: 32px;
  height: 32px;
  font-size: var(--pub-fs-sm);
  border-radius: 8px;
}
.evd-nb-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.evd-nb-name {
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: #1e293b;
  display: block;
}
.evd-nb-card-sm .evd-nb-name { font-size: var(--pub-fs-sm); }
.evd-nb-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.evd-nb-dist {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size:var(--pub-fs-xs);
  color: #64748b;
  font-weight: 600;
}
.evd-nb-dist i { font-size:var(--pub-fs-xs); }
.evd-nb-type {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 10px;
  font-size:var(--pub-fs-xs);
  font-weight: 600;
  background: var(--cat-bg, #f1f5f9);
  color: var(--cat-color, #64748b);
}
.evd-nb-desc {
  font-size: var(--pub-fs-xs);
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.evd-nb-map-link {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  color: #94a3b8;
  font-size:var(--pub-fs-xs);
  text-decoration: none;
  transition: all .15s;
}
.evd-nb-map-link:hover { color: #f39c12; border-color: #f39c12; }

/* ── 반응형 ── */
@media (max-width: 700px) {
  .evd-nb-grid { grid-template-columns: 1fr; }
  .evd-nb-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .evd-map-container-full { height: 260px; }
  .evd-roadview-container { height: 260px; }
  .evd-map-addr-bar { flex-direction: column; align-items: flex-start; }
  .evd-distance-bar { gap: 8px; }
}
@media (max-width: 400px) {
  .evd-nb-grid-3 { grid-template-columns: 1fr; }
  .evd-mab-btns { gap: 4px; }
  .evd-mab-btn { padding: 4px 8px; font-size:var(--pub-fs-xs); }
}

/* ══════════════════════════════════════════════════════════
   행사 플레이스홀더 이미지 (분야별 자동 표시)
   카드 모드(.ev-ph) + 히어로 모드(.evd-ph-hero)
   ══════════════════════════════════════════════════════════ */

/* ─── 공통 CSS 변수 기본값 ─── */
.ev-ph, .evd-ph-hero {
  --ph-color: #546e7a;
  --ph-bg1:   #1a2226;
  --ph-bg2:   #37474f;
}

/* ══════════════════════
   카드 목록 플레이스홀더
   ══════════════════════ */
.ev-card-img .ev-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ph-bg1) 0%, var(--ph-bg2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ev-ph-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.ev-ph-emoji {
  font-size:var(--pub-fs-hero);
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  animation: ph-float 3s ease-in-out infinite;
}

.ev-ph-label {
  font-size: var(--pub-fs-sm);
  font-weight: 700;
  color: var(--ph-color);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.ev-ph-sub {
  font-size:var(--pub-fs-xs);
  font-weight: 600;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* 배경 장식 원형 */
.ev-ph-deco {
  position: absolute;
  border-radius: 50%;
  background: var(--ph-color);
  opacity: 0.07;
  z-index: 1;
}
.ev-ph-deco1 {
  width: 120px; height: 120px;
  bottom: -30px; right: -30px;
}
.ev-ph-deco2 {
  width: 70px; height: 70px;
  top: -20px; left: -20px;
}

/* ══════════════════════
   상세 히어로 플레이스홀더
   ══════════════════════ */
.evd-ph-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--ph-bg1) 0%, var(--ph-bg2) 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.evd-ph-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.evd-ph-hero-emoji {
  font-size:var(--pub-fs-hero);
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
  animation: ph-float 4s ease-in-out infinite;
}

.evd-ph-hero-label {
  font-size: var(--pub-fs-lg);
  font-weight: 800;
  color: var(--ph-color);
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.evd-ph-hero-sub {
  font-size:var(--pub-fs-xs);
  font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* 장식 버블 */
.evd-ph-bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--ph-color);
  z-index: 1;
}
.evd-ph-bubble1 {
  width: 300px; height: 300px;
  bottom: -100px; right: -80px;
  opacity: 0.06;
}
.evd-ph-bubble2 {
  width: 180px; height: 180px;
  top: -60px; left: -40px;
  opacity: 0.05;
}
.evd-ph-bubble3 {
  width: 100px; height: 100px;
  top: 30%; left: 10%;
  opacity: 0.04;
}

/* 히어로 플레이스홀더일 때 오버레이 색상 보정 – 심플 버전에선 불필요 */
.evd-hero--placeholder .evd-hero-inner {
  text-shadow: none;
}

/* ─── 부유 애니메이션 ─── */
@keyframes ph-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-6px); }
}

/* ─── 모바일 조정 ─── */
@media (max-width: 640px) {
  .ev-ph-emoji        { font-size:var(--pub-fs-hero); }
  .ev-ph-label        { font-size:var(--pub-fs-xs); }
  .evd-ph-hero-emoji  { font-size:var(--pub-fs-hero); }
  .evd-ph-hero-label  { font-size: var(--pub-fs-base); }
}
