/* Changelog — stekker.com/nl/changelog/
   Licht instrumentenpaneel, dezelfde taal als /nl/logboek/.
   Geen verloop, geen aankleding. Eén bewegend element: de pulse bij de
   nieuwste regel, twee keer, dan stil. */

.stkcl {
  --cl-ground: #ffffff;
  --cl-surface: #f4f6fa;
  --cl-rule: #dfe4ee;
  --cl-ink: #000538;
  --cl-ink-2: #4d5470;
  --cl-ink-3: #646b81;
  --cl-live: #009154;
  --cl-lime: #0feb88;
  --cl-poppins: "Poppins", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  min-width: 0;
  max-width: 100%;
  width: 100%;
  background: var(--cl-ground);
  color: var(--cl-ink);
  border: 1px solid var(--cl-rule);
  border-radius: 14px;
  padding: clamp(1.6rem, 4.5vw, 3rem);
  font-size: 16px;
  line-height: 1.6;
}

.stkcl, .stkcl * { box-sizing: border-box; }

.stkcl .stkcl-title {
  font-family: var(--cl-poppins);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cl-ink);
  margin: 0;
  text-wrap: balance;
}

.stkcl .stkcl-intro {
  margin: 0.7rem 0 0;
  color: var(--cl-ink-2);
  max-width: 52ch;
  font-size: 1rem;
  text-wrap: pretty;
}

.stkcl .stkcl-empty { margin: 1.6rem 0 0; color: var(--cl-ink-3); }

/* het paneel: de activiteitsstrip is de data, niet de versiering */

.stkcl .stkcl-panel {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--cl-rule);
  border-radius: 10px;
  background: var(--cl-surface);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.stkcl .stkcl-strip {
  flex: 0 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cl-rule);
}

.stkcl .stkcl-week {
  flex: 0 0 18px;
  border-radius: 2px 2px 0 0;
  background: var(--cl-live);
  height: calc(5px + (var(--stkcl-h, 0) * 46px));
  opacity: calc(0.35 + (var(--stkcl-h, 0) * 0.65));
}

.stkcl .stkcl-week.is-quiet {
  height: 2px;
  background: var(--cl-rule);
  opacity: 1;
}

.stkcl .stkcl-week.is-now { background: var(--cl-lime); opacity: 1; }

.stkcl .stkcl-meter {
  flex: 0 1 auto;
  margin: 0;
  font-size: 0.82rem;
  color: var(--cl-ink-3);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.stkcl .stkcl-num {
  font-family: var(--cl-poppins);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cl-ink);
}

/* de regels */

.stkcl .stkcl-list {
  list-style: none;
  margin: clamp(2rem, 4.5vw, 2.8rem) 0 0;
  padding: 0;
}

.stkcl .stkcl-month {
  font-family: var(--cl-poppins);
  margin: 2.1rem 0 0.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cl-rule);
}

.stkcl .stkcl-list > .stkcl-month:first-child { margin-top: 0; }

.stkcl .stkcl-month h2 {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cl-ink-3);
}

.stkcl .stkcl-entry {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0 1.2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--cl-rule);
}

.stkcl .stkcl-entry:last-child { border-bottom: 0; }

.stkcl .stkcl-when {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.45rem;
  font-family: var(--cl-poppins);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cl-ink-3);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 0.2rem;
  white-space: nowrap;
}

.stkcl .stkcl-pulse {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cl-live);
  animation: stkcl-pulse 1.6s ease-out 2;
}

@keyframes stkcl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 145, 84, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 145, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 145, 84, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .stkcl .stkcl-pulse { animation: none; }
}

.stkcl .stkcl-what { min-width: 0; }

.stkcl .stkcl-kind {
  display: inline-block;
  font-family: var(--cl-poppins);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.16rem 0.42rem;
  border-radius: 3px;
  border: 1px solid var(--cl-rule);
  background: var(--cl-surface);
  color: var(--cl-ink-3);
  margin-bottom: 0.4rem;
}

.stkcl .stkcl-kind--nieuw { color: var(--cl-live); border-color: rgba(0, 145, 84, 0.35); }

.stkcl .stkcl-what h3 {
  font-family: var(--cl-poppins);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--cl-ink);
  margin: 0;
  text-wrap: pretty;
}

.stkcl .stkcl-what p {
  margin: 0.3rem 0 0;
  color: var(--cl-ink-2);
  font-size: 0.92rem;
  max-width: 62ch;
}

@media (max-width: 780px) {
  .stkcl .stkcl-week { flex-basis: 10px; }
  .stkcl .stkcl-strip { gap: 3px; }
  .stkcl .stkcl-meter { text-align: left; }
}

@media (max-width: 640px) {
  .stkcl .stkcl-entry { grid-template-columns: 1fr; gap: 0.35rem; }
  .stkcl .stkcl-when { padding-top: 0; justify-content: flex-start; }
  .stkcl .stkcl-strip { height: 38px; }
}
