/* ==========================================================================
   research.css — folding sections for research posts (Nightfield design)
   Loaded on every post page, after blog.css.
   Scoped strictly to .post-content; no gradients, no panel chrome here.
   ========================================================================== */

/* 1. Folding sections ------------------------------------------------------ */

.post-content details {
  margin: .35rem 0;
  /* No border or background of its own: sits in the text flow. */
}

.post-content summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  color: var(--ink);
  text-decoration: underline dotted;
  text-decoration-color: var(--dim);
  text-underline-offset: 4px;
}

/* Hide the default disclosure marker (Chrome/Safari). */
.post-content summary::-webkit-details-marker {
  display: none;
}

/* Custom "+" / "–" marker. */
.post-content summary::before {
  content: "+";
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  width: 1em;
}

.post-content details[open] > summary::before {
  content: "–";
}

.post-content summary:hover,
.post-content summary:focus-visible {
  color: var(--gold);
}

.post-content summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Content revealed under a summary drops in with a little breathing room. */
.post-content details > :not(summary) {
  margin-top: .6rem;
}

/* Long prompts (e.g. persona blockquotes) scroll inside the box
   instead of becoming a wall of text. Panel look comes from blog.css. */
.post-content details blockquote {
  white-space: pre-wrap;
  max-height: 26rem;
  overflow: auto;
  font-size: .95em;
}
