/* 이벤트 목록 = 상세 모두 펼침(2026-11-12 Figma MWS_QA «07.Event») — 앱 추가 CSS(접두 `evl-`).
 *   본문 칸 + PC 오른쪽 «EVENT LIST»(right-card 1745:12548) · ≤1023 하단 고정 띠(mobile_fixed_btn 1745:5333).
 *   글꼴: 바로가기 제목 Cal Sans · 번호 Nanum Gothic Coding(Google Fonts — EventFeedView 가 싣는다). */

.evl-layout { display: flex; align-items: flex-start; max-width: 1280px; margin: 0 auto; }
.evl-content { flex: 1 1 auto; min-width: 0; }
.evl-section { scroll-margin-top: 80px; }

/* ── PC 오른쪽 EVENT LIST ───────────────────── */
.evl-rail { display: none; }
@media (min-width: 1024px) {
  /* 2026-11-14 — 왼쪽 선이 푸터까지: 선은 바깥 칸(본문 높이만큼 늘어남)이, 고정은 안쪽 목록이 맡는다 */
  .evl-rail { display: block; flex: 0 0 160px; width: 160px; align-self: stretch; box-sizing: border-box; border-left: 1px solid #d0d0d0; }
  .evl-rail__inner { position: sticky; top: 80px; }
}
.evl-rail__inner {
  display: flex; flex-direction: column; gap: 20px; padding: 20px;
  max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: none;
  /* 왼쪽 선 = Figma right-card 1778:15904(2026-11-12 수정판) — 1px #d0d0d0, 안쪽 폭 119 */
  box-sizing: border-box;
}
.evl-rail__inner::-webkit-scrollbar { display: none; }
.evl-rail__title { margin: 0; font-family: "Cal Sans", "Noto Sans KR", sans-serif; font-size: 20px; line-height: normal; color: #1a1a1a; }
.evl-rail__list { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.evl-card {
  display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; text-align: left; cursor: pointer; color: #444; font: inherit;
}
.evl-card__img { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; box-sizing: border-box; background: #f7f7f7; }
.evl-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 고른 카드 = Figma sub-card variant=active — 10px 검정 50% + 그 안쪽 2px 흰 선(사진 위 10px 들어온 자리) */
.evl-card.is-active .evl-card__img::after { content: ""; position: absolute; inset: 0; border: 10px solid rgba(0, 0, 0, 0.5); }
.evl-card.is-active .evl-card__img::before { content: ""; position: absolute; inset: 10px; z-index: 1; border: 2px solid #fff; }
.evl-card__name { display: flex; align-items: center; min-width: 0; padding: 0 2px; white-space: nowrap; }
.evl-card__name b { flex: none; font-family: "Nanum Gothic Coding", monospace; font-weight: 400; font-size: 14px; line-height: 20px; }
.evl-card__name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: "Noto Sans KR", sans-serif; font-weight: 500; font-size: 12px; line-height: 16px; }
.evl-card.is-active .evl-card__name b { font-weight: 700; }
.evl-card.is-active .evl-card__name span { color: #1a1a1a; }
.evl-card:focus-visible { outline: 2px solid #81d8d0; outline-offset: 2px; }

/* ── ≤1023 하단 고정 핸들(2026-11-12 수정판 Figma `handle` 1770:9378 닫힘 · 1770:9466 펼침) ──
 *   둥근 탭(테두리 위·양옆 #cfcfcf · 위 모서리 12 · 위 20 · 꺾쇠 10×5) → (펼침) 80px 썸네일 줄 → 흰 패널(제목 + 버튼, 여백 20). */
.evl-bar { display: none; }
@media (max-width: 1023px) {
  .evl-content { padding-bottom: 150px; }
  .evl-bar {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    transform: translateY(110%); transition: transform 0.2s ease;
  }
  .evl-bar.is-on { transform: none; }
}
.evl-bar__handle {
  display: flex; align-items: center; justify-content: center; width: 100%; margin: 0;
  padding: 19px 10px 0; border: 1px solid #cfcfcf; border-bottom: 0; border-radius: 12px 12px 0 0; /* 테두리 1 + 19 = Figma 위 20 */
  background: #fff; cursor: pointer;
}
.evl-bar.is-open .evl-bar__handle { padding-bottom: 20px; }
.evl-bar__chev { display: flex; align-items: center; justify-content: center; width: 10px; height: 5px; }
.evl-bar__chev img { display: block; flex: none; width: 6px; height: 11px; transform: rotate(-90deg); }
.evl-bar.is-open .evl-bar__chev img { transform: rotate(90deg); }
.evl-bar__handle:focus-visible { outline: 2px solid #81d8d0; outline-offset: -4px; }
.evl-bar__panel { display: flex; flex-direction: column; gap: 20px; padding: 20px; background: #fff; }
.evl-bar__head { display: flex; align-items: center; gap: 12px; }
.evl-bar__title { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 4px; margin: 0; color: #444; }
.evl-bar__title b { flex: none; font-family: "Nanum Gothic Coding", monospace; font-weight: 400; font-size: 14px; line-height: 20px; }
.evl-bar__title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Noto Sans KR", sans-serif; font-weight: 700; font-size: 18px; line-height: 24px; }
.evl-bar__share { display: flex; flex: none; padding: 0; border: 0; background: none; cursor: pointer; }
.evl-bar__btns { display: flex; gap: 10px; }
.evl-bar__btns:empty { display: none; }
/* 버튼 색은 HQ «하단 띠 버튼» 값(인라인) — 없으면 민트 */
.evl-bar__btn {
  display: flex; flex: none; align-items: center; justify-content: center; padding: 9px 21px;
  border: 1px solid #81d8d0; border-radius: 8px; background: #81d8d0; color: #fff;
  font-family: "Noto Sans KR", sans-serif; font-weight: 700; font-size: 14px; line-height: 20px; white-space: nowrap; cursor: pointer;
}
.evl-bar__btn.is-grow { flex: 1 1 0; min-width: 0; }
.evl-bar__btn:not(.is-grow):only-child { flex: 1 1 0; }
.evl-bar__sheet {
  display: flex; gap: 6px; margin: 0; padding: 0 20px; list-style: none; background: #fff;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.evl-bar__sheet::-webkit-scrollbar { display: none; }
.evl-bar__sheet li { flex: none; }
.evl-bar__thumb {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; padding: 0; border: 0; background: #f7f7f7; overflow: hidden; cursor: pointer;
  font-family: "Nanum Gothic Coding", monospace; color: #444;
}
.evl-bar__thumb img { width: 100%; height: 100%; object-fit: cover; }
.evl-bar__thumb.is-active::after { content: ""; position: absolute; inset: 0; border: 10px solid rgba(0, 0, 0, 0.5); }
/* 하단 띠가 떠 있으면 전역 «맨 위로» 를 띠 위로 */
@media (max-width: 1023px) {
  html.evl-bar-on .app-global-top.floating-scroll-top { bottom: 166px; }
  html.evl-bar-open .app-global-top.floating-scroll-top { bottom: 266px; }
}
/* PC — 오른쪽 EVENT LIST 와 겹치지 않게 화면 끝 쪽으로 */
@media (min-width: 1024px) {
  html.evl-bar-on .app-global-top.floating-scroll-top { right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .evl-bar { transition: none; } }

/* ── 2026-11-14 Figma 확정판 — 이벤트 홈 = 서브타이틀 + 카드(누르면 상세) ─────────
 *   wide_new_1600 1853:7680 · 768(1024) 1853:7700 · 360 1853:7720. section_tit: PC 숫자 Century Gothic Bold 60 + 제목 Noto Sans KR 800 48
 *   (간격 6 · 위 60 · 아래 20) · 1024~1279 50/40 · 모바일 26/22(위 40 · 아래 20 · 왼쪽 20). 카드 = 목록 이미지 PC(≥768)·Mobile 그대로. */
.evl-item__tit {
  display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 60px 0 20px;
  color: #1a1a1a; font-family: "Noto Sans KR", sans-serif; font-weight: 800; font-size: 48px; line-height: 1.45; word-break: keep-all;
}
.evl-item__tit b { flex: none; font-family: "Century Gothic", "CenturyGothic", "AppleGothic", "Questrial", sans-serif; font-weight: 700; font-size: 60px; line-height: 1.2; }
.evl-item__card { display: block; }
.evl-item__card img { display: block; width: 100%; height: auto; }
.evl-item__empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #f7f7f7; color: #949494; }
.evl-item:last-child { padding-bottom: 80px; }
@media (max-width: 1279px) {
  .evl-item__tit { font-size: 40px; }
  .evl-item__tit b { font-size: 50px; }
}
/* 2026-11-24 Figma 07.Event_지사(2002:6984) — 1024 화면 = 본문 864 + 오른쪽 목록 160(왼쪽 여백 없음). 제목만 20 들인다. */
@media (min-width: 768px) and (max-width: 1279px) {
  .evl-item__tit { padding-left: 20px; }
}
@media (max-width: 767px) {
  .evl-item__tit { padding: 40px 20px 20px; font-size: 22px; }
  .evl-item__tit b { font-size: 26px; }
  .evl-item:last-child { padding-bottom: 40px; }
}

