.ifc-event-calendar {
  --ifc-focus: #1b65d8;
  width: 100%;
  color: #414141;
  font-family: inherit;
}

.ifc-cal-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 790px;
  min-height: 650px;
  margin-inline: auto;
  padding: 43px 56px 36px;
  overflow: hidden;
  background: #fff;
  border-radius: 23px;
}

.ifc-cal-month { width: 100%; }

.ifc-cal-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  margin: 0 0 38px;
}

.ifc-cal-title {
  margin: 0;
  color: #3d3d3d;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.ifc-cal-nav {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: #b3bec8;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.ifc-cal-nav:last-child { justify-self: end; }
.ifc-cal-nav:hover { color: #737d86; background: #f6f6f3; }
.ifc-cal-nav svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.ifc-cal-weekdays,
.ifc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ifc-cal-weekdays {
  margin-bottom: 23px;
  color: #aeb7c0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.ifc-cal-grid {
  row-gap: 5px;
}

.ifc-cal-cell {
  display: grid;
  min-width: 0;
  height: 68px;
  place-items: center;
}

.ifc-cal-day {
  display: inline-grid;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  padding: 0;
  place-items: center;
  color: #414141;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 45px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

button.ifc-cal-day { cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
button.ifc-cal-day:hover { transform: translateY(-1px); }
.ifc-cal-day.is-adjacent { color: #c9c9c9; }
.ifc-cal-day.has-events { background: #e7e4d5; border-color: #c5bd91; }
.ifc-cal-day.is-selected { color: #fff; background: #aaa475; border-color: #8f884e; }
.ifc-cal-day.is-today:not(.has-events) span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.ifc-cal-nav:focus-visible,
.ifc-cal-day:focus-visible,
.ifc-event-link:focus-visible {
  outline: 3px solid var(--ifc-focus);
  outline-offset: 3px;
}

.ifc-events-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 790px;
  margin: 24px auto 0;
  padding: 30px;
  background: #fff;
  border-radius: 18px;
}
.ifc-events-panel[hidden] { display: none; }
.ifc-events-day > h3 { margin: 0 0 22px; color: #3d3d3d; font-size: 24px; line-height: 1.3; }
.ifc-event-list { display: grid; gap: 18px; }
.ifc-event-card { display: grid; grid-template-columns: minmax(160px, 32%) 1fr; overflow: hidden; border: 1px solid #8f884e; border-radius: 12px; }
.ifc-event-card:not(:has(.ifc-event-image)) { grid-template-columns: 1fr; }
.ifc-event-image img { display: block; width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.ifc-event-content { padding: 24px; }
.ifc-event-time { margin: 0 0 7px; color: #8f884e; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ifc-event-content h4 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.ifc-event-description { font-size: 16px; line-height: 1.6; }
.ifc-event-description p { margin: 0 0 12px; }
.ifc-event-link { display: inline-block; margin-top: 7px; color: #8f884e; font-weight: 700; text-decoration: none; }
.ifc-event-link:hover { text-decoration: underline; }
.ifc-event-calendar.is-loading .ifc-cal-card { opacity: .6; pointer-events: none; }

@media (max-width: 767px) {
  .ifc-cal-card { min-height: 0; padding: 24px 14px 22px; border-radius: 18px; }
  .ifc-cal-header { grid-template-columns: 42px 1fr 42px; margin-bottom: 28px; }
  .ifc-cal-title { font-size: 23px; }
  .ifc-cal-weekdays { margin-bottom: 12px; font-size: clamp(10px, 3.2vw, 14px); }
  .ifc-cal-cell { height: clamp(42px, 12vw, 58px); }
  .ifc-cal-day { width: clamp(38px, 11vw, 52px); height: clamp(38px, 11vw, 52px); font-size: clamp(25px, 7.8vw, 36px); border-width: 1px; }
  .ifc-events-panel { margin-top: 16px; padding: 20px 16px; border-radius: 14px; }
  .ifc-events-day > h3 { font-size: 20px; }
  .ifc-event-card { grid-template-columns: 1fr; }
  .ifc-event-image img { height: 190px; min-height: 0; }
  .ifc-event-content { padding: 19px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ifc-cal-card { min-height: 0; padding: 38px 42px 32px; }
  .ifc-cal-day { width: 58px; height: 58px; font-size: 40px; }
  .ifc-cal-cell { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .ifc-event-calendar * { scroll-behavior: auto !important; transition: none !important; }
}

