:root {
  --slice-width:      50px;
  --strip-height:     200px;
  --carousel-max-width: 1200px;
  --carousel-padding:   16px;
}
h1 {
  font-size: 36px;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

h2 {
  font-size: 26px;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.3;
}

p {
  margin-top: 0;
  margin-bottom: 12px;
}


.carousel {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  max-width: var(--carousel-max-width);
  margin: 0 auto;
  padding: 0 var(--carousel-padding);
  position: relative;
}

#carousel {
  
  margin-bottom: 40px;
}
#carousel_json{
    margin-bottom: 40px;
}

.strip {
  position: relative;
  width: var(--slice-width);
  height: var(--strip-height);
  overflow: hidden;
  flex: none;
  background: transparent;
  transition: width 0.3s ease;
  will-change: width;
}

.strip img.full {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  transition: left 0.3s ease;
  will-change: left;
  max-width: 100vw;
}

.annotation-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#carousel_variety_regular {
  position: relative;
}

body {
  font-family: sans-serif;
  margin: 40px;
  background: #fafafa;
  color: #333;
}


.controls {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 40px 0 20px;
}

.controls label {
  font-weight: bold;
  font-size: 0.95rem;
}

.controls select,
.controls input {
  margin-left: 8px;
  padding: 4px 8px;
}

#barChart {
  max-width: 900px;
  margin: 0 auto 60px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  font-size: 18px;
  color: #333;
}

      /* ===== Chart Styles ===== */
      .controls {
        display: flex;
        gap: 20px;
        align-items: center;
        margin: 40px 0 20px;
      }
      .controls label {
        font-weight: bold;
        font-size: 0.95rem;
      }
      .controls select,
      .controls input {
        margin-left: 8px;
        padding: 4px 8px;
      }
      #barChart {
        max-width: 900px;
        margin: 0 auto 60px;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      }
      /* h2.chart-title {
        text-align: left;
        margin-top: 60px;
        font-family: sans-serif;
        color: #333;
      } */

      /* ===== Silhouette Trace Styles ===== */
      .sil-stack-wrapper {
        display: flex;
        justify-content: center;
        gap: 2em;
        flex-wrap: wrap;
        margin: 2em 0;
      }
      figure {
        margin: 0;
        text-align: center;
      }
      .stack-container {
        position: relative;
        width: 300px;
        height: 400px;
        border: 1px solid #ddd;
        overflow: hidden;
      }
      .stack-container svg {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: auto;
      }
      figcaption {
        font-size: 0.8em;
        color: #666;
        margin-top: 0.5em;
      }
  .replay-button {
  font-family: 'Helvetica Neue', 'Inter', 'system-ui', sans-serif;
  font-size: 12px;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border: 1px solid #ccc;
  /* border-radius: 10px; */
  background-color: #fafafa;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  /* align-self: center; */
  display: block;
  margin: 10px auto 0 auto;
}
