/* Скоуп для страницы календаря */
.triplus-calendar {
  --ink: #353538;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #111827;
  --focus: #2563eb;
  --accent: #f3f4f6;
  --radius: 12px;
  --shadow: 0 4px 10px rgba(0, 0, 0, .05);
  color: var(--ink);
}

.triplus-calendar * {
  box-sizing: border-box;
}

.triplus-calendar .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

#content.site-content:not(.fixed) .triplus-calendar {
  width: calc(100vw - clamp(32px, 6vw, 128px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

#content.site-content:not(.fixed) .triplus-calendar .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

@supports (width: 100svw) {
  #content.site-content:not(.fixed) .triplus-calendar {
    width: calc(100svw - clamp(32px, 6vw, 128px));
  }
}

.triplus-calendar .subtitle {
  color: var(--muted);
  margin-bottom: 30px;
}

/* Фильтр */
.triplus-calendar .filter {
  background: #fff;
  padding: 16px 0;
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.triplus-calendar .filter::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  /* full-bleed фон без 100vw */
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: #fff;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

@supports (width: 100svw) {
  .triplus-calendar .filter::before {
    left: calc(50% - 50svw);
    right: calc(50% - 50svw);
  }
}

.triplus-calendar .filter form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

/* Метки над селектами в фильтре */
.triplus-calendar .filter form .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #6b7280);
  text-transform: uppercase;
}

.triplus-calendar label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.triplus-calendar select,
.triplus-calendar input[type=search] {
  height: 40px;
  border: 1px solid var(--line, #e5e7eb) !important;
  border-style: solid !important;
  border-radius: 10px;
  padding: 0 12px;
  font: 500 14px/1.4 Inter, sans-serif;
  background-color: #fff !important;
  color: var(--ink, #353538);
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.triplus-calendar .btn {
  background: #1d4ed8;
  color: #fff;
  border: 0;
  border-radius: 10px;
  height: 40px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Переключатель вида */
.triplus-calendar .view-toggle {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.triplus-calendar .toggle-btn {
  border: 1px solid var(--line, #e5e7eb) !important;
  border-style: solid !important;
  background: #fff !important;
  color: #1d4ed8 !important;
  border-radius: 8px;
  height: 40px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  box-shadow: none !important;
}

.triplus-calendar .toggle-btn:hover {
  background: #f9fafb !important;
}

.triplus-calendar .toggle-btn.active {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}

.triplus-calendar .toggle-btn svg,
.triplus-calendar .toggle-btn svg rect,
.triplus-calendar .toggle-btn svg line,
.triplus-calendar .toggle-btn svg circle,
.triplus-calendar .toggle-btn svg path {
  color: inherit !important;
  stroke: currentColor !important;
  fill: none !important;
}

.triplus-calendar .toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.triplus-calendar .toggle-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Заголовок группы календаря */
.triplus-calendar .month {
  font-size: 22px;
  font-weight: 500;
  margin: 50px 0 50px;
  color: #2c3e50;
  text-align: center;
  position: relative;
  padding: 0 40px;
}

.triplus-calendar .month::before,
.triplus-calendar .month::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  transform: translateY(-50%);
}

.triplus-calendar .month::before {
  left: 0;
  background: linear-gradient(90deg, transparent, #d00000);
}

.triplus-calendar .month::after {
  right: 0;
  background: linear-gradient(90deg, #d00000, transparent);
}

.triplus-calendar .calendar-group-title--year {
  margin: 46px 0 30px;
  font-size: 24px;
  font-weight: 600;
}

.triplus-calendar .calendar-group-title--year::before,
.triplus-calendar .calendar-group-title--year::after {
  width: 34%;
}

/* Карточки */
.triplus-calendar .events.cards {
  display: grid;
  gap: 16px;
}

.triplus-calendar .card {
  display: grid;
  gap: 18px;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow, 0 4px 10px rgba(0, 0, 0, .05)) !important;
  -webkit-filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .05));
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .05));
}

.triplus-calendar .card.is-key-organizer {
  border-color: rgba(255, 255, 255, .14);
  background-color: #1d4ed8;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 18% 100%, rgba(12, 33, 110, .24) 0, rgba(12, 33, 110, 0) 42%),
    linear-gradient(to top right, #163fbf 0%, #1d4ed8 46%, #2f68ea 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 18px 28px rgba(255, 255, 255, .04), inset 0 -24px 36px rgba(8, 25, 88, .22), 0 14px 32px rgba(17, 56, 165, .24) !important;
  -webkit-filter: drop-shadow(0 12px 24px rgba(17, 56, 165, .2));
  filter: drop-shadow(0 12px 24px rgba(17, 56, 165, .2));
}

.triplus-calendar .card.is-key-organizer .h3 a,
.triplus-calendar .card.is-key-organizer .btn-link,
.triplus-calendar .card.is-key-organizer .btn-link svg {
  color: #fff;
}

.triplus-calendar .card.is-key-organizer .meta {
  color: rgba(255, 255, 255, .82);
}

.triplus-calendar .card.is-key-organizer .thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.triplus-calendar .card.is-key-organizer .btn-link {
  background: transparent;
  border-color: rgba(255, 255, 255, .46) !important;
}

.triplus-calendar .card.is-key-organizer .btn-link:hover {
  background: #fff;
  border-color: #fff !important;
  color: #1d4ed8 !important;
}

.triplus-calendar .card.is-key-organizer .btn-link:hover svg {
  color: #1d4ed8;
}

.triplus-calendar .card.is-key-organizer .actions .btn-link.register {
  background: transparent;
  border-color: rgba(255, 255, 255, .46) !important;
  color: #fff;
}

.triplus-calendar .card.is-key-organizer .actions .btn-link.register:hover {
  background: #fff;
  border-color: #fff !important;
  color: #1d4ed8 !important;
}

.triplus-calendar .card.is-key-organizer .actions .btn-link.register:hover svg {
  color: #1d4ed8;
}

/* Карточка с изображением */
.triplus-calendar .card.has-image {
  grid-template-columns: 1fr;
  /* вместо 110px 1fr — картинка сверху */
  grid-template-rows: auto 1fr;
  /* картинка, затем контент */
}

/* Карточка без изображения */
.triplus-calendar .card.no-image {
  grid-template-columns: 1fr;
}

.triplus-calendar .thumb {
  border-radius: 12px;
  background: #eee center/cover no-repeat;
  aspect-ratio: 1920/365;
  /* баннерная пропорция как на странице события */
  width: 100%;
  /* во всю ширину карточки */
  height: auto;
  min-height: 160px;
  /* фолбэк на случай старых Safari/минимальной высоты */
}

.triplus-calendar .h3 {
  margin: 0;
  font-size: 18px;
}

.triplus-calendar .h3 a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}

.triplus-calendar .meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.triplus-calendar .actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.triplus-calendar .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--focus, #2563eb) !important;
  border-style: solid !important;
  /* синяя — для "Онлайн‑результаты" */
  background: #fff;
  color: var(--focus, #2563eb);
  /* был var(--focus) без фолбэка */
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.triplus-calendar .btn-link:hover {
  background: var(--focus, #2563eb);
  color: #fff !important;
  /* переопределяем возможные hover-правила темы */
}

.triplus-calendar .btn-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Первая кнопка ("Зарегистрироваться") — красная */
.triplus-calendar .actions .btn-link.register,
.triplus-calendar .actions-inline .btn-link.register {
  background: #fff;
  border: 1px solid #d00000 !important;
  color: #d00000;
  border-radius: 10px;
}

.triplus-calendar .actions .btn-link.register:hover,
.triplus-calendar .actions-inline .btn-link.register:hover {
  background: #d00000;
  border-color: #d00000;
  color: #fff;
}

.triplus-calendar .events.cards-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

#content.site-content:not(.fixed) .triplus-calendar .events.cards-modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.triplus-calendar .modern-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.triplus-calendar .modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, .08);
  border-color: #dbe3ee;
}

.triplus-calendar .modern-card.is-key-organizer {
  background:
    radial-gradient(circle at 14% 12%, rgba(147, 197, 253, .24) 0, rgba(147, 197, 253, 0) 32%),
    radial-gradient(circle at 86% 88%, rgba(255, 255, 255, .10) 0, rgba(255, 255, 255, 0) 26%),
    linear-gradient(135deg, #2563eb 0%, #1d4ed8 42%, #312e81 100%);
  box-shadow: 0 22px 44px rgba(30, 58, 138, .22);
  color: #fff;
}

.triplus-calendar .modern-thumb {
  position: relative;
  display: block;
  min-height: 220px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.triplus-calendar .modern-thumb-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, .02) 0%, rgba(15, 23, 42, .06) 52%, rgba(15, 23, 42, .32) 100%);
}

.triplus-calendar .modern-thumb-image,
.triplus-calendar .modern-thumb-fallback {
  position: absolute;
  inset: 0;
  display: block;
}

.triplus-calendar .modern-thumb-image,
.triplus-calendar .modern-sport-chip {
  z-index: 2;
}

.triplus-calendar .modern-thumb-image {
  background: center/cover no-repeat;
}

.triplus-calendar .modern-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: .08em;
  color: #94a3b8;
}

.triplus-calendar .modern-sport-chip {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .96);
  color: #111827;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -.01em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  backdrop-filter: blur(10px);
}

.triplus-calendar .modern-sport-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #111827;
}

.triplus-calendar .modern-sport-chip-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.triplus-calendar .modern-sport-chip-label {
  display: inline-block;
  line-height: 1;
}

.triplus-calendar .modern-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
  overflow: hidden;
}

.triplus-calendar .modern-body>* {
  position: relative;
  z-index: 2;
}

.triplus-calendar .modern-decor {
  position: absolute;
  right: -42px;
  bottom: -48px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, .15);
  pointer-events: none;
  transform: rotate(-8deg) scale(1);
  transform-origin: center;
  transition: transform .35s ease, color .35s ease, opacity .35s ease;
}

.triplus-calendar .modern-card:hover .modern-decor {
  transform: rotate(-2deg) scale(1.04);
}

.triplus-calendar .modern-card:hover .modern-decor--medal {
  transform: rotate(-3deg) scale(1.05);
}

.triplus-calendar .modern-decor svg {
  width: 200px;
  height: 200px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.triplus-calendar .modern-decor--medal {
  right: -18px;
  bottom: -26px;
  color: inherit;
  transform: rotate(-6deg) scale(1);
}

.triplus-calendar .modern-decor--medal img {
  width: 160px;
  height: 160px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, .18));
}

.triplus-calendar .modern-date,
.triplus-calendar .modern-location,
.triplus-calendar .modern-organizer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.triplus-calendar .modern-date {
  color: #2563eb;
  font-size: 15px;
  font-weight: 500;

}

.triplus-calendar .modern-location,
.triplus-calendar .modern-organizer {
  color: #6b7280;
}

.triplus-calendar .modern-date svg,
.triplus-calendar .modern-location svg,
.triplus-calendar .modern-organizer svg,
.triplus-calendar .modern-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.triplus-calendar .modern-title {
  margin: 5px 0 5px;
  font-size: 14px;
  line-height: 1.25;
}

.triplus-calendar .modern-title a {
  color: inherit;
  text-decoration: none;
}

.triplus-calendar .modern-distances {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 10px;
}

.triplus-calendar .modern-distance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.triplus-calendar .modern-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(229, 231, 235, .9);
}

.triplus-calendar .modern-icon,
.triplus-calendar .modern-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.triplus-calendar .modern-icon {
  width: 40px;
  color: #6b7280;
  background: #fff;
}

.triplus-calendar .modern-icon:hover {
  color: #111827;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.triplus-calendar .modern-icon.is-live {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.triplus-calendar .modern-cta {
  margin-left: auto;
  gap: 4px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  background: #2563eb;
  color: #fff !important;
}

.triplus-calendar .modern-cta:visited,
.triplus-calendar .modern-cta:hover,
.triplus-calendar .modern-cta:focus,
.triplus-calendar .modern-cta:active {
  color: #fff !important;
  text-decoration: none;
}

.triplus-calendar .modern-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.triplus-calendar .modern-cta-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.triplus-calendar .modern-cta:hover {
  transform: translateY(-1px);
}

.triplus-calendar .modern-cta.status-live {
  background: #dc2626;
}

.triplus-calendar .modern-cta.status-past {
  background: #f3f4f6;
  color: #111827 !important;
}

.triplus-calendar .modern-cta.status-past:visited,
.triplus-calendar .modern-cta.status-past:hover,
.triplus-calendar .modern-cta.status-past:focus,
.triplus-calendar .modern-cta.status-past:active {
  color: #111827 !important;
}

.triplus-calendar .modern-card.is-key-organizer .modern-date,
.triplus-calendar .modern-card.is-key-organizer .modern-location,
.triplus-calendar .modern-card.is-key-organizer .modern-organizer,
.triplus-calendar .modern-card.is-key-organizer .modern-title a {
  color: #fff;
}

.triplus-calendar .modern-card.is-key-organizer .modern-distance-chip {
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.triplus-calendar .modern-card.is-key-organizer .modern-decor {
  color: rgba(255, 255, 255, .14);
}

.triplus-calendar .modern-card.is-key-organizer .modern-decor--medal img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .28));
}

.triplus-calendar .modern-card.is-key-organizer:hover .modern-decor {
  color: rgba(255, 255, 255, .18);
}

.triplus-calendar .modern-card.is-key-organizer .modern-actions {
  border-top-color: rgba(255, 255, 255, .12);
}

.triplus-calendar .modern-card.is-key-organizer .modern-icon {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.triplus-calendar .modern-card.is-key-organizer .modern-icon:hover {
  background: rgba(255, 255, 255, .16);
}

.triplus-calendar .modern-card.is-key-organizer .modern-cta {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  backdrop-filter: blur(8px);
}

.triplus-calendar .modern-card.is-key-organizer .modern-cta:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .34);
}

/* Список */
.triplus-calendar .list-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 10px rgba(0, 0, 0, .05)) !important;
}

/* Фолбэк тени для таблицы, когда нет .list-wrap */
.triplus-calendar .events.list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .05));
}

/* Если .list-wrap присутствует — используем её тень, а у таблицы фон/границы/фильтр отключаем */
.triplus-calendar .list-wrap .events.list {
  background: transparent;
  border: 0;
  border-radius: 0;
  filter: none;
}

.triplus-calendar .events.list th,
.triplus-calendar .events.list td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.triplus-calendar .events.list th {
  text-align: left;
  font-weight: 600;
}

/* ширины колонок */
.triplus-calendar .events.list th:nth-child(1),
.triplus-calendar .events.list td:nth-child(1) {
  width: 160px;
}

.triplus-calendar .events.list th:nth-child(3),
.triplus-calendar .events.list td:nth-child(3) {
  width: 140px;
}

.triplus-calendar .events.list th:nth-child(4),
.triplus-calendar .events.list td:nth-child(4) {
  width: 160px;
}

.triplus-calendar .events.list th:nth-child(5),
.triplus-calendar .events.list td:nth-child(5) {
  width: 144px;
}

.triplus-calendar .events.list tbody tr:hover {
  background: #f9fafb;
}

.triplus-calendar .actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .triplus-calendar .events.cards-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  #content.site-content:not(.fixed) .triplus-calendar .events.cards-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #content.site-content:not(.fixed) .triplus-calendar .events.cards-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Адаптив */
@media (max-width: 640px) {
  #content.site-content:not(.fixed) .triplus-calendar {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  #content.site-content:not(.fixed) .triplus-calendar .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .triplus-calendar .events.cards,
  .triplus-calendar .events.cards-modern {
    grid-template-columns: minmax(0, 1fr);
  }

  #content.site-content:not(.fixed) .triplus-calendar .events.cards-modern {
    grid-template-columns: minmax(0, 1fr);
  }

  .triplus-calendar .events.cards .card,
  .triplus-calendar .events.cards .card>div {
    min-width: 0;
  }

  .triplus-calendar .events.cards .actions .btn-link:first-child {
    width: 100%;
  }

  .triplus-calendar .events.cards .card {
    grid-template-columns: 1fr;
  }

  .triplus-calendar .events.cards .card.has-image {
    grid-template-columns: 1fr;
  }

  .triplus-calendar .events.cards .card.no-image {
    grid-template-columns: 1fr;
  }

  .triplus-calendar .events.cards .thumb {
    width: 100%;
  }

  .triplus-calendar .events.cards .meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .triplus-calendar .events.cards .actions {
    flex-direction: column;
  }

  .triplus-calendar .modern-card {
    border-radius: 18px;
  }

  .triplus-calendar .modern-thumb {
    min-height: 190px;
  }

  .triplus-calendar .modern-body {
    padding: 16px;
  }

  .triplus-calendar .modern-title {
    font-size: 19px;
  }

  .triplus-calendar .modern-organizer,
  .triplus-calendar .modern-location,
  .triplus-calendar .modern-date {
    align-items: flex-start;
  }

  .triplus-calendar .modern-actions {
    flex-wrap: wrap;
  }

  .triplus-calendar .modern-icon {
    width: calc(25% - 6px);
    min-width: 40px;
  }

  .triplus-calendar .modern-decor {
    right: -24px;
    bottom: -28px;
  }

  .triplus-calendar .modern-decor svg {
    width: 190px;
    height: 190px;
  }

  .triplus-calendar .modern-decor--medal {
    right: -10px;
    bottom: -18px;
  }

  .triplus-calendar .modern-decor--medal img {
    width: 132px;
    height: 132px;
  }

  .triplus-calendar .modern-cta {
    width: 100%;
    margin-left: 0;
  }

  .triplus-calendar .filter form>div:not(.view-toggle) {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .triplus-calendar .filter form select,
  .triplus-calendar .filter form input[type=search] {
    width: 100%;
  }

  .triplus-calendar .filter form .btn {
    flex: 0 0 auto;
  }

  .triplus-calendar .filter form .view-toggle {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

.triplus-calendar .triplus-calendar-map {
  height: 360px;
  margin-bottom: 10px;
}

.triplus-calendar .map-toggle {
  display: block;
  margin: 0 auto 20px;
}

.triplus-calendar .is-hidden {
  display: none;
}

.triplus-calendar #triplus-calendar-map .triplus-mono {
  filter: grayscale(1);
}

.triplus-calendar,
.triplus-calendar .container {
  overflow: visible !important;
}
