.igds-ope-calendar-sheet {
  --igds-ope-calendar-accent: #9d1b1e;
  --igds-ope-calendar-border: #2d2d2d;
  --igds-ope-calendar-head: #d5d5d5;
  --igds-ope-calendar-muted: #efefef;
  --igds-ope-calendar-cell-min-height: 220px;
  --igds-ope-calendar-day-bg: #ffffff;
  --igds-ope-calendar-outside-bg: #f8f8f8;
  --igds-ope-calendar-title-color: #111111;
  --igds-ope-calendar-text: #111111;
  --igds-ope-calendar-meta: #555555;
  --igds-ope-calendar-title-size: 56px;
  --igds-ope-calendar-weekday-size: 22px;
  --igds-ope-calendar-daynum-size: 42px;
  --igds-ope-calendar-event-title-size: 16px;
  --igds-ope-calendar-event-title-line-height: 1.22;
  --igds-ope-calendar-meta-size: 12px;
  --igds-ope-calendar-nav-size: 18px;
  --igds-ope-calendar-image-size: 48px;
  margin: 0 0 32px;
  color: var(--igds-ope-calendar-text);
}

.igds-ope-calendar-sheet * {
  box-sizing: border-box;
}

.igds-ope-calendar-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}

.igds-ope-calendar-sheet__title {
  margin: 0;
  font-size: clamp(32px, 4vw, var(--igds-ope-calendar-title-size));
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  flex: 1 1 auto;
  color: var(--igds-ope-calendar-title-color);
}

.igds-ope-calendar-sheet__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--igds-ope-calendar-border);
  border-radius: 4px;
  background: var(--igds-ope-calendar-day-bg);
  color: var(--igds-ope-calendar-text) !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  font-size: var(--igds-ope-calendar-nav-size);
}

.igds-ope-calendar-sheet__table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  background: var(--igds-ope-calendar-day-bg);
}

.igds-ope-calendar-sheet__table th,
.igds-ope-calendar-sheet__table td {
  border: 1px solid var(--igds-ope-calendar-border);
}

.igds-ope-calendar-sheet__table thead th {
  padding: 14px 10px;
  background: var(--igds-ope-calendar-head);
  font-size: clamp(16px, 1.4vw, var(--igds-ope-calendar-weekday-size));
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
}

.igds-ope-calendar-sheet__weekhead,
.igds-ope-calendar-sheet__weeknum {
  width: 52px;
}

.igds-ope-calendar-sheet__weeknum {
  background: #f4f4f4;
  font-weight: 700;
  color: var(--igds-ope-calendar-text);
  text-align: center;
  vertical-align: top;
  padding: 12px 6px;
}

.igds-ope-calendar-sheet__day {
  vertical-align: top;
  min-height: var(--igds-ope-calendar-cell-min-height);
  height: var(--igds-ope-calendar-cell-min-height);
  padding: 12px;
  background: var(--igds-ope-calendar-day-bg);
}

.igds-ope-calendar-sheet__day.is-outside-month {
  background: var(--igds-ope-calendar-outside-bg);
}

.igds-ope-calendar-sheet__day.is-today {
  box-shadow: inset 0 0 0 3px var(--igds-ope-calendar-accent);
}

.igds-ope-calendar-sheet__daynum {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, var(--igds-ope-calendar-daynum-size));
  line-height: 1;
  font-weight: 800;
}

.igds-ope-calendar-sheet__events {
  display: grid;
  gap: 8px;
}

.igds-ope-calendar-sheet__event {
  position: relative;
  display: block;
  padding: 8px 8px 8px 10px;
  border-left: 4px solid var(--igds-ope-calendar-accent);
  background: #fafafa;
  overflow: hidden;
}

.igds-ope-calendar-sheet.layout-side .igds-ope-calendar-sheet__event {
  display: grid;
  grid-template-columns: var(--igds-ope-calendar-image-size) minmax(0, 1fr);
  gap: 10px;
}

.igds-ope-calendar-sheet.layout-side .igds-ope-calendar-sheet__event-image {
  float: none;
  margin: 0;
}

.igds-ope-calendar-sheet.layout-float-right .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.layout-inline-icon .igds-ope-calendar-sheet__event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.igds-ope-calendar-sheet.layout-float-right .igds-ope-calendar-sheet__event-image,
.igds-ope-calendar-sheet.layout-inline-icon .igds-ope-calendar-sheet__event-image {
  float: none;
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
  margin: 0;
}

.igds-ope-calendar-sheet.layout-stacked .igds-ope-calendar-sheet__event-image {
  display: block;
  float: none;
  width: 100%;
  height: 110px;
  margin: 0 0 8px 0;
}

.igds-ope-calendar-sheet__event-image {
  display: block;
  width: var(--igds-ope-calendar-image-size);
  height: var(--igds-ope-calendar-image-size);
  overflow: hidden;
  background: #e9e9e9;
}

.igds-ope-calendar-sheet.layout-inline-icon .igds-ope-calendar-sheet__event-image {
  border-radius: 50%;
}

.igds-ope-calendar-sheet__event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.igds-ope-calendar-sheet__event-content {
  min-width: 0;
  width: 100%;
}

.igds-ope-calendar-sheet__event-time,
.igds-ope-calendar-sheet__event-venue {
  font-size: var(--igds-ope-calendar-responsive-meta-size, var(--igds-ope-calendar-meta-size));
  line-height: 1.3;
  color: var(--igds-ope-calendar-meta);
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.igds-ope-calendar-sheet__event-time {
  margin: 0 0 2px;
}

.igds-ope-calendar-sheet__event-venue {
  margin: 2px 0 0;
}

.igds-ope-calendar-sheet__event-title {
  display: block;
  margin: 3px 0;
  font-weight: 700;
  line-height: var(--igds-ope-calendar-responsive-title-line-height, var(--igds-ope-calendar-event-title-line-height));
  font-size: var(--igds-ope-calendar-responsive-title-size, var(--igds-ope-calendar-event-title-size));
  color: var(--igds-ope-calendar-text) !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.igds-ope-calendar-sheet.hyphenation-off .igds-ope-calendar-sheet__event-title {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.igds-ope-calendar-sheet.hyphenation-on .igds-ope-calendar-sheet__event-title {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}


.igds-ope-calendar-sheet.responsive-readability-on {
  --igds-ope-calendar-responsive-title-size: var(--igds-ope-calendar-event-title-size);
  --igds-ope-calendar-responsive-title-line-height: var(--igds-ope-calendar-event-title-line-height);
  --igds-ope-calendar-responsive-meta-size: var(--igds-ope-calendar-meta-size);
}

.igds-ope-calendar-sheet.responsive-readability-on .igds-ope-calendar-sheet__event {
  overflow: hidden;
}

.igds-ope-calendar-sheet.responsive-readability-on .igds-ope-calendar-sheet__event-time,
.igds-ope-calendar-sheet.responsive-readability-on .igds-ope-calendar-sheet__event-venue,
.igds-ope-calendar-sheet.responsive-readability-on .igds-ope-calendar-sheet__event-title {
  max-width: 100%;
}

.igds-ope-calendar-sheet.responsive-readability-on .igds-ope-calendar-sheet__event-content,
.igds-ope-calendar-sheet.responsive-readability-on .igds-ope-calendar-sheet__event-title {
  width: 100%;
  min-width: 0;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on {
  --igds-ope-calendar-responsive-title-size: max(13px, calc(var(--igds-ope-calendar-event-title-size) - 1px));
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on .igds-ope-calendar-sheet__event {
  padding: 7px 7px 7px 9px;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on.layout-inline-icon .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on.layout-float-right .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on.layout-side .igds-ope-calendar-sheet__event {
  display: block;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on.layout-inline-icon .igds-ope-calendar-sheet__event-image,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on.layout-float-right .igds-ope-calendar-sheet__event-image,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--medium.responsive-readability-on.layout-side .igds-ope-calendar-sheet__event-image {
  display: block;
  float: none;
  width: 18px;
  height: 18px;
  margin: 0 0 5px 0;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on {
  --igds-ope-calendar-responsive-title-size: max(12px, calc(var(--igds-ope-calendar-event-title-size) - 2px));
  --igds-ope-calendar-responsive-title-line-height: 1.16;
  --igds-ope-calendar-responsive-meta-size: max(10px, calc(var(--igds-ope-calendar-meta-size) - 1px));
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on .igds-ope-calendar-sheet__day {
  padding: 8px;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on .igds-ope-calendar-sheet__daynum {
  margin-bottom: 8px;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on .igds-ope-calendar-sheet__event {
  padding: 6px 6px 6px 8px;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on.layout-inline-icon .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on.layout-float-right .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on.layout-side .igds-ope-calendar-sheet__event {
  display: block;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on.layout-inline-icon .igds-ope-calendar-sheet__event-image,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on.layout-float-right .igds-ope-calendar-sheet__event-image,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-readability-on.layout-side .igds-ope-calendar-sheet__event-image {
  display: block;
  float: none;
  width: 17px;
  height: 17px;
  margin: 0 0 4px 0;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--narrow.responsive-hide-venue-narrow .igds-ope-calendar-sheet__event-venue {
  display: none;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on {
  --igds-ope-calendar-responsive-title-size: max(11px, calc(var(--igds-ope-calendar-event-title-size) - 3px));
  --igds-ope-calendar-responsive-title-line-height: 1.12;
  --igds-ope-calendar-responsive-meta-size: max(9px, calc(var(--igds-ope-calendar-meta-size) - 2px));
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on .igds-ope-calendar-sheet__day {
  padding: 7px;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on .igds-ope-calendar-sheet__daynum {
  margin-bottom: 7px;
  font-size: clamp(18px, 1.2vw, 24px);
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on .igds-ope-calendar-sheet__events {
  gap: 6px;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on .igds-ope-calendar-sheet__event {
  padding: 5px 5px 5px 7px;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on.layout-inline-icon .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on.layout-float-right .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on.layout-side .igds-ope-calendar-sheet__event {
  display: block;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on.layout-inline-icon .igds-ope-calendar-sheet__event-image,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on.layout-float-right .igds-ope-calendar-sheet__event-image,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-readability-on.layout-side .igds-ope-calendar-sheet__event-image {
  display: block;
  float: none;
  width: 16px;
  height: 16px;
  margin: 0 0 4px 0;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-hide-images-tiny .igds-ope-calendar-sheet__event-image {
  display: none;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-hide-images-tiny.layout-inline-icon .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-hide-images-tiny.layout-float-right .igds-ope-calendar-sheet__event,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-hide-images-tiny.layout-side .igds-ope-calendar-sheet__event {
  grid-template-columns: minmax(0, 1fr);
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-hide-venue-narrow .igds-ope-calendar-sheet__event-venue {
  display: none;
}

.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-hide-meta-tiny .igds-ope-calendar-sheet__event-time,
.igds-ope-calendar-sheet.igds-ope-calendar-sheet--tiny.responsive-hide-meta-tiny .igds-ope-calendar-sheet__event-venue {
  display: none;
}

.igds-ope-calendar-sheet__more {
  font-size: var(--igds-ope-calendar-meta-size);
  font-weight: 700;
  color: var(--igds-ope-calendar-accent);
}

.igds-ope-calendar-sheet__notice {
  padding: 12px 14px;
  border-left: 4px solid #d63638;
  background: #fff2f2;
}

@media (max-width: 1000px) {
  .igds-ope-calendar-sheet__table thead th {
    font-size: 15px;
    padding: 10px 6px;
  }

  .igds-ope-calendar-sheet__day {
    padding: 8px;
  }

  .igds-ope-calendar-sheet.layout-side .igds-ope-calendar-sheet__event {
    grid-template-columns: 1fr;
  }

  .igds-ope-calendar-sheet.layout-side .igds-ope-calendar-sheet__event-image {
    width: 100%;
    height: 110px;
  }
}

@media (max-width: 782px) {
  .igds-ope-calendar-sheet__header {
    flex-direction: column;
    align-items: stretch;
  }

  .igds-ope-calendar-sheet__title {
    order: -1;
  }

  .igds-ope-calendar-sheet__table,
  .igds-ope-calendar-sheet__table thead,
  .igds-ope-calendar-sheet__table tbody,
  .igds-ope-calendar-sheet__table tr,
  .igds-ope-calendar-sheet__table th,
  .igds-ope-calendar-sheet__table td {
    display: block;
    width: 100% !important;
  }

  .igds-ope-calendar-sheet__table thead {
    display: none;
  }

  .igds-ope-calendar-sheet__table tr {
    margin: 0 0 16px;
  }

  .igds-ope-calendar-sheet__weeknum {
    display: none;
  }

  .igds-ope-calendar-sheet__day {
    height: auto;
    min-height: 0;
  }
}
