/* HdKD Events — Showcase Slider (compact "Demnächst" strip).
   Background-agnostic: self-contained white cards + shadow so it sits on a
   light section OR a dark/colored header band. The heading inherits
   currentColor so it adapts to whatever the surrounding header text color is. */

/* width:100% + min-width:0 keep the slider inside its column. Without
   min-width:0 a horizontal-scroll flex container inherits min-width:auto and
   expands to its full content width, breaking out of an Uncode flex column
   (cards then run under the neighbouring column). */
.hdkd-shc {
  --hdkd-shc-card: 208px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hdkd-shc__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.hdkd-shc__title.hdkd-shc__title {
  font-family: inherit;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0;
  color: inherit;            /* adapts to header text color */
}
.hdkd-shc__all {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  opacity: .6;
  white-space: nowrap;
  transition: opacity .2s, color .2s;
}
.hdkd-shc__all:hover { opacity: 1; color: #1C8D82; }

/* ---- slider shell ---- */
.hdkd-shc__slider { position: relative; min-width: 0; max-width: 100%; }
.hdkd-shc__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.hdkd-shc__track::-webkit-scrollbar { display: none; }
.hdkd-shc__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.hdkd-shc__track.is-dragging * { pointer-events: none; }

/* ---- arrows ---- */
.hdkd-shc__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
  display: grid;
  place-items: center;
  color: #1a1a1a;
  transition: transform .15s, opacity .15s;
}
.hdkd-shc__nav:hover { transform: translateY(-50%) scale(1.08); }
.hdkd-shc__nav[disabled] { opacity: 0; pointer-events: none; }
.hdkd-shc__nav svg { width: 18px; height: 18px; }
.hdkd-shc__nav--prev { left: -10px; }
.hdkd-shc__nav--next { right: -10px; }

/* ---- card (compact, single column) ----
   The colored date-rail column was removed; the date now sits inside the
   card body. Category identity is carried only by the colored eyebrow label
   (no left border), so any palette color stays clean. */
.hdkd-shc__card {
  scroll-snap-align: start;
  flex: 0 0 var(--hdkd-shc-card);
  width: var(--hdkd-shc-card);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,.06);
  text-decoration: none;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  transition: transform .18s, box-shadow .18s;
}
.hdkd-shc__card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.hdkd-shc__date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #1a1a1a !important;
  opacity: .85;
}

/* Title is a <span>, not a heading, to dodge Uncode's hard h1–h6 color rules
   in dark/colored sections. Color forced with !important for the same reason
   (Uncode sets column text color white on dark header bands). */
.hdkd-shc__ttl {
  font-family: inherit;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em;
  margin: 0 !important;
  color: #1a1a1a !important;
  text-transform: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hdkd-shc__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 11px !important;
  line-height: 1.3;
  margin: 0 !important;
  color: #1a1a1a !important;
}
/* Eyebrow stays on a single line; long category names ellipsize gracefully
   (full label available via the title attribute on hover). */
.hdkd-shc__cat {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hdkd-shc__time { opacity: .55; }

.hdkd-shc__empty {
  padding: 28px 16px;
  opacity: .55;
  font-size: 14px;
}

@media (max-width: 600px) {
  .hdkd-shc { --hdkd-shc-card: 192px; }
  .hdkd-shc__nav { display: none; }   /* swipe only on touch */
}
