/**
 * placard.css — 현수막(placard) 모듈 전용 스타일
 * 공통 래퍼(.pub-wrap)는 publicity.css에서 width:100% 처리 → 이중 컨테이너 금지
 * 카드·필터·목록·폼 컴포넌트 모두 포함
 */

/* 페이지 헤더·검색 래퍼 SSOT: publicity.css (.pub-page-header · .ev-search-wrap) */

/* 모듈 본문 래퍼 — 세로 간격 SSOT */
.pl-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════
   카드 그리드
══════════════════════════════════════════ */
.pl-list-wrap {
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
  box-sizing: border-box;
}
.pl-list-inner { min-width: 0; }
.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 600px) {
  .pl-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* 카드 */
.pl-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
  transition: box-shadow .2s, transform .2s;
}
.pl-card:hover { box-shadow: 0 6px 20px rgba(15,23,42,.12); transform: translateY(-2px); }
.pl-card-link { display: block; text-decoration: none; color: inherit; }

/* 배너 이미지 영역 (가로형 4:1 비율) */
.pl-card-banner {
  position: relative;
  width: 100%;
  padding-top: 25%;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
/* 온라인 현수막 — 600×70cm 비율 (70/600 ≈ 11.67%) */
.pl-card-banner--600x70,
.pl-wrap--online .pl-card-banner {
  padding-top: 11.67%;
}
.pl-wrap--online .pl-card-banner img {
  object-fit: cover;
  object-position: center;
}
.evd-img--600x70,
.evd-media--600x70 img {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 600 / 70;
  object-fit: cover;
  object-position: center;
}
.pl-card-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pl-card-banner-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.pl-card-banner-ph i { font-size: 24px; }

/* 상태 뱃지 */
.pl-card-status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.pl-badge-active  { background: #dcfce7; color: #166534; }
.pl-badge-soon    { background: #fef3c7; color: #92400e; }
.pl-badge-upcoming{ background: #e0f2fe; color: #075985; }
.pl-badge-ended   { background: #f1f5f9; color: #64748b; }

/* 규격 뱃지 */
.pl-card-size {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 7px;
  background: rgba(15,23,42,.6);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* 카드 텍스트 */
.pl-card-body {
  padding: 12px 14px 14px;
}
.pl-card-cat {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pl-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: var(--fs-sm, 15px);
  color: #64748b;
}
.pl-card-meta i { font-size: var(--fs-sm, 15px); margin-right: 2px; }

/* ══════════════════════════════════════════
   빈 상태
══════════════════════════════════════════ */
.pl-empty {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.pl-empty i { font-size: 32px; margin-bottom: 14px; display: block; opacity: .4; }
.pl-empty p { font-size: 15px; margin: 0 0 16px; }
.pl-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #8e44ad;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.pl-empty-btn:hover { background: #7d3c98; }

/* ══════════════════════════════════════════
   페이지네이션
══════════════════════════════════════════ */
.pl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
}
.pl-pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all .15s;
}
.pl-pg-btn:hover { background: #f1f5f9; border-color: #8e44ad; color: #8e44ad; }
.pl-pg-btn.active {
  background: #8e44ad;
  color: #fff;
  border-color: #8e44ad;
}

/* ══════════════════════════════════════════
   비밀번호 확인 모달 (detail/edit)
══════════════════════════════════════════ */
.pl-pw-modal-icon { font-size: 32px; text-align: center; margin-bottom: 10px; }
.pl-pw-modal-title {
  font-size: 18px; font-weight: 800; color: #1e293b;
  text-align: center; margin-bottom: 6px;
}
.pl-pw-modal-desc {
  font-size: 14px; color: #64748b;
  text-align: center; margin-bottom: 16px;
}
.pl-pw-modal-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; box-sizing: border-box;
  transition: border-color .15s;
}
.pl-pw-modal-input:focus { border-color: #8e44ad; outline: none; box-shadow: 0 0 0 3px #f3e8ff; }
.pl-pw-modal-box { max-width: 360px; }
.pl-pw-modal-btns {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 14px;
}
.pl-pw-modal-submit {
  padding: 8px 18px; background: #8e44ad; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.pl-pw-modal-submit:hover { background: #7d3c98; }
.pl-pw-modal-cancel {
  padding: 8px 14px; background: #f1f5f9; color: #475569;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.pl-pw-modal-cancel:hover { background: #e2e8f0; }

/* ══════════════════════════════════════════
   폼 (write/edit) — pw-* 공통
   pw-row: 라벨(160px) + 필드(1fr) 2열 고정
══════════════════════════════════════════ */
.pw-container { width: 100%; max-width: 100%; margin: 0; padding: 0; box-sizing: border-box; }

/* 페이지 타이틀 */
/* write/edit — list 동형 .pub-page-header SSOT (publicity.css); 레거시 단독 타이틀만 아래 적용 */
.pw-page-title:not(.pub-page-header) { margin-bottom: 20px; }
.pw-page-title:not(.pub-page-header) h1 {
  font-size: 24px; font-weight: 800; color: #1e293b;
  margin: 0 0 6px; display: flex; align-items: center; gap: 8px;
}
.pw-page-title:not(.pub-page-header) p { font-size: 14px; color: #64748b; margin: 0; }

/* 섹션 카드 */
.pw-section {
  background: #fff; border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
  margin-bottom: 16px; overflow: hidden;
}
.pw-section-title {
  font-size: var(--pub-fs-sm, 14px); font-weight: 800; color: #1e293b;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 7px;
  background: #fafbfc;
}
.pw-section-title.required-section { background: #faf5ff; border-bottom-color: #e9d5ff; }
.pw-section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #8e44ad; color: #fff;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}

/* 폼 행 — 라벨 160px + 필드 1fr */
.pw-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: flex-start;
  gap: 0;
  border-bottom: 1px solid #f8fafc;
}
.pw-row:last-child { border-bottom: none; }
.pw-row.no-border { border-bottom: none; }

/* 라벨 */
.pw-label {
  padding: 14px 16px 14px 20px;
  font-size: 14px; font-weight: 700; color: #475569;
  display: flex; align-items: flex-start; gap: 5px;
  line-height: 1.5;
}
.pw-required { color: #ef4444; font-size: 14px; margin-left: 2px; }
.pw-required-mark { color: #ef4444; margin-left: 2px; }
.pw-check { color: #8e44ad; font-size: 14px; }

/* 필드 */
.pw-field {
  padding: 12px 20px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* detail 읽기 전용 값 — write .pw-input 동형 타이포 (폼은 아래 기본값 유지) */
.pw-value {
  font-size: var(--fs-base, 16px);
  color: #1e293b;
  line-height: 1.6;
  word-break: break-word;
}

/* 상세 읽기 전용 — 라벨 참고용(연함) · 값 핵심(진함) */
.pw-container--detail .pw-label {
  font-size: var(--detail-label-size, var(--fs-sm, 15px));
  font-weight: var(--detail-label-weight, 500);
  color: var(--detail-label-color, #94a3b8);
}
.pw-container--detail .pw-label .pw-check,
.pw-container--detail .pw-label .fas {
  color: #cbd5e1;
  font-size: var(--fs-xs, 14px);
}
.pw-container--detail .pw-value {
  font-size: var(--detail-value-size, var(--fs-base, 16px));
  font-weight: var(--detail-value-weight, 600);
  color: var(--detail-value-color, #0f172a);
}
.pw-container--detail .pw-value--prose {
  font-weight: var(--detail-value-prose-weight, 400);
}
.pw-container--detail .pw-value-link {
  font-size: var(--detail-value-size, var(--fs-base, 16px));
}
.pld-badge--theme {
  background: var(--pld-badge-bg, #f8fafc);
  color: var(--pld-badge-fg, #64748b);
}
.pld-badge--muted {
  background: #f1f5f9;
  color: #64748b;
}
.pw-admin-inline-tag {
  display: inline-block;
  font-size: var(--fs-sm, 15px);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  background: var(--pld-badge-bg, #f8fafc);
  color: var(--pub-accent, #8e44ad);
}

.pw-container--detail .pw-value-tag {
  font-size: var(--fs-xs, 14px);
  font-weight: 600;
}
.pw-value-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pub-accent, #8e44ad);
  font-weight: 600;
  text-decoration: none;
}
.pw-value-link:hover { text-decoration: underline; }
.pw-value-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-value-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* 입력요소 공통 */
.pw-input, .pw-select, .pw-textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  background: #fff; color: #1e293b;
  font-family: inherit;
}
.pw-input:focus, .pw-select:focus, .pw-textarea:focus {
  border-color: #8e44ad; outline: none; box-shadow: 0 0 0 3px #f3e8ff;
}
.pw-input:read-only { background: #f8fafc; color: #64748b; }
.pw-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.pw-input-sm  { width: auto; min-width: 130px; }
.pw-input-md  { max-width: 360px; }
.pw-select-md { max-width: 360px; }
.pw-mt6 { margin-top: 6px; }

/* 힌트 */
.pw-hint {
  font-size: 14px; color: #94a3b8; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 4px;
}
.pw-hint a { color: #8e44ad; text-decoration: none; }
.pw-hint a:hover { text-decoration: underline; }

/* 날짜 범위 */
.pw-date-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pw-date-range .pw-input { flex: 1; min-width: 130px; max-width: 180px; }
.pw-range-sep { color: #94a3b8; font-size: 14px; flex-shrink: 0; }

/* 규격 입력 */
.pw-dim-group { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pw-dim-group .pw-input { width: 110px; flex-shrink: 0; }
.pw-dim-unit { font-size: 14px; color: #64748b; flex-shrink: 0; }

/* 셀렉트 그룹 */
.pw-select-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-select-group .pw-select { flex: 1; min-width: 130px; }

/* 인라인 필드 — tour food/stay/activity 공용 (표준형 보조) */
.pw-field-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  width: 100%;
}
.pw-field-inline .pw-input,
.pw-field-inline .pw-select { flex: 1 1 130px; min-width: 0; }
.pw-field-stack {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}

/* 동적 반복 행 — 회차·코스·객실 등 */
.pw-dynamic-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pw-dynamic-card {
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 12px 14px; background: #fafbfc;
}
.pw-dynamic-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.pw-dynamic-card-title {
  font-size: 14px; font-weight: 700; color: #334155;
}
.pw-dynamic-card .pw-btn-cancel {
  padding: 6px 12px; font-size: 15px; min-height: 36px;
}
.pw-dynamic-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px;
}
.pw-dynamic-toolbar .pw-btn-submit {
  padding: 10px 18px; font-size: 14px; min-height: 44px;
}
.pw-dynamic-toolbar .pw-btn-cancel { min-height: 44px; }

/* 경고 */
.pw-alert {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; padding: 14px 16px;
  background: #fef2f2; border: 1.5px solid #fca5a5; border-radius: 10px;
  font-size: 14px; color: #dc2626;
}
.pw-alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.pw-alert ul { margin: 6px 0 0; padding-left: 18px; }
.pw-alert li { margin: 3px 0; }

/* 배너 업로드 */
.pw-banner-upload {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px; gap: 8px;
  border: 2px dashed #c4b5fd; border-radius: 12px;
  cursor: pointer; background: #faf5ff;
  transition: border-color .2s, background .2s;
}
.pw-banner-upload:hover { border-color: #8e44ad; background: #f3e8ff; }
.pw-banner-upload input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.pw-banner-upload-icon { font-size: 32px; color: #8e44ad; }
.pw-banner-upload-text { font-size: 15px; font-weight: 700; color: #6d28d9; }
.pw-banner-upload-sub { font-size: 14px; color: #a78bfa; }
.pw-banner-preview { display: none; margin-top: 10px; }
.pw-banner-preview img { width: 100%; border-radius: 10px; border: 1px solid #e2e8f0; display: block; }

/* 견적 박스 */
.pw-quote-box {
  border-radius: 12px; border: 1.5px solid #d8b4fe;
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
  padding: 16px 20px; margin: 4px 0 6px;
}
.pw-quote-label { font-size: 14px; color: #7c3aed; font-weight: 600; margin-bottom: 4px; }
.pw-quote-amount { font-size: 28px; font-weight: 900; color: #6d28d9; line-height: 1.2; }
.pw-quote-detail { font-size: 14px; color: #7c3aed; margin-top: 4px; }

/* 활동분야 */
.pw-activity-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 7px;
}
.pw-activity-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 8px;
  border: 1.5px solid #e2e8f0; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #475569;
  transition: all .15s; background: #f8fafc;
  user-select: none;
}
.pw-activity-item.selected {
  border-color: #8e44ad; background: #faf5ff; color: #6d28d9; font-weight: 700;
}
.pw-activity-item input { display: none; }
.pw-activity-ico { font-size: 14px; color: #c4b5fd; transition: color .15s; }
.pw-activity-item.selected .pw-activity-ico { color: #8e44ad; }
.pw-activity-counter { font-size: 14px; color: #7c3aed; font-weight: 600; }
.pw-activity-guide {
  font-size: 14px; color: #94a3b8;
  margin-left: auto; font-weight: 400;
}

/* 제출 행 */
.pw-submit-row {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 20px 0 8px;
}
.pw-btn-submit {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 28px; background: linear-gradient(135deg,#8e44ad,#6d28d9); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: opacity .15s, transform .1s; text-decoration: none;
  box-shadow: 0 4px 14px rgba(109,40,217,.35);
}
.pw-btn-submit:hover { opacity: .92; }
.pw-btn-submit:active { transform: scale(.98); }
.pw-btn-cancel {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px; background: #f1f5f9; color: #475569;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s; text-decoration: none;
}
.pw-btn-cancel:hover { background: #e2e8f0; }

/* ══════════════════════════════════════════
   모바일 반응형 — Mobile-First (원칙3·최소 14px 폰트·터치 타깃 44px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── 카드 그리드 — 모바일 1열 ── */
  .pl-grid { grid-template-columns: 1fr; gap: 10px; }
  .pl-card-body { padding: 10px 12px 12px; }

  /* ── 폼: 1열 스택 ── */
  .pw-row { grid-template-columns: 1fr; }
  .pw-label { padding: 12px 14px 4px; }
  .pw-field { padding: 0 14px 14px; }
  .pw-input, .pw-select, .pw-textarea { font-size: 16px; /* iOS zoom 방지 */ min-height: 44px; }
  .pw-textarea { min-height: 80px; }
  .pw-input-sm, .pw-input-md { width: 100%; max-width: 100%; }
  .pw-select-md { max-width: 100%; }
  .pw-dim-group { flex-wrap: wrap; gap: 8px; }
  .pw-dim-group .pw-input { width: calc(50% - 36px); min-width: 0; }
  .pw-dim-unit { white-space: nowrap; }
  .pw-date-range .pw-input { min-width: 0; flex: 1; max-width: none; }
  .pw-field-inline { flex-direction: column; align-items: stretch; gap: 10px; }
  .pw-field-inline .pw-input,
  .pw-field-inline .pw-select { width: 100%; max-width: 100%; flex: 1 1 auto; }
  .pw-select-group { flex-direction: column; }
  .pw-select-group .pw-select { width: 100%; min-width: 0; }
  .pw-dynamic-toolbar { flex-direction: column; align-items: stretch; }
  .pw-dynamic-toolbar .pw-btn-submit,
  .pw-dynamic-toolbar .pw-btn-cancel { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
  .pw-dynamic-card .pw-dim-group { flex-direction: column; align-items: stretch; }
  .pw-dynamic-card .pw-dim-group .pw-input { width: 100%; }
  .pw-activity-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pw-banner-upload { padding: 22px 14px; }
  .pw-submit-row { flex-direction: column-reverse; padding: 14px 0 4px; gap: 8px; }
  .pw-btn-submit, .pw-btn-cancel { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
  .pw-section-title { padding: 12px 14px; }

  /* ── 상세 헤더 액션 ── */
  .pld-page-header .pub-page-header-right { flex-wrap: wrap; gap: 6px; }
  .pld-page-header .pub-page-header-right .pld-sbar-btn,
  .pld-page-header .pub-page-header-right .pub-form-back-btn { min-height: 44px; }
  .pld-share-inner { flex-wrap: wrap; gap: 8px; }
  .pld-sbar-list { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  /* ── 카드 1열 ── */
  .pl-grid { grid-template-columns: 1fr; }
  /* ── 필터 라벨 숨김 ── */
  .pl-flabel { display: none; }
  /* ── 활동분야 1열 ── */
  .pw-activity-grid { grid-template-columns: 1fr; }
  /* ── 규격 인풋 각각 full-width ── */
  .pw-dim-group .pw-input { width: 100%; }
  .pw-field-inline > span:not(.pw-dim-unit):not(.pw-range-sep) { display: none; }
  /* ── 패딩 최소화 ── */
  .pw-label { padding: 10px 12px 4px; }
  .pw-field { padding: 0 12px 12px; }
  .pw-section-title { padding: 10px 12px; }
}

/* ══════════════════════════════════════════
   현수막 상세 (detail.php) — write 동형 pw-section + pld-* 보조
══════════════════════════════════════════ */
.pl-wrap .pw-section-num { background: var(--pub-accent, #8e44ad); }
.pl-wrap .pw-check { color: var(--pub-accent, #8e44ad); }

.pld-page-header .pld-badges { margin-bottom: 8px; }
.pld-page-header .pld-meta { margin-top: 4px; }
.pld-page-header .pub-page-header-right .pld-sbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.pld-page-header .pub-page-header-right .pld-sbar-btn:hover {
  border-color: var(--pub-accent, #8e44ad);
  color: var(--pub-accent, #8e44ad);
}

.pw-section .pld-banner-frame,
.pw-section .pld-banner-placeholder { margin-top: 0; }

.pw-section .pld-footer-btns {
  padding: 14px 20px 18px;
  border-top: none;
  background: transparent;
}

.pw-section .pld-prevnext {
  padding: 12px 20px 16px;
  margin: 0;
  border: none;
  background: transparent;
}

.pld-sidebar-section { margin-bottom: 16px; }
.pld-sidebar-section .pld-rel-item:last-child { border-bottom: none; }
/* 우측 사이드바 영역 박스 — pub-sb-box 간격 (현수막 detail 등) */
.pub-sidebar .pld-sb-box.pub-sb-box {
  margin: 0;
}
.pub-sidebar .pld-sb-box .pub-sb-title {
  margin-bottom: 14px;
}
.pub-sidebar .pld-sb-box .pld-rel-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.pub-sidebar .pld-sb-box .pld-rel-item:first-of-type {
  padding-top: 4px;
}
.pld-sidebar-body {
  padding: 14px 16px;
  font-size: 14px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 레거시 flat 헤더 — 신규 detail 미사용 */
.pld-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.pld-header-inner {
  width: 100%;
  padding: 16px 0 12px;
}
.pld-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}
.pld-breadcrumb a { color: #64748b; text-decoration: none; }
.pld-breadcrumb a:hover { color: #8e44ad; }
.pld-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.pld-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}
.pld-badge.pl-badge-active   { background: #dcfce7; color: #166534; }
.pld-badge.pl-badge-soon     { background: #fef3c7; color: #92400e; }
.pld-badge.pl-badge-upcoming { background: #e0f2fe; color: #075985; }
.pld-badge.pl-badge-ended    { background: #f1f5f9; color: #64748b; }
.pld-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #0f172a;
  word-break: keep-all;
}
.pld-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: #64748b;
}
.pld-meta i { margin-right: 4px; }
.pld-share-bar {
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}
.pld-share-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}
.pld-share-label { font-size: 14px; font-weight: 700; color: #94a3b8; margin-right: 4px; }
.pld-sbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: var(--pub-fs-sm, 14px);
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.pld-sbar-btn:hover { border-color: var(--pub-accent, #8e44ad); color: var(--pub-accent, #8e44ad); }
.pld-sbar-list { margin-left: auto; }

.pld-banner-viewer {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.pld-banner-viewer-inner { padding: 16px; }
.pld-banner-label {
  font-size: 14px;
  font-weight: 700;
  color: #8e44ad;
  margin-bottom: 12px;
}
.pld-banner-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0f172a;
  max-height: 420px;
}
.pld-banner-frame img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.pld-banner-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}
.pld-banner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  color: #94a3b8;
  font-size: 15px;
}
.pld-banner-placeholder i { font-size: 32px; opacity: .5; }
.pld-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  font-size: 14px;
  color: #64748b;
}
.pld-banner-meta-item { display: inline-flex; align-items: center; gap: 6px; }

.pld-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.pld-main { min-width: 0; }
.pld-aside { min-width: 0; }

.pld-infobox,
.pld-content-box,
.pld-sidebar-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.pld-infobox-header {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pld-infobox-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f8fafc;
  font-size: 15px;
}
.pld-infobox-row:last-child { border-bottom: none; }
.pld-inforow-label { color: #64748b; font-weight: 600; }
.pld-inforow-val { color: #1e293b; word-break: break-word; }

.pld-note {
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 15px;
  color: #92400e;
  margin-bottom: 16px;
}
.pld-content-body {
  padding: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}
.pld-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}
.pld-fbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
}
.pld-fbtn:hover { background: #f8fafc; }
.pld-fbtn-register {
  background: var(--pub-accent, #8e44ad);
  border-color: var(--pub-accent, #8e44ad);
  color: #fff;
}
.pld-fbtn-register:hover {
  filter: brightness(.92);
  background: var(--pub-accent, #8e44ad);
}
.pld-fbtn-edit {
  border-color: #cbd5e1;
  color: #334155;
}
.pld-fbtn-delete {
  border-color: #fecaca;
  color: #dc2626;
}
.pld-fbtn-delete:hover { background: #fef2f2; }

.pld-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pld-pn-item {
  display: block;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.pld-pn-item:hover { border-color: #8e44ad; }
.pld-pn-dir { font-size: 14px; color: #8e44ad; font-weight: 700; display: block; }
.pld-pn-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pld-pn-date { font-size: 14px; color: #94a3b8; }

.pld-sidebar-header {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}
.pld-rel-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.pld-rel-item:hover { background: #faf5ff; }
.pld-rel-item:last-child { border-bottom: none; }
.pld-rel-thumb {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.pld-rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pld-rel-title { font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.35; }
.pld-rel-meta { font-size: 14px; color: #94a3b8; margin-top: 2px; }

#pldLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, .88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#pldLightbox.open { display: flex; }
#pldLightbox img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
#pldLightboxClose {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

#plPwModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(15, 23, 42, .5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#plPwModal.open { display: flex; }
#plPwModal .pl-pw-modal-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

@media (max-width: 960px) {
  .pld-body { grid-template-columns: 1fr; }
  .pld-sbar-list { margin-left: 0; }
  .pld-prevnext { grid-template-columns: 1fr; }
  .pld-infobox-row { grid-template-columns: 1fr; }
  .pld-inforow-label { padding-bottom: 0; }
}

/* ══════════════════════════════════════════
   뷰 전환 — 행사(ev-*) CSS 재사용, pl-* 추가분만 정의
   ev-vbtn·ev-view-toggle·ev-view-* 는 publicity.css 에 이미 있음
══════════════════════════════════════════ */

/* 뷰 전환 바 */
.pl-view-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

/* ── 그리드(카드형) 기본 ── */
.pl-ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

/* pl-ev-card = ev-card 역할 (placard 래퍼) */
.pl-ev-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.pl-ev-card:hover { box-shadow: 0 6px 20px rgba(15,23,42,.12); transform: translateY(-2px); }

/* ── 카드 내 이미지 뱃지 (pl-card-status 재사용) ── */
.pl-ev-card .pl-card-status { font-size: 14px; }

/* ── 뉴스형 전용 포스터 ── */
.pl-ev-card .pl-news-poster {
  position: relative;
  width: 100%;
  padding-top: 140%;
  overflow: hidden;
  background: #f8fafc;
}
.pl-ev-card .pl-news-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pl-ev-card .pl-news-poster-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.pl-ev-card .pl-np-status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.pl-ev-card .pl-np-cat {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0,0,0,.55);
  color: #fff;
}

/* ── 목록형 썸네일 ── */
.pl-list-thumb {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 12px 0 12px 12px;
  background: #f1f5f9;
  position: relative;
}
.pl-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.pl-ev-card:hover .pl-list-thumb img { transform: scale(1.05); }

/* ── 게시판형 썸네일 ── */
.pl-board-thumb {
  width: 80px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  margin: 10px 0 10px 10px;
  background: #f1f5f9;
  position: relative;
}
.pl-board-thumb img { width:100%; height:100%; object-fit:cover; }
.pl-board-thumb-ph {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; color:#94a3b8;
}

/* ── 카드 본문 공통 ── */
.pl-ev-body { flex: 1; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.pl-ev-cat  { font-size: 14px; font-weight: 600; }
.pl-ev-title { font-size: 15px; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-ev-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: #64748b; margin-top: 4px; }
.pl-ev-meta i { font-size: 14px; margin-right: 2px; }
.pl-ev-right { flex-shrink: 0; padding: 12px 12px 12px 0; text-align: right; min-width: 80px; }

/* ══ 뷰별 레이아웃 ══ */

/* 카드형 — 기본 그리드 */
.ev-view-card.pl-ev-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ev-view-card .pl-ev-card { flex-direction: column; }
.ev-view-card .pl-list-thumb,
.ev-view-card .pl-board-thumb,
.ev-view-card .pl-news-poster { display: none; }
.ev-view-card .pl-card-banner { display: block; }

/* 목록형 */
.ev-view-list.pl-ev-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.ev-view-list .pl-ev-card {
  flex-direction: row;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f0;
  border-left: none; border-right: none; border-top: none;
  box-shadow: none;
}
.ev-view-list .pl-ev-card:first-child { border-top: 1px solid #e2e8f0; border-radius: 12px 12px 0 0; }
.ev-view-list .pl-ev-card:last-child  { border-radius: 0 0 12px 12px; }
.ev-view-list .pl-ev-card:hover { transform: none; background: #f8fafc; box-shadow: none; }
.ev-view-list .pl-card-banner,
.ev-view-list .pl-news-poster,
.ev-view-list .pl-board-thumb { display: none; }
.ev-view-list .pl-list-thumb { display: block; }
.ev-view-list .pl-ev-body { justify-content: center; }

/* 뉴스형 */
.ev-view-news.pl-ev-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.ev-view-news .pl-ev-card { flex-direction: column; border-radius: 12px; overflow: hidden; }
.ev-view-news .pl-card-banner,
.ev-view-news .pl-list-thumb,
.ev-view-news .pl-board-thumb { display: none; }
.ev-view-news .pl-news-poster { display: block; position: relative; width: 100%; padding-top: 140%; }
.ev-view-news .pl-ev-body { padding: 8px 10px 10px; }
.ev-view-news .pl-ev-title { font-size: 14px; -webkit-line-clamp: 2; }
.ev-view-news .pl-ev-meta { flex-direction: column; gap: 2px; font-size: 14px; }

/* 웹진형 */
.ev-view-webzine.pl-ev-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.ev-view-webzine .pl-ev-card { flex-direction: column; }
.ev-view-webzine .pl-list-thumb,
.ev-view-webzine .pl-board-thumb,
.ev-view-webzine .pl-news-poster { display: none; }
.ev-view-webzine .pl-card-banner { display: block; }
.ev-view-webzine .pl-ev-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
}
.ev-view-webzine .pl-ev-card:first-child .pl-card-banner {
  width: 55%;
  min-height: 220px;
  flex-shrink: 0;
  padding-top: 0;
}
.ev-view-webzine .pl-ev-card:first-child .pl-card-banner img {
  position: relative;
  inset: auto;
  height: 100%;
}
.ev-view-webzine .pl-ev-card:first-child .pl-ev-body { padding: 20px; }
.ev-view-webzine .pl-ev-card:first-child .pl-ev-title { font-size: 20px; -webkit-line-clamp: 3; }

/* 게시판형 */
.ev-view-board.pl-ev-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.ev-view-board .pl-ev-card {
  flex-direction: row;
  align-items: center;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f0;
  border-left: none; border-right: none; border-top: none;
  box-shadow: none;
  min-height: 72px;
}
.ev-view-board .pl-ev-card:first-child { border-top: 1px solid #e2e8f0; border-radius: 12px 12px 0 0; }
.ev-view-board .pl-ev-card:last-child  { border-radius: 0 0 12px 12px; }
.ev-view-board .pl-ev-card:hover { transform: none; background: #f8fafc; box-shadow: none; }
.ev-view-board .pl-card-banner,
.ev-view-board .pl-list-thumb,
.ev-view-board .pl-news-poster { display: none; }
.ev-view-board .pl-board-thumb { display: flex; }
.ev-view-board .pl-ev-body { flex-direction: row; align-items: center; padding: 8px 10px; gap: 10px; }
.ev-view-board .pl-ev-cat  { display: none; }
.ev-view-board .pl-ev-title { -webkit-line-clamp: 1; flex: 1; font-size: 15px; }
.ev-view-board .pl-ev-meta { flex-direction: row; flex-wrap: nowrap; white-space: nowrap; font-size: 14px; }
.ev-view-board .pl-ev-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 8px 12px 8px 0; }

/* 모바일 반응형 */
@media (max-width: 1024px) {
  .ev-view-card.pl-ev-grid { grid-template-columns: repeat(3, 1fr); }
  .ev-view-news.pl-ev-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .ev-view-card.pl-ev-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ev-view-webzine.pl-ev-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-view-webzine .pl-ev-card:first-child { flex-direction: column; }
  .ev-view-webzine .pl-ev-card:first-child .pl-card-banner { width: 100%; min-height: 180px; padding-top: 50%; }
  .ev-view-news.pl-ev-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ev-view-board .pl-ev-body { flex-wrap: wrap; }
  .ev-view-board .pl-ev-right { display: none; }
  .ev-view-list .pl-list-thumb { width: 120px; height: 80px; }
  .ev-vbtn span { display: none; }
  .ev-vbtn { padding: 6px 10px; }
}
@media (max-width: 480px) {
  .ev-view-card.pl-ev-grid  { grid-template-columns: 1fr; }
  .ev-view-webzine.pl-ev-grid { grid-template-columns: 1fr; }
  .ev-view-webzine .pl-ev-card:first-child { grid-column: 1; }
  .ev-view-news.pl-ev-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ev-view-list .pl-list-thumb { width: 100% !important; height: 120px !important; margin: 0 !important; }
  .ev-view-list .pl-ev-card { flex-direction: column !important; }
}
