@charset "UTF-8";
/* 마을 달력 (/palja/calendar/) — 색은 테마 토큰을 쓴다. 표시는 색뿐 아니라 모양(별·일시정지·고리)과 글자로도 구분한다 */
.cal-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cal-cta p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.7; word-break: keep-all; }
.cal-cta-b { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }

.cal-card { padding: 16px 12px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-ttl { margin: 0; font-family: var(--pm-font-head); font-weight: 400; font-size: 22px; }
.cal-nbtn { display: inline-flex; align-items: center; justify-content: center; width: var(--pm-tap); height: var(--pm-tap); border-radius: 50%; background: var(--pm-cream); box-shadow: var(--pm-shadow-sm); color: var(--pm-ink); font-size: 28px; line-height: 1; text-decoration: none; }
.cal-nbtn.is-off { opacity: .35; box-shadow: none; }
.cal-nbtn:focus-visible, .cal-cell:focus-visible, .cal-today-link a:focus-visible { outline: 3px solid var(--pm-focus); outline-offset: 2px; }
.cal-today-link { margin: 2px 0 6px; text-align: center; font-size: 14px; min-height: 22px; }
.cal-today-link a { display: inline-flex; align-items: center; min-height: var(--pm-tap); color: var(--pm-info-ink); }

.cal-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.cal-dow { padding: 4px 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--pm-sub-text); }
.cal-dow.is-sun, .cal-cell.is-sun .cal-d { color: var(--pm-fire-deep); }
.cal-dow.is-sat, .cal-cell.is-sat .cal-d { color: var(--pm-info-ink); }
.cal-grid td { padding: 0; vertical-align: top; }
.cal-cell { position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: 1px; width: 100%; min-width: 0; min-height: 64px; padding: 4px 3px 3px; border: 2px solid transparent; border-radius: 12px; background: var(--pm-cream); color: var(--pm-ink); text-decoration: none; overflow: hidden; }
a.cal-cell:hover { background: var(--pm-soft); }
.cal-cell.is-off { opacity: .4; }
.cal-cell.is-good { background: #f6fbf2; }
.cal-cell.is-slow { background: var(--pm-info-bg); }
.cal-cell.is-today { border-color: var(--pm-fire); }
.cal-cell.is-sel { background: var(--pm-soft2); border-color: var(--pm-ink); }
.cal-cell.is-sel:not(.is-today) .cal-d { color: var(--pm-ink); } /* 고른 칸 배경(soft2) 위 일·토·휴일 색은 대비 4.5 미달 — 고른 동안은 먹색(테두리로 구분) */
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.cal-d { font-size: 15px; font-weight: 700; line-height: 1.2; }
.cal-cell.is-today .cal-d { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; background: var(--pm-fire); color: var(--pm-ink); }
.cal-moon { flex: none; }
.cal-t { display: block; min-height: 12px; font-size: 10px; line-height: 1.2; color: var(--pm-fire-deep); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cal-ics { display: flex; align-items: center; gap: 2px; min-height: 12px; margin-top: auto; }
.cal-ic { flex: none; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 4px 0; padding: 0; list-style: none; color: var(--pm-sub-text); font-size: 13px; }
.cal-legend li { display: inline-flex; align-items: center; gap: 5px; }
.cal-lg-term { color: var(--pm-fire-deep); font-size: 12px; }
.cal-sum { margin: 12px 4px 0; padding: 12px 14px; border-radius: var(--pm-r-card); background: var(--pm-info-bg); color: var(--pm-info-ink); font-size: 15px; line-height: 1.7; word-break: keep-all; }

.cal-sheet { position: relative; }
.cal-sheet:focus { outline: none; }
.cal-sheet-h { margin: 0 0 6px; font-family: var(--pm-font-head); font-weight: 400; font-size: 21px; line-height: 1.35; padding-right: 48px; }
.cal-sheet-h small { display: block; font-family: var(--pm-font-body); font-size: 13.5px; color: var(--pm-sub-text); }
.cal-sheet-sum { margin: 10px 0; font-size: 16px; line-height: 1.7; word-break: keep-all; }
.cal-lines { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cal-lines > div { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 14px; background: var(--pm-soft); }
.cal-lines dt { flex: none; width: 36px; font-weight: 700; font-size: 14.5px; }
.cal-lines dd { margin: 0; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.cal-sheet-b { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.cal-sheet-b .pm-btn { width: 100%; }
.cal-sheet-x { position: absolute; top: 8px; right: 8px; width: var(--pm-tap); height: var(--pm-tap); border: 0; border-radius: 50%; background: var(--pm-soft); color: var(--pm-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.cal-sheet-x:focus-visible { outline: 3px solid var(--pm-focus); outline-offset: 2px; }
.cal-spacer { display: none; height: 0; } /* 닫혀 있을 땐 자리를 차지하지 않는다(.pm-page gap 이 빈 칸 몫을 더 주던 것) */

@media (max-width: 720px) {
  .cal-js .cal-sheet.is-open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; max-height: 62vh; overflow-y: auto; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(120, 80, 40, .25); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--pm-cream); }
}
@media (min-width: 721px) {
  .cal-card { padding: 20px 20px 16px; }
  .cal-grid { border-spacing: 4px; }
  .cal-cell { min-height: 78px; padding: 6px 6px 5px; }
  .cal-d { font-size: 16px; }
  .cal-t { font-size: 11.5px; }
}

.cal-feed { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.cal-feed-l { font-size: 13.5px; font-weight: 700; color: var(--pm-sub-text); }
.cal-feed-i { box-sizing: border-box; width: 100%; min-height: var(--pm-tap); padding: 8px 12px; border: 2px solid var(--pm-line); border-radius: var(--pm-r-input); background: var(--pm-cream); color: var(--pm-ink); font-size: 14px; }
.cal-feed-b, .cal-sub-f { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-feed-b .pm-btn, .cal-sub-f .pm-btn { flex: 1 1 150px; }
.cal-feed-st { margin: 0 0 12px; font-size: 15px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .cal * { transition: none !important; scroll-behavior: auto !important; }
}
.cal-sheet-b [hidden], .cal-sheet-x[hidden] { display: none !important; }
.cal-pk { color: var(--pm-fire-deep); font-size: 12px; line-height: 1; font-weight: 700; }
