/* Component: Statement list (WO-23, Claude Code, 2026-09-26; Nolan: "I don't want to see all
   the content on the page unless I hover over it and it displays it smoothly").
   First used by about/beliefs-affiliation/ (the 16 Fundamental Truths).
   For long statement lists: many titled items, each with a long body (paragraphs,
   sub-heads, reference lists). Rows sit on hairlines; each body stays collapsed until
   the row is hovered (fine pointers, after --slist-intent), clicked, tapped or opened
   from the keyboard. The body grows smoothly (grid rows 0fr → 1fr) and fades up.
   Behaviour: js/statement-list.js (hover intent, one hover-opened row at a time, click
   pins a row open, keeps the hovered row still while a row above it closes, inert
   closed panels, Up/Down/Home/End between rows).
   No JS: every row is open (the list reads as plain text). Reduced motion: rows open
   and close instantly. Tokens only. */

.slist { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 28%, transparent); overflow-anchor: none; }
.slist__item { border-top: 1px solid color-mix(in srgb, var(--c-ink) 28%, transparent); }
.slist__head { margin: 0; }

.slist__trigger {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  width: 100%; padding: clamp(20px, 14px + 1.2vw, 30px) 0; margin: 0;
  border: 0; background: none; color: var(--color-text-1); text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h3-list); line-height: var(--lh-h3-list); letter-spacing: -0.02em;
  transition: color var(--dur-base) var(--ease-out);
}
.slist__trigger:focus-visible { outline-offset: 6px; border-radius: var(--r-xs); }

/* The plus: two hairlines in a ring; open → a quarter turn into a minus */
.slist__icon {
  position: relative; flex: none; width: var(--circle-md); height: var(--circle-md); border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--c-ink) 35%, transparent);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.slist__icon::before, .slist__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px;
  background: currentColor; transition: transform var(--dur-slow) var(--ease-out);
}
.slist__icon::after { transform: rotate(90deg); }
.slist__item.is-open .slist__icon::after { transform: rotate(180deg); }
.slist__item.is-open .slist__icon::before { transform: rotate(180deg); }

.slist__item:hover .slist__trigger, .slist__item.is-open .slist__trigger { color: var(--c-forest); }
.slist__item:hover .slist__icon, .slist__item.is-open .slist__icon { border-color: var(--c-forest); }
.slist__item.is-open .slist__icon { background: var(--c-forest); border-color: var(--c-forest); color: var(--color-on-dark); }

/* The body. Open by default (no JS); .is-ready collapses the closed rows */
.slist__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-accordion) var(--ease-out); }
.slist.is-ready .slist__item:not(.is-open) .slist__panel { grid-template-rows: 0fr; }
.slist__inner { min-height: 0; overflow: hidden; }
.slist__content {
  max-width: 68ch; padding-bottom: clamp(24px, 18px + 1.5vw, 40px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.slist.is-ready .slist__item:not(.is-open) .slist__content { opacity: 0; transform: translateY(-8px); }
.slist.is-ready .slist__item.is-open .slist__content { transition-delay: 120ms; }
.slist__content > * + * { margin-top: 14px; }

/* Optional meta line in the section head (e.g. "16 doctrines · Click to expand") */
.slist__meta { font: 500 var(--fs-eyebrow)/1.4 var(--font-body); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--color-text-2); }

@media (prefers-reduced-motion: reduce) {
  .slist__panel, .slist__content, .slist__icon, .slist__icon::before, .slist__icon::after, .slist__trigger { transition: none !important; }
}

/* Hash navigation resolves the row geometry before its single anchor scroll. */
.slist.is-hash-jump .slist__panel { transition: none; }
