
/* =================================================== */
/* Banner Styling                                    */
/* =================================================== */

.quarto-title-banner .quarto-title-banner-content {
  flex-direction: column;
  align-items: flex-start;
}

.quarto-title-banner {
  height: 450px;
  background-size: cover;
  background-position: center center;
}

#title-block-header .quarto-title-banner .title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 0.5em 0.75em;
  border-radius: 5px;
  display: inline-block;
}

#title-block-header .quarto-title-banner .subtitle {
  font-size: 1.5rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.65);
  padding: 0.5em 0.75em;
  border-radius: 5px;
  display: inline-block;
  margin-top: 1em;
}


/* --- Kable Table Caption Styling --- */
/* Applying styles with multiple potential selectors and !important */

/* Base attempt */
div.kable-table > caption {
  font-size: 1.2em;
  font-weight: bold;
  color: black !important; /* FORCE BLACK */
  caption-side: top;
  text-align: center;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

/* Attempt targeting caption inside table tag */
div.kable-table table > caption {
  font-size: 1.2em;
  font-weight: bold;
  color: black !important; /* FORCE BLACK */
  caption-side: top;
  text-align: center;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

/* Attempt targeting Bootstrap's default .table class */
.table > caption {
  font-size: 1.2em;
  font-weight: bold;
  color: black !important; /* FORCE BLACK */
  caption-side: top;
  text-align: center;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

/* Even more specific bootstrap context (less likely needed, but trying) */
.table-responsive > .table > caption {
  font-size: 1.2em;
  font-weight: bold;
  color: black !important; /* FORCE BLACK */
  caption-side: top;
  text-align: center;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}


/* --- Centering for Non-Full-Width Kable Tables --- */
div.kable-table {
    margin-left: auto;
    margin-right: auto;
}

/* =================================================== */
/* Mobile Specific Adjustments for Banner and Content */
/* =================================================== */

@media (max-width: 767.98px) { /* This targets screens smaller than 768px (Bootstrap's 'sm' breakpoint) */
  #title-block-header {
    margin-block-end: 2rem; /* Reduce bottom margin for banner on mobile */
    height: 140%; /* Adjust banner height for mobile. You can experiment with this value. */
    /* If the banner image itself is still too tall, you might need to adjust the image aspect ratio or its content */
  }
  
  .title {
    font-size: 40px;
    background: rgba(25, 25, 25, .7)
  }

  .quarto-title-banner {
    height: 100%; /* Match the header height on mobile */
  }

  /* Add a top margin to the content following the banner if it's still overlapping */
  /* This targets the main content area, typically the first section after the title block */
  .quarto-grid.grid.g-cols-12 { /* This is a common class for the main content grid */
    margin-top: 2rem; /* Adjust as needed to push content down */
  }

  /* If the above general class doesn't work, you might need to be more specific.
     For example, if your "Analyzing Access..." section starts with a specific ID or class,
     you can target that. E.g., if you had <div id="main-content"> around your grid:
     #main-content {
       margin-top: 2rem;
     }
  */
}
