/* Alternative rows in tables are gray */
.table tr:nth-child(even) {
  background-color: #f5f5f5;
}


/* For Quarto code output blocks */
.cell-output, 
.cell-output-stdout, 
.cell-output-stderr,
.cell-output-display {
  background-color: #f5f5f5 !important;  /* Light gray */
  padding: 0.5em 1em;
  border-radius: 5px;
  margin-bottom: 1em;
}


/* Stretch left footer across all columns for Quarto footers */
footer.footer .nav-footer {
  display: block !important;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: #f8f9fa;
  border-top: 1px solid #eee;
  text-align: left;
  padding: 1em 0.5em 1em 1.5em;
  box-sizing: border-box;
}
footer.footer .nav-footer-center {
  max-width: 100vw !important;
  padding: 0.5em;
  margin-left: 1em;
  margin-right: 1em;
  display: block !important;
  float: none !important;
  font-size: 1em;
  text-align: left;
}
footer.footer .nav-footer-left,
footer.footer .nav-footer-right {
  display: none !important;
}


/* Harvard Crimson: #A51C30 */
/* For Quarto Bootstrap dark navbars: */
.navbar, .navbar-dark {
  background-color: #a51c30 !important;
}

/* For navbar items and hover/focus states */
.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ffd700 !important;   /* gold/yellow hover, optional */
}

/* If your navbar is light/white by default, also force text to white: */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-brand {
  color: #fff !important;
}


/* Center all images that are direct children of the main content (not inside tables or callouts) */
main img,
.quarto-figure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* Optional: vertical space above/below */
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Remove the box styling */
.quarto-title-block {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 1em !important;
  text-align: left !important;
}

/* Hide only the author, affiliation, date, subtitle, etc */
.quarto-title-author,
.quarto-title-affiliation,
.quarto-title-date,
.quarto-title-subtitle,
.quarto-title-lang,
.quarto-title-abstract,
.quarto-title-meta,
#quarto-article-details
{
  display: none !important;
}

/* Make sure images aren't larger than window size */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hide breadcrumbs for both possible classnames */
.quarto-breadcrumbs,
.quarto-page-breadcrumbs {
  display: none !important;
}

/* --- Refined, crimson-themed Quarto Tabsets --- */

.panel-tabset {
  border: 1px solid #e0e0e0;        /* lighter outline */
  border-radius: 8px;
  padding: 0.75em 1em;
  margin-top: 1.5em;
  margin-bottom: 2em;
  background: #fafafa;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);   /* soft shadow */
}

/* Tab bar */
.panel-tabset .nav-tabs {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0.75em;
}

/* Tab labels: shorter, rounded, crimson */
.panel-tabset .nav-tabs .nav-link {
  padding: 0.25em 0.75em;              /* shorter tabs */
  border-radius: 6px 6px 0 0;          /* rounded top */
  border: 1px solid #a51c30 !important;
  border-bottom: none !important;
  background-color: #a51c30 !important;  /* crimson */
  color: #fff !important;
  margin-right: 4px;
}

/* Active tab: lighter background but still crimson-themed */
.panel-tabset .nav-tabs .nav-link.active {
  background-color: #fff !important;
  color: #a51c30 !important;
  font-weight: 600;
  border-color: #a51c30 !important;
  border-bottom: 1px solid #fff !important; /* blends smoothly */
}

/* Inner content box */
.panel-tabset .tab-content {
  border: 1px solid #e0e0e0;    /* softer border */
  border-radius: 6px;
  padding: 1em;
  background: #fff;
}

/* Ensure tabsets use the full content width */
.panel-tabset {
  width: 100%;
}

/* Remove Quarto’s built‑in max-width constraints inside tab content */
.panel-tabset .tab-content,
.panel-tabset .tab-pane {
  max-width: 100%;
  width: 100%;
}

/* --- Styled Markdown Tables --- */

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d0d0d0;      /* outer border */
  border-radius: 6px;
  overflow: hidden;               /* ensures rounded corners render */
  margin: 1.2em 0;
  background: #fff;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.08);   /* subtle lift */
}

table th,
table td {
  border: 1px solid #e5e5e5;      /* internal grid lines */
  padding: 0.55em 0.75em;
}

table th {
  background: #f8f8f8;            /* header band */
  font-weight: 600;
  color: #333;
}

/* --- Crimson-Themed Table Headers (Markdown + kable + DT) --- */

table thead th {
  background: #a51c30 !important;     /* crimson */
  color: #ffffff !important;          /* white text */
  font-weight: 700 !important;        /* bold */
  border: 1px solid #8b1628 !important;  /* darker crimson border */
}

/* Left align table captions generated by Quarto */
.quarto-float-tbl .quarto-float-caption {
  text-align: left !important;
}