
figcaption, .figure-caption {
  font-size: 0.85rem; /* of bijv. 9pt of 85% */
}

.cr-section {
  --cr-narrative-sidebar-width: minmax(22rem, 36%);
  --cr-narrative-font-family: var(--bs-body-font-family);
  --cr-narrative-font-size: 1rem;
  --cr-narrative-text-color-sidebar: var(--bs-body-color);
  background: var(--bs-body-bg);
}

.cr-section.cr-column-screen {
  width: min(100%, 860px);
  justify-self: center;
}

.cr-section .narrative-col {
  width: 100%;
  max-width: 560px;
  pointer-events: none;
}

.cr-section .narrative-col .trigger .narrative {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.97);
  color: var(--bs-body-color);
  border: 1px solid #dae2e6;
  border-radius: 0.6rem;
  box-shadow: 0 3px 16px #0000000c;
}

.cr-section .sticky-col {
  padding-inline: 1rem;
}

.story-section-title {
  position: sticky;
  top: var(--story-nav-height, 0px);
  grid-row: 1;
  grid-column: 1 / -1 !important;
  align-self: start;
  z-index: 5;
  margin: 0;
  padding: 0.8rem 2rem;
  background: var(--bs-body-bg);
  border-bottom: 1px solid #dee2e6;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.story-explore-toggle {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.4rem 0.65rem;
  border: 1px solid #b3c9ed;
  border-radius: 4px;
  background: white;
  color: #003399;
  font: 600 0.85rem var(--bs-body-font-family);
}

.story-explore-toggle:focus-visible {
  outline: 3px solid #ff6600;
  outline-offset: 2px;
}

.cr-section.is-exploring .narrative-col {
  visibility: hidden;
}

.cr-section.is-exploring .narrative-col * {
  pointer-events: none !important;
}

.cr-section.is-exploring .sticky:not(.explore-sticky) {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.cr-section.is-exploring .sticky.explore-sticky {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
}

.cr-section .sticky-col .sticky-col-stack {
  top: calc(var(--story-nav-height, 0px) + var(--story-title-height, 60px));
  height: calc(100svh - var(--story-nav-height, 0px) - var(--story-title-height, 60px));
}

.cr-section .sticky {
  width: 100%;
  max-width: 800px;
  max-height: 90svh;
  visibility: hidden;
  pointer-events: none;
}

.cr-section .sticky.cr-active {
  visibility: visible;
  pointer-events: auto;
}

.cr-section .sticky img {
  width: 100%;
  max-height: 70svh;
  object-fit: contain;
}

.cr-section .sticky > p,
.cr-section .sticky figcaption {
  font-size: 0.82rem;
  color: #43545c;
  line-height: 1.5;
}

.interactive-plot {
  width: 100%;
  height: min(56svh, 580px);
  min-height: 260px;
  border: 0;
  display: flex;
  flex-direction: column;
}

.plot-canvas {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
}

.plot-status {
  margin: auto;
  color: var(--bs-secondary-color, #666);
}

.week-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  font-size: 0.9rem;
}

.week-control select,
.week-control button {
  font: inherit;
  color: #003399;
  background: white;
  border: 1px solid #b3c9ed;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
}

.week-control select:focus-visible,
.week-control button:focus-visible {
  outline: 3px solid #ff6600;
  outline-offset: 2px;
}

@media (min-width: 576px) {
  .cr-section .narrative-col .trigger {
    padding-block: 12svh;
    padding-inline: 16px;
  }

  .cr-section .narrative-col .trigger .narrative {
    padding: 1rem 1.25rem;
  }

  .story-explore-toggle {
    display: inline-block;
  }
}

@media (max-width: 575.98px) {
  .cr-section .sticky {
    width: 100%;
  }

  .story-section-title {
    font-size: 1.1rem;
    padding: 0.65rem 1rem;
  }
  .cr-section .sticky-col {
    padding-inline: 0.35rem;
  }

  .cr-section .narrative-col {
    max-width: 100%;
  }

  .cr-section .narrative-col .trigger .narrative {
    background: rgba(255, 255, 255, 0.96);
    color: #23343b;
    border: 1px solid #dae2e6;
    box-shadow: 0 2px 12px #0000000d;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-section .sticky {
    transition: none !important;
  }
}

@media print {
  .cr-section,
  .cr-section .sticky-col .sticky-col-stack {
    display: block !important;
    height: auto !important;
    position: static !important;
    overflow: visible !important;
  }

  .cr-section .narrative-col .trigger {
    padding: 0;
  }

  .cr-section .sticky {
    opacity: 1 !important;
    visibility: visible;
    max-height: none;
    transform: none !important;
  }

  .story-section-title {
    position: static;
  }

  .story-explore-toggle {
    display: none;
  }

  .interactive-plot {
    display: none;
  }
}
