/* NVP24 행사 · 지원사업 (/events — portal-event 스킨, meta.txt css=portal-press|events)
   부품은 nvp24.css(.page-hero · .card · .sec-h.bar · .badge · .btn · .chip · .th · .meta · .cta-card) +
   pages/board.css(.subcat · .list-h · .posts.grid .item · .pager · .empty · .list-flash) + pages/view.css(상세 틀) + pages/portal-press.css(.press-write 양식)를 그대로 쓴다.
   여기서는 그 부품으로 안 되는 것만 더한다: 보기 전환 링크 · 카드 날짜 표 · 월 달력 · 그달 행사 줄 · 지원사업 줄 · 필터 줄 · 상세 정보 상자.
   색 · 둥글기 · 그림자는 nvp24.css 토큰만 (html[data-theme=dark] 에서 그대로 바뀐다). board.css 의 전역 .layout · .ev 이름과 겹치지 않게 ev- 접두사 */

/* ───────── 목록 틀 (오른쪽 칸 없이 전체 폭) ───────── */
.events-page .ev-body {
  padding-top: 24px;
}
.events-page .ev-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.events-page .list-h {
  flex-wrap: wrap;
}
.events-page .list-h .ev-view {
  margin-left: auto;
}
.events-page .list-h .view a {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 700;
}
.events-page .list-h .view a:hover {
  color: var(--text);
}
.events-page .list-h .view a.on {
  background: var(--brand-soft);
  color: var(--brand);
}
.events-page .ev-sec {
  margin-top: 40px;
}
.events-page .posts.grid + .ev-sec,
.events-page .pager + .ev-sec {
  margin-top: 44px;
}
.events-page .empty .btn {
  margin-top: 14px;
}

/* 웹진 카드 — board.css .posts.grid .item 위에 날짜 표 · 참가비 줄만 */
.events-page .ev-posts .item .th {
  aspect-ratio: 16 / 10;
}
.events-page .ev-posts .item .tags {
  flex-wrap: wrap;
}
.events-page .ev-posts .item .meta {
  margin-top: 8px;
}
.events-page .ev-posts .item .meta .col {
  min-width: 0;
}
.events-page .ev-posts .item.ended {
  opacity: 0.62;
}
.events-page .ev-date {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  text-align: center;
  line-height: 1.15;
  box-shadow: var(--shadow);
}
.events-page .ev-date small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}
.events-page .ev-date b {
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.events-page .ev-ft {
  margin-top: 6px;
}
.events-page .ev-ft b {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.events-page .ev-cta-card {
  margin-top: 44px;
}
.events-page .ev-cta-card p {
  max-width: 520px;
}

/* 캘린더 보기 */
.events-page .ev-cal {
  padding: 18px;
  margin-top: 20px;
}
.events-page .ev-cal-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.events-page .ev-cal-h h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 120px;
  text-align: center;
}
.events-page .ev-cal-h > a:not(.more) {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid var(--line);
}
.events-page .ev-cal-h > a:not(.more):hover {
  border-color: var(--brand);
  color: var(--brand);
}
.events-page .ev-cal-h svg.lucide {
  width: 16px;
  height: 16px;
}
.events-page .ev-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.events-page .ev-grid th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  padding: 6px 0 8px;
  text-align: center;
}
.events-page .ev-grid th.sun {
  color: var(--red);
}
.events-page .ev-grid td {
  vertical-align: top;
  height: 112px;
  padding: 6px;
  border: 1px solid var(--line);
}
.events-page .ev-grid td.other {
  background: var(--surface-2);
}
.events-page .ev-grid td.other .dn {
  opacity: 0.5;
}
.events-page .ev-grid .dn {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.events-page .ev-grid td.sun .dn {
  color: var(--red);
}
.events-page .ev-grid td.today {
  background: var(--brand-soft);
}
.events-page .ev-grid td.today .dn {
  background: var(--brand-2);
  color: #fff;
}
.events-page .ev-chip {
  display: block;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 3px solid transparent;
}
.events-page .ev-chip.first {
  border-left-color: var(--brand);
}
.events-page td.today .ev-chip {
  background: var(--surface);
}
.events-page .ev-chip:hover {
  background: var(--brand-2);
  color: #fff;
}
.events-page .ev-chip.ended {
  background: var(--surface-2);
  color: var(--text-3);
  border-left-color: transparent;
}
/* 지원사업 신청 마감 (달력) */
.events-page .ev-chip.sp {
  background: var(--red-soft);
  color: var(--red);
  border-left-color: var(--red);
}
.events-page .ev-chip.sp:hover {
  background: var(--red);
  color: #fff;
}
.events-page .ev-chip.sp.ended {
  background: var(--surface-2);
  color: var(--text-3);
  border-left-color: transparent;
}
.events-page .ev-legend {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.events-page .ev-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.events-page .ev-legend i {
  display: inline-block;
  width: 12px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
}
.events-page .ev-legend i.sp {
  background: var(--red-soft);
  border-left-color: var(--red);
}
.events-page .ev-sec h2 small {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  margin-left: 4px;
}
.events-page .ev-month-sp .dd {
  font-weight: 800;
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.events-page .ev-month-sp .dd.hot {
  color: var(--red);
}
.events-page .ev-month-sp .dd.end {
  color: var(--text-3);
}
.events-page .ev-more {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
}
.events-page .ev-month {
  list-style: none;
  border-top: 2px solid var(--text);
}
.events-page .ev-month li a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.events-page .ev-month li a:hover b {
  color: var(--brand);
}
.events-page .ev-month .d {
  width: 56px;
  height: 64px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.events-page .ev-month .d small {
  font-size: 11px;
  font-weight: 700;
}
.events-page .ev-month .d b {
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.events-page .ev-month .t {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.events-page .ev-month .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.events-page .ev-month .t > b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* 지원사업 — 위쪽 필터 줄 + 줄 목록 (시안 채용 목록 .jobs 와 같은 꼴) */
.events-page .ev-filter {
  margin-bottom: 18px;
}
.events-page .ev-filter .ev-chips {
  margin-bottom: 12px;
}
.events-page .ev-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.events-page .ev-fields select,
.events-page .ev-fields input[type="search"] {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.events-page .ev-fields input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
}
.events-page .ev-fields select:focus,
.events-page .ev-fields input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.events-page .ev-sps {
  list-style: none;
}
.events-page .ev-sps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.events-page .ev-sps li:hover {
  background: var(--surface);
}
.events-page .ev-sps .tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.events-page .ev-sps .org {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
.events-page .ev-sps h3 {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin: 6px 0 6px;
}
.events-page .ev-sps h3 a:hover {
  color: var(--brand);
}
.events-page .ev-sps .rt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.events-page .ev-sps .dd {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.events-page .ev-sps .dd.hot {
  color: var(--red);
}
.events-page .ev-sps .dd.end {
  color: var(--text-3);
}
.events-page .ev-sps .btn svg.lucide {
  width: 14px;
  height: 14px;
}
.events-page .ev-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.events-page .ev-note svg.lucide {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
}

/* ───────── 상세 (view.css .portal-view 틀 위에) ───────── */
.event-view .art-h {
  border-bottom: none;
}
.event-view .art-h .tags {
  flex-wrap: wrap;
}
.event-view .ev-flash {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.event-view .ev-flash svg.lucide {
  width: 17px;
  height: 17px;
  flex: none;
}
.event-view .ev-info {
  padding: 20px 22px;
  margin: 4px 0 28px;
}
.event-view .ev-info dl {
  display: grid;
  gap: 10px;
}
.event-view .ev-info dl > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
}
.event-view .ev-info dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-weight: 700;
  font-size: 13.5px;
}
.event-view .ev-info dt svg.lucide {
  width: 16px;
  height: 16px;
}
.event-view .ev-info dd {
  color: var(--text);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.event-view .ev-info dd a {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.event-view .ev-info dd svg.lucide {
  width: 14px;
  height: 14px;
}
.event-view .ev-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.event-view .ev-cta [aria-disabled] {
  opacity: 0.6;
  cursor: default;
}
.event-view .ev-apply-wrap {
  padding-bottom: 0;
  margin-top: 32px;
}
.event-view .ev-apply {
  scroll-margin-top: 90px;
}
.event-view .ev-apply > h2 .no svg.lucide {
  width: 14px;
  height: 14px;
}
.event-view .ev-apply .grid2 .f.full {
  grid-column: 1 / -1;
}
.event-view .ev-closed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
}
.event-view .ev-closed b {
  color: var(--red);
}
.event-view .ev-closed svg.lucide {
  width: 18px;
  height: 18px;
  flex: none;
}
.event-view .ev-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.event-view .privacy {
  margin: 4px 0 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.event-view .privacy > b {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
}
.event-view .privacy dl > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
}
.event-view .privacy dt {
  font-weight: 700;
  color: var(--text);
}
.event-view .privacy > p {
  margin: 8px 0 12px;
}
.event-view .ev-side {
  padding: 18px;
}
.event-view .ev-side ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-view .ev-side li a {
  display: flex;
  gap: 12px;
  align-items: center;
}
.event-view .ev-side li a:hover b {
  color: var(--brand);
}
.event-view .ev-side .dt {
  flex: none;
  width: 48px;
  height: 52px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.event-view .ev-side .dt small {
  font-size: 11px;
  font-weight: 700;
}
.event-view .ev-side .dt b {
  font-size: 19px;
  font-weight: 900;
}
.event-view .ev-side .tt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.event-view .ev-side .tt b {
  font-size: 14px;
  font-weight: 700;
}
.event-view .ev-side .tt small {
  font-size: 12px;
  color: var(--text-3);
}
.event-view .ev-side .empty {
  font-size: 13px;
  color: var(--text-3);
}

/* ───────── 등록 (portal-press.css .press-write 양식 위에) ───────── */
.event-write .grid2 .f.full {
  grid-column: 1 / -1;
}
.event-write [data-venue][hidden],
.event-write [data-apply][hidden],
.event-write [data-venue-req][hidden] {
  display: none !important;
}

/* ───────── 반응형 ───────── */
@media (max-width: 860px) {
  .events-page .ev-grid td {
    height: 84px;
    padding: 4px;
  }
  .events-page .ev-chip {
    font-size: 10.5px;
    padding: 1px 4px;
  }
}
@media (max-width: 640px) {
  .events-page .list-h .view a span {
    display: none;
  }
  .events-page .ev-grid td {
    height: 52px;
  }
  .events-page .ev-grid .dn {
    min-width: 22px;
    height: 22px;
    font-size: 12px;
  }
  /* 좁은 화면 달력은 점만 — 행사 목록은 아래 "그달 행사"에서 */
  .events-page .ev-chip,
  .events-page .ev-more {
    font-size: 0;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--brand);
    margin-top: 2px;
  }
  .events-page .ev-chip.ended {
    background: var(--line-2);
  }
  .events-page .ev-chip.sp {
    background: var(--red);
  }
  .events-page .ev-chip.sp.ended {
    background: var(--line-2);
  }
  .events-page .ev-legend {
    gap: 8px;
    font-size: 11px;
  }
  .events-page .ev-sps li {
    grid-template-columns: minmax(0, 1fr);
  }
  .events-page .ev-sps .rt {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .event-view .ev-info dl > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
