body.sic-calendar-mode .sic-events__toolbar,
body.sic-calendar-mode .sic-events__list { display: none; }

.sic-db-calendar {
  max-width: 1180px; margin: 0 auto; padding: 26px; border: 1px solid rgba(24, 52, 95, .1);
  border-radius: 24px; background: #fff; box-shadow: 0 20px 55px rgba(24, 52, 95, .1);
}

.sic-db-calendar__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.sic-db-calendar__eyebrow { color: #2877b8; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.sic-db-calendar__heading h3 { margin: 7px 0 4px; color: #18345f; font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
.sic-db-calendar__heading p { margin: 0; color: #64748b; font-size: 15px; }
.sic-db-calendar__today { padding: 10px 18px; border: 1px solid #c9d9e6; border-radius: 10px; background: #fff; color: #18345f; font-weight: 700; cursor: pointer; }
.sic-db-calendar__today:hover, .sic-db-calendar__today:focus { border-color: #2877b8; color: #2877b8; }

.sic-db-calendar__navigator {
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; max-width: 560px; margin: 0 auto 20px;
  border-radius: 14px; background: #18345f; box-shadow: 0 12px 28px rgba(24, 52, 95, .2); color: #fff;
}
.sic-db-calendar__navigator button { height: 52px; border: 0; background: transparent; color: #fff; font-size: 25px; cursor: pointer; }
.sic-db-calendar__navigator button:hover, .sic-db-calendar__navigator button:focus { background: rgba(255,255,255,.12); }
.sic-db-calendar__navigator strong { font-size: 18px; text-align: center; text-transform: capitalize; }

.sic-db-calendar__legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 18px; margin-bottom: 18px; color: #53657b; font-size: 12px; }
.sic-db-calendar__legend strong { color: #18345f; }
.sic-db-calendar__legend span { display: inline-flex; align-items: center; gap: 6px; }
.sic-calendar-dot { width: 10px; height: 10px; border-radius: 50%; background: #7d8da3; }
.sic-calendar-dot--congress { background: #2877b8; }
.sic-calendar-dot--course { background: #22a88a; }
.sic-calendar-dot--workshop { background: #ef7f32; }
.sic-calendar-dot--online { background: #8a62c7; }

.sic-db-calendar__scroll { overflow-x: auto; border: 1px solid #dbe6ee; border-radius: 16px; background: #f8fbfd; }
.sic-db-calendar__weekdays, .sic-db-calendar__grid { min-width: 920px; }
.sic-db-calendar__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: #edf4f8; color: #52667d; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.sic-db-calendar__weekdays span { padding: 11px 6px; border-right: 1px solid #dbe6ee; }
.sic-db-calendar__weekdays span:last-child { border-right: 0; }
.sic-db-calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.sic-calendar-day { min-height: 132px; padding: 8px; border-top: 1px solid #dbe6ee; border-right: 1px solid #dbe6ee; background: #fff; }
.sic-calendar-day:nth-child(7n) { border-right: 0; }
.sic-calendar-day--outside { background: #f5f8fa; color: #9aa8b7; }
.sic-calendar-day--today { box-shadow: inset 0 0 0 2px #39c7d5; }
.sic-calendar-day__number { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; margin-bottom: 5px; border-radius: 50%; color: #334963; font-size: 12px; font-weight: 700; }
.sic-calendar-day--today .sic-calendar-day__number { background: #39c7d5; color: #fff; }
.sic-calendar-day--outside .sic-calendar-day__number { color: #9aa8b7; }
.sic-calendar-event { display: block; width: 100%; margin: 3px 0; padding: 6px 7px; overflow: hidden; border: 0; border-left: 4px solid #7d8da3; border-radius: 6px; background: #edf1f5; color: #253a54; font: inherit; font-size: 10px; font-weight: 700; line-height: 1.25; text-align: left; text-overflow: ellipsis; cursor: pointer; }
.sic-calendar-event:hover, .sic-calendar-event:focus { filter: brightness(.96); }
.sic-calendar-event--congress { border-left-color: #2877b8; background: #e8f2fa; }
.sic-calendar-event--course { border-left-color: #22a88a; background: #e7f7f2; }
.sic-calendar-event--workshop { border-left-color: #ef7f32; background: #fff1e7; }
.sic-calendar-event--online { border-left-color: #8a62c7; background: #f2ebfb; }

.sic-calendar-modal { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 20px; }
.sic-calendar-modal[hidden] { display: none; }
.sic-calendar-modal__backdrop { position: absolute; inset: 0; background: rgba(7, 23, 46, .72); backdrop-filter: blur(3px); }
.sic-calendar-modal__dialog { position: relative; z-index: 1; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.sic-calendar-modal__close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf3f7; color: #18345f; font-size: 25px; cursor: pointer; }
.sic-calendar-modal__date { display: inline-block; margin: 0 42px 10px 0; padding: 7px 11px; border-radius: 999px; background: #e8f2fa; color: #2877b8; font-size: 12px; font-weight: 700; }
.sic-calendar-modal__dialog h3 { margin: 0 38px 18px 0; color: #18345f; font-size: 25px; line-height: 1.25; }
.sic-calendar-modal__dialog dl { margin: 0 0 22px; }
.sic-calendar-modal__dialog dl div { display: grid; grid-template-columns: 175px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid #e5edf3; }
.sic-calendar-modal__dialog dt { color: #687a8f; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sic-calendar-modal__dialog dd { margin: 0; color: #263b54; font-size: 14px; font-weight: 600; }
.sic-calendar-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sic-calendar-modal__actions a { padding: 10px 15px; border-radius: 9px; background: #2877b8; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.sic-calendar-modal__actions a + a { background: #18345f; }

@media (max-width: 767px) {
  .sic-db-calendar { padding: 18px 14px; border-radius: 18px; }
  .sic-db-calendar__heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .sic-db-calendar__heading h3 { font-size: 25px; }
  .sic-db-calendar__today { align-self: stretch; }
  .sic-db-calendar__legend { justify-content: flex-start; }
  .sic-calendar-modal__dialog { padding: 27px 20px 24px; }
  .sic-calendar-modal__dialog dl div { grid-template-columns: 1fr; gap: 3px; }
}
