p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}

/* Remove the floating badge from theorem environments (like example) */
.book .theorem .theorem-title {
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  font-weight: bold;
  display: block;
}

/* Style the example box */
.example {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1em;
  margin: 1.5em 0;
}

.activity {
  background-color: #e0f7fa; /* light aqua */
  border-left: 5px solid #00838f;
  padding: 1em;
  margin: 1.5em 0;
  border-radius: 6px;
  font-size: 1em;
}

.activity strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #006064;
}

.activity strong,
.activity b {
  display: inline;
  font-weight: bold;
}

.activityoutcome {
  background-color: #e8f5e9; /* light aqua */
  border-left: 5px solid #00838f;
  padding: 1em;
  margin: 1.5em 0;
  border-radius: 6px;
  font-size: 1em;
}

.activityoutcome strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #006064;
}

/* Prompt boxes */
.promptbox{
  border: 2px solid #4b5563;            /* slate */
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  background: #f8fafc;                  /* light gray */
}
.promptbox .label {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* Variants */
.prompt--question  { border-color: #2563eb; background: #eff6ff; } /* blue */
.prompt--activity  { border-color: #16a34a; background: #f0fdf4; } /* green */
.prompt--reflect   { border-color: #d97706; background: #fffbeb; } /* amber */
.prompt--note      { border-color: #6b7280; background: #f8fafc; } /* neutral */

/* Write-in area (printable) */
.writein {
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  min-height: 120px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: #ffffff;
}
.writein.tall { min-height: 220px; }

/* Optional: two-column prompts on wide screens */
@media (min-width: 900px) {
  .prompt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* PDF friendliness */
@media print {
  .prompt-box { break-inside: avoid; }
  .writein { min-height: 160px; }
}

/* Remove the "Appendix A/B/C" prefix */
.book .book-body .page-wrapper .page-inner h1:before {
  content: none !important;
}
