/* Light custom styling for the textbook */
.bd-content h1 { font-weight: 700; }
.bd-content h2 { margin-top: 1.6rem; }

/* Make admonition titles a touch more prominent */
div.admonition p.admonition-title { font-weight: 700; }

/* Constrain very wide tables for readability */
table.docutils { font-size: 0.92rem; }

/* Custom 404 page buttons */
a.nf-btn {
  display: inline-block;
  margin: 0.4rem 0.4rem 0.4rem 0;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background-color: #1A5276;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #154360;
}
a.nf-btn:hover { background-color: #154360; }

/* Shrink the decorative MLU "Activity" / "Challenge" logos in notebooks */
img[src*="activity"], img[src*="challenge"],
img[alt="Activity"], img[alt="Challenge"] {
  max-width: 80px !important;
  height: auto !important;
}

/* Distinguish notebook input (code) and output cells with [IN]/[OUT] badges */
div.cell_input {
  border-left: 4px solid #2874A6;
  padding-left: 10px;
  margin-top: 0.8rem;
}
div.cell_input::before {
  content: "[ IN ]";
  display: inline-block;
  background-color: #2874A6;
  color: #ffffff;
  font: 700 0.7rem/1 Helvetica, Arial, sans-serif;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}
div.cell_output {
  border-left: 4px solid #1E8449;
  padding-left: 10px;
  margin-top: 2px;
  background-color: #F4FBF6;
}
div.cell_output::before {
  content: "[ OUT ]";
  display: inline-block;
  background-color: #1E8449;
  color: #ffffff;
  font: 700 0.7rem/1 Helvetica, Arial, sans-serif;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}
