/* Wiki-specific styles. Layered on top of /assets/styles.css. */

.wiki-content {
  max-width: 760px;
}

.wiki-content h1 { margin-top: 16px; }
.wiki-content h2 { margin-top: 36px; }
.wiki-content ol { padding-left: 28px; }
.wiki-content li { margin: 18px 0; }

.wiki-figure {
  position: relative;
  display: block;
  margin: 14px 0 24px;
  max-width: 393px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wiki-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.wiki-callout {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans, -apple-system, system-ui, sans-serif);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Soft halo around the targeted region. Wraps the same target rect so the
   reader sees what's being pointed at. */
.wiki-callout-halo {
  position: absolute;
  border: 2px solid #ef4444;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 480px) {
  .wiki-figure { max-width: 100%; }
}
