

/* Expandable Expert Card (CSS-only) */
.expert-card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 24px 0;
  background: #fff;
}

.expert-card h3 {
  margin: 0 0 8px 0;
}

.expert-card p {
  margin: 10px 0;
  line-height: 1.65;
}

.expert-meta {
  margin-top: 0;
  color: #555;
  font-size: 14px;
}

.expert-toggle {
  display: none;
}

/* Collapsed content */
.expert-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

/* Expanded content */
.expert-toggle:checked ~ .expert-more {
  max-height: 5000px;
}

/* Read more link */
.expert-readmore {
  display: inline-block;
  margin-top: 12px;
  color: #6b4eff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.expert-readmore:hover {
  text-decoration: underline;
}

/* Optional: subtle divider between intro and expanded content */
.expert-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 14px 0;
}

/* Reset native details/summary styling */
.expert-card details {
  margin-top: 12px;
  border: 0px solid #ccc;
}

.expert-card summary {
  list-style: none;              /* removes arrow in Firefox */
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  border: none;
  background: none;
  font-weight: 700;
  color: #6b4eff;
  font-size: 14px;
}

/* Remove default marker (Chrome / Safari) */
.expert-card summary::-webkit-details-marker {
  display: none;
}

/* Hover state */
.expert-card summary:hover {
  text-decoration: underline;
}

/* Spacing when expanded */
.expert-card details[open] summary {
  margin-bottom: 12px;
}

/* Optional: subtle divider after opening */
.expert-card details .expert-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 14px 0;
}
.expert-card details[open] summary::after {
  content: " ↑";
  font-weight: 400;
}

/* Prompt blocks in article bodies */
.field--name-body pre,
.node__content pre {
  position: relative;
  margin: 1.5rem 0 1.75rem;
  padding: 2.5rem 1.25rem 1.25rem;
  background: #F1EFFB;
  border: 1px solid #DDD5F5;
  border-left: 4px solid #683FBF;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;      /* wrap long lines instead of side scrolling */
  word-wrap: break-word;
}

/* "PROMPT" label in the top-left corner */
.field--name-body pre::before,
.node__content pre::before {
  content: "PROMPT";
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #683FBF;
}

/* The prompt text itself */
.field--name-body pre code,
.node__content pre code {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #2B2140;
  white-space: inherit;
}

/* Brackets like [PASTE] stand out a little through color contrast only */
.field--name-body pre code::selection,
.node__content pre code::selection {
  background: #C3A6FF;
}

/* Tighter spacing on phones */
@media (max-width: 600px) {
  .field--name-body pre,
  .node__content pre {
    padding: 2.25rem 1rem 1rem;
    border-radius: 6px;
  }
  .field--name-body pre code,
  .node__content pre code {
    font-size: 0.85rem;
  }
}