/* ============================================================
   Slide Reference Images
   Embedded slide visuals used to illustrate activity steps
   ============================================================ */

.slide-reference {
  margin: 2rem 0 0.5rem;
  border: 1px solid var(--border, #d4cfc7);
  border-radius: var(--radius, 2px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.08));
}

.slide-reference img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-reference figcaption {
  background: var(--bg-alt, #edeae3);
  color: var(--text-muted, #6b6560);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border, #d4cfc7);
}

.slide-reference figcaption a {
  color: inherit;
  text-decoration-color: var(--border, #d4cfc7);
}

.slide-reference figcaption a:hover {
  color: var(--terra, #c4622d);
}

/* Brutalist theme */
[data-theme="brutalist"] .slide-reference {
  border: 2px solid #0a0a0a;
  box-shadow: 4px 4px 0 #0a0a0a;
}

[data-theme="brutalist"] .slide-reference figcaption {
  background: #f0f0f0;
  border-top: 2px solid #0a0a0a;
  font-size: 0.8rem;
}

/* Neocities theme */
[data-theme="neocities"] .slide-reference {
  border: 2px solid #ff66ff;
  box-shadow: 3px 3px 0 #ffff66;
}

[data-theme="neocities"] .slide-reference figcaption {
  background: rgba(255, 102, 255, 0.1);
  color: #b8a8ff;
  border-top: 1px solid #ff66ff;
  font-family: var(--mono);
  font-size: 1rem;
}

[data-theme="neocities"] .slide-reference figcaption a {
  color: #ffff66;
}

/* ============================================================
   Scholar Links
   Secondary citation links pointing to Google Scholar searches.
   Displayed inline after citation text.
   ============================================================ */

.scholar-link {
  display: inline-block;
  margin-left: 0.4em;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-muted, #6b6560);
  text-decoration: none;
  border: 1px solid var(--border, #d4cfc7);
  border-radius: var(--radius, 2px);
  padding: 0.1em 0.45em;
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: middle;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.scholar-link::after {
  content: " ↗";
  font-style: normal;
  font-size: 0.75em;
}

.scholar-link:hover {
  color: var(--navy, #1e3a5f);
  border-color: var(--navy, #1e3a5f);
  background: var(--bg-alt, #edeae3);
  text-decoration: none;
}

/* Brutalist */
[data-theme="brutalist"] .scholar-link {
  border: 1.5px solid #0a0a0a;
  border-radius: 0;
  color: #0a0a0a;
  font-size: 0.75rem;
}

[data-theme="brutalist"] .scholar-link:hover {
  background: #f5e03a;
  border-color: #0a0a0a;
  color: #0a0a0a;
}

/* Neocities */
[data-theme="neocities"] .scholar-link {
  border: 1px solid #ff66ff;
  color: #b8a8ff;
  font-family: var(--mono);
  font-size: 1rem;
  background: transparent;
}

[data-theme="neocities"] .scholar-link:hover {
  color: #ffff66;
  border-color: #ffff66;
  background: rgba(255, 255, 102, 0.08);
}
