/* Callout / Admonition Boxes */
.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  border-left: 4px solid var(--border);
  background: var(--entry);
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Callout types */
.callout-info {
  border-left-color: #3b82f6;
}

.callout-warning {
  border-left-color: #f59e0b;
}

.callout-tip {
  border-left-color: #10b981;
}

.callout-note {
  border-left-color: #8b5cf6;
}

/* Tabs */
.tabs {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  background: var(--entry);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tabs-nav .tab-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tabs-nav .tab-btn:hover {
  color: var(--primary);
}

.tabs-nav .tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
  padding: 1rem 1.25rem;
}

.tab-pane.active {
  display: block;
}

.tab-pane .highlight,
.tab-pane pre {
  margin: 0;
}

/* Responsive images */
figure {
  margin: 1.5rem 0;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-top: 0.5rem;
}
