.keyterm {
  font-weight: bold;
  font-size: 1.3em;
} 
.list-intro-par {
  margin-bottom: 0px;
}
.section-intro { 
  font-size: clamp(18pt, 2.5vw, 22pt);
  font-weight: bold;
  margin-top: 1.75em
}
.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 grid-row {
  display: flex; 
  align-items: stretch; 
  width: 100%;
}
 
.toc-card {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2%;
  border: 1px solid #b89880;
  background-color: #fef8f1;
}
.toc-card h2 {
  font-size: 1.8em;
  font-weight: bold;
}
.toc-card h3 {
  font-size: 1.5em;
  font-weight: bold;
}
.toc-card h4 {
  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;
  display: flex;
}
.toc-card .overlay li::before {
  content: "•";
  flex: 0 0 1.2em;
  text-align: left;
  font-size: .8em;
}

/* 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% 2% 2% 2%;
  margin-bottom: 10px;
  border: 1px solid #c3c3c2;
}
.interactive-content-box h2 {
  color: #43649a; 
  font-size: 1.8em
}
.interactive-content-box h3 {
  color: #43649a;
  font-size: 1.5em
}
.interactive-content-box h4 {
  color: #43649a; 
  font-size: 1.3em
}
.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% 3% 2% 2%;
  background-color: #eef3f9;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  overflow: visible;
  border: none;
}
.regular-content-box /*This category is for flex boxes that have no (or irregular) hover behaviors. 
Often used as cards on an otherwise hovering page.*/
{
  padding: 2%;
  background-color: #eee9e3;
  overflow: visible;
  margin-bottom: 10px;
  border: 1px solid #c3c3c2;
}
.prompt {
  font-size: 1.05em;
  color: #43649a;
  font-style: italic;
  margin-top: -2px;
  margin-bottom: 2px;
  padding-left: 2px;
}
.annotation {
  position: absolute;
  left: 97%;
  bottom: -3%;
  top: auto;
  width: 140%;
  max-height: 550px;
  overflow-y: auto;
  background: #eee9e3;
    color: #4A3728;
  padding: 16px 12px 16px 12px;
  display: none;
  z-index: 100;
}
.annotation p {
  margin-bottom: 8px;
}
.annotation h3 {
  color: #4A3728;
}
.annotation h4 {
  color: #4A3728;
}
.annotation blockquote {
  font-family: Georgia, serif;
  margin: 0;
}
.annotation ul {
  padding-left: 0em;
 list-style-position: outside;
  margin-bottom: 8px;
}
.annotation li {
  padding-left: .2em;
  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 - DOT-BASED PAGE (.qt-hotspot)
  Small circular hotspots centered on a fixed point (e.g. "3 Question Trajectory").
==================================================================================*/
.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: 210px;
  max-width: 70vw;
  background: #F0FFFF;
  color: #0818A8;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: clamp(14px, 1.05vw, 19px);  /* stays readable on mobile, scales up on desktop */
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  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: #F0FFFF transparent transparent transparent;
}
.qt-hotspot:hover .qt-tooltip {
  display: block;
}

/* Left-edge dot: anchor the tooltip's LEFT side to the dot and let it grow rightward,
   so it can't run off the left edge of the screen */
.qt-tooltip.qt-tooltip--edge-left {
  left: 50%;
  transform: translateX(-68%);
}
.qt-tooltip.qt-tooltip--edge-left::after {
  left: 68%;
}
.qt-tooltip.qt-tooltip--edge-right {
  left: 50%;
  transform: translateX(-32%);
}
.qt-tooltip.qt-tooltip--edge-right::after {
  left: 32%;
}
@media (max-width: 480px) {
  .qt-tooltip.qt-tooltip--edge-left {
    transform: translateX(-20%);
  }
  .qt-tooltip.qt-tooltip--edge-left::after {
    left: 20%;
  }
  .qt-tooltip.qt-tooltip--edge-right {
    transform: translateX(-80%);
  }
  .qt-tooltip.qt-tooltip--edge-right::after {
    left: 80%;
  }
}

/*==================================================================================
  INTERACTIVE DIAGRAM - SHAPE-BASED PAGE (.qt-hotspot-shape)
  Hotspots sized to each shape's actual footprint (e.g. "Components of Stewardship").
  Base rules first, then modifiers, then desktop/mobile positioning overrides.
==================================================================================*/
.qt-hotspot-shape {
  position: absolute;
  cursor: help;
}
.qt-hotspot-shape .qt-tooltip {
  display: none;
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  max-width: 70vw;
  background: #F0FFFF;
  color: #0818A8;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: clamp(14px, 1.05vw, 19px);
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 9999;
  text-align: left;
}
.qt-hotspot-shape:hover .qt-tooltip {
  display: block;
}

/* --- Modifiers --- */
.qt-tooltip.qt-tooltip-narrow {
  width: 195px;
}
.qt-tooltip.qt-tooltip-below {
  top: 105%;
  bottom: auto;
}
.qt-tooltip.qt-tooltip-below::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #F0FFFF transparent;
}
.qt-tooltip.qt-tooltip-overlap-low {
  top: 50%;
  bottom: auto;
  transform: translateY(-30%);
}
.qt-tooltip.qt-tooltip-overlap-low::after {
  display: none;
}
/* overlap-low combined with an edge class needs both offsets in one transform,
   since a single element can only have one transform value */
.qt-tooltip-overlap-low.qt-tooltip--edge-left {
  transform: translateX(-68%) translateY(-30%);
}
.qt-tooltip-overlap-low.qt-tooltip--edge-right {
  transform: translateX(-32%) translateY(-30%);
}

/* --- Desktop: pin edge tooltips flush to their hotspot, grow toward center --- */
@media (min-width: 769px) {
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-left {
    left: 0;
    transform: none;
    width: 350px;
  }
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-left::after {
    left: 20px;
  }
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-right {
    left: auto;
    right: 0;
    transform: none;
    width: 300px;
  }
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-right::after {
    left: auto;
    right: 20px;
  }
}

/* --- Mobile: full-bleed, viewport-anchored (escapes the small hotspot's
   containing block via position: fixed), banded by vertical position on
   the image so each group grows from roughly where its hotspot sits --- */
@media (max-width: 768px) {
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-left,
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-right {
    position: fixed;
    top: 50%;
    bottom: auto;
    left: 4vw;
    
    width: 92vw;
    max-width: 92vw;
    transform: translateY(-50%);
  }
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-left::after,
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-right::after {
    display: none;
  }
.qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-left::before,
.qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-right::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 20px;
  border-width: 0 8px 12px 8px;
  border-style: solid;
  border-color: transparent transparent #F0FFFF transparent;
}
  /* Upper band (Work Ethic, Trusting God with Resources): grow upward from
     roughly where they sit on the image, instead of centering and spilling down */
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-left:not(.qt-tooltip-overlap-low),
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-right:not(.qt-tooltip-overlap-low) {
    top: auto;
    bottom: 68vh;
    transform: none;
  }

  /* Lower band (Receiving, Sharing - carry qt-tooltip-overlap-low) */
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-left.qt-tooltip-overlap-low,
  .qt-hotspot-shape .qt-tooltip.qt-tooltip--edge-right.qt-tooltip-overlap-low {
    top: 55vh;
    bottom: auto;
    transform: none;
  }
}