
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px 0 0;
  z-index: 200;
}

#site-title {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  padding: 0 16px;
}

#site-course {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}

#debug-state {
  margin-left: auto;
  font-family: monospace;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

.container {
  width: 100%;
  padding: 16px 20px 16px 40px;
  box-sizing: border-box;
  margin-top: 52px;
}

@media (max-width: 700px) {
  .container {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }
  #graphic {
    display: flex;
    flex-direction: column;
  }
  #sections {
    display: block;
    width: 100%;
    padding-bottom: 60px;
  }
  #vis {
    position: sticky;
    top: 52px;
    width: 100%;
    z-index: 100;
    background: white;
  }
  .step {
    margin-bottom: 80px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
  }
  #sections .title {
    font-size: 20px;
    color: #111;
  }
}

#graphic {
  padding-top: 24px;
}


#sections {
  position: relative;
  display: inline-block;
  width: 30vw;
  top: 0px;
  z-index: 90;
  padding-bottom: 0;
}

.step:last-child {
  margin-bottom: 0;
}

.step[data-layout="full-viz"]:last-child {
  margin-bottom: 50vh;
}

.step {
  margin-bottom: 200px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #222;
}

#sections .title {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
  line-height: 1.3;
}

#extra-space {
  height: 300px;
}

#vis {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: calc(30vw + 40px);
  right: 20px;
  top: 68px;
  bottom: 0;
  z-index: 100;
}

.author-section {
  align-items: center;
}
.author-section .authors {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 60px;
  margin: 24px 0;
}
.author-section .authors .author {
  text-align: center;
}
.author-name {
  font-weight: 700;
  font-size: 16px;
  color: #111;
  margin-bottom: 4px;
}
.author-bio {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* full-text layout: hide vis, center and expand text column */
#graphic.layout-full-text {
  display: flex;
  justify-content: center;
}
#graphic.layout-full-text #vis {
  display: none;
}
#graphic.layout-full-text #sections {
  width: min(70vw, 800px);
  display: block;
}

/* full-viz layout: keep sections in flow (preserves scroll height) but invisible */
#graphic.layout-full-viz #sections {
  opacity: 0;
  pointer-events: none;
}
#graphic.layout-full-viz #vis {
  left: 20px;
  right: 20px;
}

/* visibility helpers for popup effect controlled by VisualController */
.vis-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.vis-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0px);
  transition: opacity 260ms ease, transform 260ms ease;
}

#vis .title {
  font-size:120px;
  text-anchor: middle;
}

#vis .sub-title {
  font-size:80px;
  text-anchor: middle;
}

.axis path,
.axis line {
  fill: none;
  stroke: #666;
  shape-rendering: crispEdges;
}

.highlight {
  fill: #008080;
  font-weight: bold;
}

.cough-arrow {
  stroke: #000;
  stroke-width: 4px;

}


