/* Custom styling for PSYC 224 textbook */

/* Slightly larger body text for readability */
body {
  font-size: 17px;
  line-height: 1.6;
}

/* Make code blocks visually distinct */
pre.sourceCode {
  background-color: #f8f9fa;
  border-left: 3px solid #2780e3;
  padding: 0.75em 1em;
  border-radius: 4px;
}

/* Highlight inline code */
code:not(pre code) {
  background-color: #f1f3f5;
  color: #c7254e;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.92em;
}

/* Callout boxes — give each type a recognizable color */
.callout-note {
  border-left-color: #2780e3;
}
.callout-tip {
  border-left-color: #3fb618;
}
.callout-warning {
  border-left-color: #ff7518;
}
.callout-important {
  border-left-color: #ff0039;
}

/* Tables: slightly more breathing room */
table {
  margin: 1em 0;
}
table th {
  background-color: #f1f3f5;
}
table td, table th {
  padding: 0.5em 0.75em;
}

/* Worked-example styling: a soft tinted box */
.worked-example {
  background-color: #f5f9ff;
  border: 1px solid #d0e0f5;
  border-radius: 6px;
  padding: 1em 1.25em;
  margin: 1.25em 0;
}
.worked-example > p:first-child strong {
  color: #1a4d8f;
}

/* Test-reporting templates (APA strips) */
.apa-strip {
  background-color: #fff8e6;
  border: 1px solid #ffe5b0;
  padding: 0.75em 1em;
  font-family: Georgia, serif;
  font-size: 0.96em;
  border-radius: 4px;
  margin: 1em 0;
}

/* "Judgment call" notes from Claude during consolidation */
.judgment-call {
  background-color: #fff0f5;
  border-left: 4px solid #d63384;
  padding: 0.5em 1em;
  font-size: 0.9em;
  font-style: italic;
  color: #5a2a4a;
  margin: 1em 0;
}

/* Branded callout boxes — course development framework (7 types, one color each) */
.box-predict       { border-left-color: #7F77DD !important; }
.box-misconception { border-left-color: #E24B4A !important; }
.box-interpret     { border-left-color: #185FA5 !important; }
.box-choose        { border-left-color: #1D9E75 !important; }
.box-wrong         { border-left-color: #BA7517 !important; }
.box-report        { border-left-color: #D85A30 !important; }
.box-try           { border-left-color: #3B6D11 !important; }
.box-objectives    { border-left-color: #5C6BC0 !important; }
.box-analogy       { border-left-color: #00897B !important; }
.box-story         { border-left-color: #6D4C41 !important; }
.box-teach         { border-left-color: #C99A2E !important; }
.box-watch         { border-left-color: #AD1467 !important; }

/* Section dividers on chapter pages */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ced4da, transparent);
  margin: 2em 0;
}

/* Variable-name boxes above a code block (var-swap.html) */
.var-swap-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.25em;
  padding: 0.6em 0.9em;
  margin-bottom: 0.4em;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}
.var-swap-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85em;
  font-weight: 600;
  flex: 1 1 12em;
}
.var-swap-form input {
  font-family: var(--bs-font-monospace, monospace);
  font-weight: normal;
  padding: 0.25em 0.4em;
  border: 1px solid #adb5bd;
  border-radius: 3px;
}
.var-swap-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.8em;
  opacity: 0.8;
}
.var-swap-alt {
  display: block;
  margin-top: 0.4em;
  font-size: 0.9em;
}
