/* Example Environment Styles
   Collapsible example boxes with left accent bar.
   Follows the same visual language as definition-box and remark-box. */

.example-environment {
  background: rgb(0 0 0 / 2%);
  border: 1px solid var(--color-border-secondary, var(--border-color));
  border-left: 4px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  margin: 16px 0;
  overflow: hidden;
}

.example-header {
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.example-header:hover {
  background: rgb(0 0 0 / 3%);
}

.example-title {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--font-size-md, 14px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.example-icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
}

.example-toggle {
  color: var(--color-text-tertiary);
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* Preview snippet — shown when collapsed */
.example-preview {
  padding: 0 18px 14px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Expanded content area */
.example-content {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.example-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.example-content.expanded {
  max-height: none;
  opacity: 1;
  padding: 18px;
  border-top: 1px solid var(--color-border-secondary, var(--border-color));
}

.example-body {
  color: var(--color-text-primary);
  line-height: 1.65;
}
