.lesson-index-template-jh h3 {
  font-size: clamp(12pt, 2.5vw, 16pt)
}
/*======================LESSONS INDEX STYLE============================================================================================
toc-card refers to "table of contents" container-boxes, each of which generally features a lesson and a lesson button.
=======================================================================================================================================*/
.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: flex-start;
  text-align: left;
  padding: 16px;
}
.toc-card .overlay::before {
  content: "";
  flex: .8;
}
.toc-card .overlay-inner {
  font-size: 1.2em;
}
.toc-card .overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.toc-card .overlay li {
  list-style: none;
  text-align: left;
  padding-left: 1.4em;
}
.toc-card .overlay li::before {
  content: "•";
  display: inline-block;
  width: .5em;
  margin-left: -1.4em;
}

/* 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
 └──
  .interactive-grid-row
    └── .annotated-col (col-xs-12 col-md-5)
          └── .annotated-content-box
                ├── text
                ├── .prompt
                └── .annotation (div)
==========================================================================================================================*/

.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%;
}
.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;
}
.prompt {
  font-size: 1.05em;
  color: #43649a;
  font-style: italic;
  margin-top: -2px;
  margin-bottom: 2px;
  padding-left: 2px;
}
.annotation {
  position: absolute;
  left: 93%;
  bottom: -7%;
  top: auto;
  width: 140%;
  max-height: 450px;
  overflow-y: auto;
  background: rgba(20, 20, 20, 0.90);
  color: #fff;
  padding: 16px 12px 16px 12px;
  display: none;
  z-index: 100;
}
.annotation p {
  margin-bottom: 8px;
}
.annotation blockquote {
  font-family: Georgia, serif;
  margin: 0;
}
.annotation ul {
  padding-left: -2em;
 list-style-position: outside;
  margin-bottom: 8px;
}
.annotation li {
  padding-left: 1em;
  margin-bottom: 6px;
 }
/* ========================= INTERACTIVE and @media  ======================================= */
.annotated-content-box:hover {
  background-color: #d6e4f0;
}
.annotated-content-box:hover .annotation {
  display: block;
}
@media(max-width: 768px) {
  .annotation {
    left: 0;
    top: auto;
    bottom: 95%;
    width: 100%;
  }
}
/*============================================INTERACTIVE DIAGRAM========================================*/
  .qt-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
  }
  .qt-img {
    display: block;
    width: 100%;
    border-radius: 6px
    height: auto;
  }
  .qt-hotspot {
    position: absolute;
    width: 3.9%;           /* roughly matches the dot size */
    padding-top: 3.9%;      /* keeps it a circle at any width via aspect trick */
    transform: translate(-50%, -50%);
    border-radius: 50%;
    cursor: help;
  }
  .qt-tooltip {
    display: none;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    max-width: 70vw;
    background: #1f3d3d;
    color: #fff;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    z-index: 10;
    text-align: left;
  }
  .qt-tooltip ul {
    margin: 0;
    padding-left: 18px;
  }
  .qt-tooltip li {
    margin-bottom: 4px;
  }
  .qt-tooltip li:last-child {
    margin-bottom: 0;
  }
  .qt-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1f3d3d transparent transparent transparent;
  }
  .qt-hotspot:hover .qt-tooltip {
    display: block;
  }