.figure {
  text-align: center;
}

.figure figcaption {
  text-align: center;
}
.hb-banner-global {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  line-height: 0;
}

.hb-banner-link {
  display: block;
  text-decoration: none;
}

.hb-banner-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.hb-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* subtle dark overlay for readability */
.hb-banner-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hb-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  z-index: 2;
  padding: 0 20px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.hb-banner-title {
  display: block;
  font-size: 1.8rem;
  font-weight: 500;
}

.hb-banner-subline {
  display: block;
  font-size: 1rem;
  margin-top: 3.0em;
  opacity: 0.9;
}



/* Push page content below banner */
/*.page-columns {
  margin-top: 200px;
}
*/

#TOC .nav-link {
  display: block;
  padding-left: 2.5em;
  text-indent: -2.5em;
}

/* Increase spacing between chapter entries in left sidebar */
.sidebar-navigation .sidebar-item {
  margin-bottom: 0.8em !important;
}

/* Increase line spacing for wrapped titles */
.sidebar-navigation .sidebar-item a {
  line-height: 1.5 !important;
}
.references p {
  text-indent: -1.5em;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
/* ===== Cover Page Grid ===== */

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.chapter-card {
  padding: 0;
}

.chapter-card a {
  text-decoration: none;
  color: inherit;
}

.chapter-card img {
  border-radius: 12px 12px 0 0;
}

.chapter-card h3 {
  margin: 1rem 1.5rem 0.5rem;
}

.chapter-card p {
  margin: 0 1.5rem 1.5rem;
}.references p {
  text-indent: -1.5em;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
.references p {
  text-indent: -1.5em;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.chapter-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
}

.chapter-item a img {
  width: 250px !important;
  max-width: none !important;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Title styling */
.chapter-item strong {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}

/* Paragraph spacing */
.chapter-item p {
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Hide chapter number for first sidebar item */
.sidebar .chapter:first-child .chapter-number {
  display: none;
}

/* Hide chapter number in main title on index page */
body.quarto-light .quarto-title .chapter-number,
body.quarto-dark .quarto-title .chapter-number {
  display: none;
}

.video-caption {
  width: 80%;
  max-width: 900px;
  margin: 0.5rem auto 2rem auto;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
}
/* Make all section headers blue and serif */
h1, h2, h3, h4, h5, h6 {
  font-family: "Georgia", "Times New Roman", serif;
  color: #7393B3;   /* choose your blue */
}
/* Section headers */
.quarto-body h1,
.quarto-body h2,
.quarto-body h3,
.quarto-body h4,
.quarto-body h5,
.quarto-body h6 {
  font-family: "Georgia", "Times New Roman", serif;
  color: #7393B3;
}

/* Section numbers */
.quarto-body .header-section-number {
  font-family: "Georgia", "Times New Roman", serif;
  color: #7393B3;
}

figure {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 4px;
  background: #fafafa;
}


figcaption {
  font-size: 0.9em;
  color: #555;
}
#bordered figures
.bordered {
  border: 1px solid #999;
  padding: 8px;
}
