/* Dostępny kalendarz wydarzeń — zastępuje nobosscalendar. Neutralne, wysoki kontrast. */
/* Kalendarz (siatka + lista nadchodzących) zajmuje ~3/4 wiersza; sąsiedni .col z ogłoszeniami
   ~1/4. Lista nadchodzących ma scroll gdy wydarzeń dużo (niezależnie od pokazywanego miesiąca). */
.uws-cal { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start;
  color: #10233f; max-width: 940px; }
.uws-cal__grid { flex: 0 0 340px; min-width: 300px; }
.uws-cal__list { flex: 1 1 260px; min-width: 240px; max-height: 430px; overflow-y: auto;
  padding-right: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* nagłówek + nawigacja miesiąca */
.uws-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.uws-cal__title { margin: 0; font-size: 1.15rem; text-transform: capitalize; }
.uws-cal__nav {
  border: 1px solid #b9c2d0; background: #fff; color: #10233f; font-size: 1.3rem; line-height: 1;
  width: 2.2rem; height: 2.2rem; border-radius: 8px; cursor: pointer;
}
.uws-cal__nav:hover { background: #eaf0fb; }
.uws-cal__nav:focus-visible, .uws-cal__day:focus-visible, .uws-cal__item:focus-visible,
.uws-modal__close:focus-visible, .uws-modal__link:focus-visible { outline: 3px solid #2f6bd8; outline-offset: 2px; }

/* siatka */
.uws-cal__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.uws-cal__table th { padding: .35rem 0; font-size: .8rem; color: #5a6b85; font-weight: 600; }
.uws-cal__cell { padding: 2px; text-align: center; height: 2.6rem; vertical-align: middle; }
.uws-cal__day {
  width: 100%; min-height: 2.3rem; border: 1px solid transparent; background: transparent;
  color: #10233f; border-radius: 8px; cursor: default; position: relative; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.uws-cal__day[aria-disabled="true"] { color: #9aa6bb; }
.uws-cal__day.has-ev { cursor: pointer; background: #eaf0fb; border-color: #cdd9f0; font-weight: 700; }
.uws-cal__day.has-ev:hover { background: #dbe6fb; }
.uws-cal__day.is-today { outline: 2px solid #2f6bd8; outline-offset: -2px; }
.uws-cal__dot { width: 6px; height: 6px; border-radius: 50%; background: #2f6bd8; }

/* lista najbliższych */
.uws-cal__list-h { margin: 0 0 .6rem; font-size: 1.15rem; }
.uws-cal__ul { list-style: none; margin: 0; padding: 0; }
.uws-cal__li { margin: 0 0 .5rem; }
.uws-cal__item {
  display: flex; gap: .7rem; width: 100%; text-align: left; background: #fff; cursor: pointer;
  border: 1px solid #e2e8f2; border-radius: 10px; padding: .6rem .7rem; color: #10233f; font: inherit;
}
.uws-cal__item:hover { border-color: #2f6bd8; background: #f5f8ff; }
.uws-cal__item-date { flex: 0 0 auto; font-weight: 700; color: #2f6bd8; font-size: .85rem; min-width: 4.5rem; }
.uws-cal__item-body { display: flex; flex-direction: column; gap: 1px; }
.uws-cal__item-title { font-weight: 600; }
.uws-cal__item-loc { font-size: .82rem; color: #5a6b85; }
.uws-cal__empty { color: #5a6b85; }

/* modal */
.uws-modal-back { position: fixed; inset: 0; background: rgba(16,35,63,.55); z-index: 3000;
  display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.uws-modal { background: #fff; color: #10233f; max-width: 620px; width: 100%; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(16,35,63,.35); }
.uws-modal__head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.2rem .4rem; }
.uws-modal__title { margin: 0; font-size: 1.25rem; flex: 1; }
.uws-modal__close { margin-left: auto; border: 0; background: #eef2f8; width: 2.2rem; height: 2.2rem;
  border-radius: 8px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #10233f; flex: 0 0 auto; }
.uws-modal__close:hover { background: #dbe6fb; }
.uws-modal__content { padding: .3rem 1.2rem 1.4rem; }
.uws-modal__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .2rem 0 .8rem; color: #34405a; }
.uws-modal__when { font-weight: 700; color: #2f6bd8; }
.uws-modal__img { max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto .8rem; display: block; }
.uws-modal__body { line-height: 1.5; }
.uws-modal__body ul { padding-left: 1.2rem; }
.uws-modal__link { display: inline-block; margin-top: .9rem; font-weight: 600; color: #2f6bd8; }
@media (prefers-contrast: more) {
  .uws-cal__day.has-ev { border-color: #000; }
  .uws-cal__item, .uws-modal { border: 1px solid #000; }
}
