.msc-calendar,
.msc-slider,
.msc-archive {
  --ec-border: #2b2b2b;
  --ec-text: #e6e6e6;
  --ec-muted: #bdbdbd;
  --ec-bg: #0c0c0c;
  --ec-day: #121212;
  --ec-day-hover: #1b1b1b;
  --ec-event-bg: #141414;
  --ec-accent: #f4b23f;
  --ec-accent-strong: #ffcc5c;
}

.msc-calendar {
  background: var(--ec-bg);
  padding: 10px;
  border-radius: 8px;
}

.msc-calendar table {
  width: 100%;
  border-collapse: collapse;
}

.msc-calendar th,
.msc-calendar td {
  border: 1px solid var(--ec-border);
  padding: 6px;
  text-align: center;
  color: var(--ec-text);
}

.msc-calendar th {
  color: var(--ec-muted);
}

.msc-calendar td[data-day] {
  cursor: pointer;
  background: var(--ec-day);
}

.msc-calendar td[data-day]:hover {
  background: var(--ec-day-hover);
}

.msc-calendar td.has-events {
  background: var(--ec-accent);
  color: #111;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--ec-accent-strong);
}

.msc-calendar td.is-selected {
  outline: 2px solid var(--ec-accent-strong);
  outline-offset: -2px;
}

.msc-header {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
  padding: 4px 0;
  color: var(--ec-text);
}

.msc-arrow {
  cursor: pointer;
  color: var(--ec-text);
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  width: 60px;
  user-select: none;
}

.msc-prev {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.msc-next {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.msc-month {
  display: inline-block;
  margin: 0 80px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ec-text);
  text-transform: capitalize;
}

.msc-list {
  margin-top: 15px;
  color: var(--ec-text);
}

.msc-actions {
  text-align: center;
}

.msc-list-meta {
  margin: 10px 0 0;
  color: var(--ec-muted);
  font-size: 13px;
}

.msc-event {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
  padding: 8px 10px;
  background: var(--ec-event-bg);
  border-radius: 6px;
}

.msc-event a {
  color: var(--ec-text);
  text-decoration: none;
  flex: 1 1 auto;
  line-height: 1.35;
}

.msc-event a:hover,
.msc-arrow:hover {
  color: var(--ec-accent-strong);
}

.msc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ec-muted);
  flex: 0 0 auto;
  min-width: 44px;
}

.msc-badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.msc-badge-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.msc-badge-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 10px;
  font-weight: 700;
}

.msc-viewall {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  background: var(--ec-accent);
  color: #111;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.msc-viewall:hover,
.msc-viewall:focus {
  background: var(--ec-accent-strong);
  color: #111 !important;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.msc-slider {
  --msc-slide-gap: 20px;
  position: relative;
  overflow: hidden;
}

.msc-slider-track {
  display: flex;
  gap: var(--msc-slide-gap);
  transition: transform 0.35s ease;
  will-change: transform;
}

.msc-slide {
  flex: 0 0 auto;
  display: flex;
}

.msc-card {
  background: #fff;
  color: #222;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.msc-card-link {
  text-decoration: none;
  color: inherit;
}

.msc-card-image {
  display: block;
  height: 200px;
  overflow: hidden;
  background: #f2f2f2;
  position: relative;
}

.msc-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msc-card-image-empty {
  background: linear-gradient(135deg, #f2f2f2, #e7e7e7);
}

.msc-card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.msc-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 2px;
  background: var(--ec-accent);
  color: #111;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  cursor: default;
}

.msc-card-badge-line {
  line-height: 1;
}

.msc-card-badge[data-site-name]:hover::after,
.msc-card-badge[data-site-name]:focus-within::after {
  content: attr(data-site-name);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  z-index: 5;
}

.msc-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.msc-card-title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.msc-card-excerpt {
  margin: 0;
  font-size: 14px;
  color: #303030;
}

.msc-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.msc-card-date {
  color: #666;
  font-size: 12px;
}

.msc-card-more {
  color: var(--ec-accent);
  font-weight: 600;
  font-size: 15px;
}

.msc-slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  align-items: center;
  padding: 4px 0 6px;
  overflow: visible;
}

.msc-slider-empty {
  padding: 24px;
  background: var(--ec-bg);
  color: var(--ec-text);
  border-radius: 8px;
}

.msc-slider-dots .msc-dot,
button.msc-dot {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0;
  min-width: 12px;
  min-height: 12px;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.msc-slider-dots .msc-dot.is-active,
button.msc-dot.is-active {
  background: var(--ec-accent) !important;
  border-color: #fff !important;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18) !important;
}

.msc-slider-dots .msc-dot:hover,
button.msc-dot:hover {
  background: rgba(255, 255, 255, 0.6) !important;
}

.msc-slider.msc-dots-square .msc-dot {
  border-radius: 0;
}

.msc-slider.msc-dots-rounded .msc-dot {
  border-radius: 3px;
}

.msc-archive {
  background: var(--ec-bg);
  border-radius: 12px;
  padding: 24px;
}

.msc-archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ec-border);
  border-radius: 14px;
}

.msc-archive-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msc-archive-field label {
  color: var(--ec-text);
  font-size: 13px;
  font-weight: 600;
}

.msc-archive-field input,
.msc-archive-field select,
.msc-archive-toolbar button {
  min-height: 46px;
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
}

.msc-archive-field input,
.msc-archive-field select {
  color: var(--ec-text);
  background: #fff;
}

.msc-archive-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msc-archive-toolbar button {
  background: var(--ec-accent);
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.msc-archive-toolbar-actions a {
  color: var(--ec-accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.msc-archive-clear.is-hidden {
  display: none;
}

.msc-archive-filter {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ec-text);
}

.msc-archive-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.msc-archive-filter-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: var(--ec-event-bg);
  border: 1px solid var(--ec-border);
  border-radius: 999px;
}

.msc-archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.msc-archive-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.msc-archive-card {
  min-height: 100%;
  height: 100%;
  border: 1px solid var(--ec-border);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.msc-archive-card:hover,
.msc-archive-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(18, 24, 32, 0.12);
}

.msc-archive-media {
  height: 210px;
  background: #ddd;
}

.msc-archive-media img {
  object-fit: cover;
}

.msc-archive-media.is-empty {
  background: linear-gradient(135deg, #efefef, #dcdcdc);
}

.msc-archive-body {
  flex: 1 1 auto;
  gap: 12px;
}

.msc-archive-badges {
  right: 12px;
  left: auto;
  top: 12px;
}

.msc-archive-date {
  color: var(--ec-muted);
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}

.msc-archive-title {
  margin: 0;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msc-archive-excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}

.msc-archive-footer {
  margin-top: auto;
}

.msc-archive-empty {
  color: var(--ec-text);
  padding: 24px;
  border: 1px dashed var(--ec-border);
  border-radius: 12px;
  text-align: center;
}

.msc-archive.is-loading .msc-archive-results {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.msc-archive-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.msc-archive-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--ec-border);
  border-radius: 8px;
  color: var(--ec-text);
  text-decoration: none;
}

.msc-archive-pagination a.is-active,
.msc-archive-pagination a:hover {
  background: var(--ec-accent);
  border-color: var(--ec-accent);
  color: #111;
}

.ec-theme-dark-amber {
  --ec-border: #3a3a3a;
  --ec-text: #f1f1f1;
  --ec-muted: #c8c8c8;
  --ec-bg: #0a0a0a;
  --ec-day: #141414;
  --ec-day-hover: #1d1d1d;
  --ec-event-bg: #171717;
  --ec-accent: #f0c06a;
  --ec-accent-strong: #ffd48a;
}

.ec-theme-dark-gold {
  --ec-border: #353029;
  --ec-text: #f2efe9;
  --ec-muted: #cfc8bd;
  --ec-bg: #0b0b0b;
  --ec-day: #16130f;
  --ec-day-hover: #1f1a14;
  --ec-event-bg: #1a1510;
  --ec-accent: #d9a441;
  --ec-accent-strong: #f3c36a;
}

.ec-theme-dark-mint {
  --ec-border: #2d3532;
  --ec-text: #e9f4f0;
  --ec-muted: #bcd4cb;
  --ec-bg: #0b0d0c;
  --ec-day: #121614;
  --ec-day-hover: #1a221f;
  --ec-event-bg: #141a18;
  --ec-accent: #7ad6b0;
  --ec-accent-strong: #9be7c7;
}

.ec-theme-dark-custom {
  --ec-border: #2a2a2a;
  --ec-text: #f7f7f7;
  --ec-muted: #b9b9b9;
  --ec-bg: #0f0f0f;
  --ec-day: #141414;
  --ec-day-hover: #1d1d1d;
  --ec-event-bg: #1a1a1a;
  --ec-accent: #ff9800;
  --ec-accent-strong: #ffb24d;
}

.ec-theme-light-amber {
  --ec-border: #e1dfd7;
  --ec-text: #1f1a12;
  --ec-muted: #5e5342;
  --ec-bg: #ffffff;
  --ec-day: #faf7f0;
  --ec-day-hover: #f3eddc;
  --ec-event-bg: #f7f2e6;
  --ec-accent: #ff9800;
  --ec-accent-strong: #ffb24d;
}

.ec-theme-light-slate {
  --ec-border: #d9dde2;
  --ec-text: #1d232a;
  --ec-muted: #4d5966;
  --ec-bg: #ffffff;
  --ec-day: #f5f7fa;
  --ec-day-hover: #edf1f6;
  --ec-event-bg: #f0f3f7;
  --ec-accent: #546a7b;
  --ec-accent-strong: #2f3b45;
}

.ec-theme-light-rose {
  --ec-border: #ead6d1;
  --ec-text: #231817;
  --ec-muted: #6b4e4a;
  --ec-bg: #ffffff;
  --ec-day: #fff7f5;
  --ec-day-hover: #fbeae6;
  --ec-event-bg: #f8eeeb;
  --ec-accent: #e3a08f;
  --ec-accent-strong: #cc6e5b;
}

@media (max-width: 900px) {
  .msc-archive-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .msc-archive-toolbar-actions {
    grid-column: 1 / -1;
  }

  .msc-archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .msc-archive-media {
    height: 190px;
  }
}

@media (max-width: 420px) {
  .msc-arrow {
    width: 46px;
    font-size: 15px;
  }

  .msc-month {
    margin: 0 60px;
    font-size: 14px;
  }

  .msc-archive {
    padding: 16px;
  }

  .msc-archive-toolbar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .msc-archive-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .msc-archive-list {
    grid-template-columns: 1fr;
  }

  .msc-archive-media {
    height: 180px;
  }
}
