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

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

/* Wiki index page — allow the doc-card grid to use the full container width
   for a 3-column layout instead of being capped at the prose column. */
.wiki-content:has(.wiki-grid) {
  max-width: none;
}

.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);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-alt);
  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: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  border: 3px solid var(--color-bg);
  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 var(--color-accent);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

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