/* css styles */

/* Borderless layout tables on the About page (Education, Experience,
   Languages & Software). These are used to align columns, not to present
   data, so all of Bootstrap's table chrome is stripped back off. */
.info-table table {
  width: auto;
  margin: 0;
}

/* The markdown needs a header row to parse as a table; it is left empty. */
.info-table thead {
  display: none;
}

/* Pandoc emits a <colgroup> giving each column an equal percentage width, and
   those <col> widths beat any width set on the cells. Clearing them is what
   lets the columns size to their content. */
.info-table col {
  width: auto !important;
}

/* Bootstrap draws row rules via borders on cells and a thick rule between
   table sections -- clear both, plus the striping shadow. */
.info-table table,
.info-table tbody,
.info-table tr,
.info-table td {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.info-table td {
  padding: 0.45rem 1rem 0.45rem 0;
  vertical-align: baseline;
}

/* Keep the label and title columns on one line so they never wrap. */
.info-table td:first-child,
.info-table td:nth-child(2) {
  white-space: nowrap;
}

/* Send all the slack to the final column. Without this the table spreads the
   leftover width across every column, which opens a gap after short cells like
   "BCBS Alabama". Targeting last-child works for both the three-column tables
   (Education, Experience) and the two-column one (Languages & Software). */
.info-table td:last-child {
  width: 100%;
}

/* On narrow screens three columns will not fit, and forcing them causes a
   horizontal scroll. Stack each row instead: institution, then role, then
   dates, as three lines. */
@media (max-width: 576px) {
  .info-table td:first-child,
  .info-table td:nth-child(2) {
    white-space: normal;
  }

  .info-table table,
  .info-table tbody,
  .info-table tr,
  .info-table td {
    display: block;
    width: auto !important;
  }

  .info-table tr {
    margin-bottom: 1rem;
  }

  .info-table td {
    padding: 0;
  }
}

/* Responsive Viewport Safeguards */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

*, ::before, ::after {
  box-sizing: border-box;
}

/* Mobile Table Responsiveness */
.cell-output-display,
.table-responsive,
.quarto-table,
main table:not(.info-table table) {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.Reactable,
.rt-table {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Responsive Media and HtmlWidgets */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

.cell-output-display img,
.cell-output-display svg,
.quarto-figure img,
main img {
  max-width: 100% !important;
  height: auto !important;
}

.html-widget,
.plotly,
.js-plotly-plot,
.plot-container,
.svg-container {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Responsive Code Blocks */
pre,
pre.sourceCode,
.cell-output pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
  -webkit-overflow-scrolling: touch;
}

code {
  word-break: break-word;
}

pre code {
  word-break: normal;
}

/* Responsive Math Output */
.MathJax_Display,
.math.display,
.mjx-chtml[display="true"],
.mjx-container[jax="CHTML"][display="true"] {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  display: block !important;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Responsive Layout and Listings */
@media (max-width: 991px) {
  #quarto-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  #quarto-margin-sidebar {
    display: none !important;
  }

  .panel-tabset .nav-tabs {
    flex-wrap: wrap !important;
  }

  .panel-tabset .nav-link {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 768px) {
  .quarto-grid-item {
    max-width: 100% !important;
    width: 100% !important;
  }

  .quarto-grid-item .card-img-top {
    height: auto !important;
    max-height: 180px !important;
    object-fit: cover;
  }

  .quarto-post {
    flex-direction: column !important;
  }

  .quarto-post .thumbnail {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 576px) {
  h1, .title {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.4rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  .navbar-brand {
    font-size: 1.1rem !important;
  }
}

