.lesson-index-template-jh h3 {font-size: clamp(12pt, 2.5vw, 16pt)}

.fixed-header {min-height: 200px; display: flex; flex-direction: column;}
.fixed-header h3 {margin: 0 0 6px 0;}
.fixed-header p {margin: 0;}


.toc-card {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2%;
  border: 1px solid #b89880;
  background-color: #fef8f1;
}

.toc-card h3 {
  font-size: 1.1em;
  font-weight: bold;
}
.toc-card h2 {
  font-size: 1.3em;
  font-weight: bold;
}
.toc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
}

.toc-card .overlay {
  position: absolute;
  pointer-events: none;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 24px 16px 16px 16px;
}

.toc-card .overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.toc-card .overlay li {
  list-style: disc;
  text-align: left;
  margin: 24px 0;
  font-size: 1.05em;
}

/* Desktop hover + mobile tap (via focus) */
.toc-card:hover .overlay {
  display:flex;
}


/*==========================TEXT ANNOTATIONS, organized around 2-column design, but not in tables==================*/

.interactive-content-box {
background-color: #eef3f9; 
padding: 2% 1% 2% 3%; 
margin-bottom: 10px; border: 1px solid #c3c3c2;
}

.interactive-grid-row {
  display: flex; 
  align-items: stretch; 
  width: 100%;
}

.annotation {
  position: absolute;
  left: 93%;
  bottom: 0;
  top: auto;
  width: 140%;
  max-height: 350px;
overflow-y: auto;
  background: rgba(20, 20, 20, 0.90);
  color: #fff;
  padding: 16px 12px 16px 12px; 
  display: none;
  z-index: 100;
}

@media(max-width: 768px){
  .annotation {
    left: 0;
    top: auto;
    bottom: 95%;
    width: 100%;
  }
  .annotation-col {
    display: none;
  }
}
.annotated-content-box:hover {
  background-color:  #d6e4f0;
}
.annotated:hover .annotation {
  display: block;
}

.annotated-col {
  position: relative;
  z-index: 100;
  display: flex; 
  flex-direction: column;
  overflow: visible;
}

.annotated-content-box {
  padding: 2%; 
  background-color:#eef3f9;
  display: flex; 
  flex-direction: column; 
  flex: 1 1 0%;  
  overflow: visible;
  border: none;
}

.annotation-col {
  padding: 2%; 
  background-color:transparent; 
  display: flex; 
  flex-direction: column; 
  flex: 1 1 0%;  
  border: none;
}

.annotation-content-box {
  padding: 2%; 
  background-color: transparent; 
  display: flex; 
  flex-direction: column; 
  flex: 1 1 0%;
}