.border {
  border: 1px solid #dee2e6;
}

.smaller {
  font-size: 0.85em;
}

.source-note {
  font-size: 0.55em;
  color: #999;
  margin-top: 0.5em;
}

figcaption {
  text-align: center !important;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid #f39c12;
  padding: 0.5em 0.8em;
  margin-top: 0.5em;
  border-radius: 4px;
}

.center-title h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: 2em;
}

.compact-table table {
  font-size: 0.8em;
}

/* Platypus callout boxes — mirrors cpsat-primer style for RevealJS.
   Usage: ::: {.platypus-tip} / .platypus-warning / .platypus-info
   The platypus appears on the left via ::before background-image. */
.platypus-tip,
.platypus-warning,
.platypus-info,
.platypus-book,
.platypus-video,
.callout-warning {
  display: flex;
  align-items: center;
  gap: 1em;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.7em 1em;
  margin: 0.5em 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.platypus-tip::before,
.platypus-warning::before,
.platypus-info::before,
.platypus-book::before,
.platypus-video::before,
.callout-warning::before {
  content: "";
  flex-shrink: 0;
  width: 90px;
  height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.platypus-tip { background: rgba(80, 160, 80, 0.12); border-color: #5a9e5a; }
.platypus-tip::before { background-image: url('assets/idea_platypus.webp'); }

.platypus-warning,
.callout-warning { background: rgba(200, 120, 40, 0.12); border-color: #c87828; }
.platypus-warning::before,
.callout-warning::before { background-image: url('assets/warning_platypus.webp'); }

.callout-warning .callout-title { display: none; }

.platypus-info { background: rgba(60, 140, 200, 0.12); border-color: #3c8cc8; }
.platypus-info::before { background-image: url('assets/info_platypus.webp'); }

.platypus-book { background: rgba(140, 100, 200, 0.12); border-color: #8c64c8; }
.platypus-book::before { display: none; }
.platypus-book::after {
  content: "";
  flex-shrink: 0;
  width: 120px;
  height: 240px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('assets/book_platypus.webp');
}

.platypus-video { background: rgba(200, 60, 80, 0.12); border-color: #c83c50; }
.platypus-video::before { display: none; }
.platypus-video::after {
  content: "";
  flex-shrink: 0;
  width: 120px;
  height: 240px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('assets/tv_platypus.webp');
}

/* Output / terminal output blocks — visually distinct from source code.
   Quarto renders ```text as: pre.sourceCode.text > code.sourceCode
   (language is a class on <pre>, not on <code>) */
pre.sourceCode.text {
  background: #0d1a26 !important;
  border-left: 3px solid #4fc3f7;
  border-radius: 4px;
  position: relative;
  padding-top: 1.6em !important;
}

pre.sourceCode.text::before {
  content: "▶ output";
  position: absolute;
  top: 0.3em;
  left: 0.8em;
  font-size: 0.65em;
  font-family: monospace;
  color: #4fc3f7;
  opacity: 0.75;
  letter-spacing: 0.06em;
}

pre.sourceCode.text code {
  color: #a8c8a0 !important;
  background: transparent !important;
}
