/* Standards will not make SI development safe · page-local styles, layered on /styles.css */

.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body p {
  font-size: clamp(16px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.6em;
}


.post-body strong {
  font-weight: 600;
  color: var(--ink);
}

.post-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--brat);
  transition: background var(--t-fast);
}
.post-body a:hover { background: rgba(138, 206, 0, 0.18); }

.post-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
}

.post-body blockquote p {
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.6;
  margin: 0 0 0.9em;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .post-body blockquote {
    padding-left: 16px;
  }
}

/* Lists */

.post-body__list {
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
}

.post-body__list li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(16px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 0.9em;
}

.post-body__list li:last-child { margin-bottom: 0; }

.post-body__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brat);
}

/* Subliminal learning explainer (.sl). Brat frame like .assessment; inside it,
   brat marks only what you can click. */

.sl {
  border: 1px solid var(--brat);
  background: rgba(138, 206, 0, 0.05);
  padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.4vw, 32px);
  margin: 0.4em 0 2.2em;
}

.post-body .sl__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.sl__kicker-rule { width: 22px; height: 1px; background: var(--ink); }

.sl__title {
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 0.7em;
}

.post-body .sl__intro { font-size: 15.5px; line-height: 1.6; margin: 0 0 1.2em; }

.sl__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.sl__trait {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sl__trait:hover { border-color: var(--ink); }
.sl__trait.is-on { background: var(--brat); border-color: var(--brat); }

/* Teacher → data → student */

.sl__flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: stretch;
  gap: 0 6px;
  margin: 0;
}

.sl__node {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 12px 14px;
}
.sl__node--data { border-style: dashed; }
.sl__node--student { border-color: var(--ink); }

.post-body .sl__node-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 0 0 6px;
}
.post-body .sl__node-body { font-size: 14px; line-height: 1.45; margin: 0; }

.post-body .sl__sample {
  font-size: 12.5px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  background: var(--paper-soft);
  padding: 6px 8px;
  margin: 10px 0 0;
  word-break: break-word;
  min-height: calc(3 * 1.4em + 12px); /* three lines, so a rewrite never reflows the flow */
}

/* Each token flashes as the rewrite lands on it (app.js). Grey, not brat:
   inside .sl brat is kept for what you can click. */
.sl__tok.is-new { animation: sl-tok 700ms ease-out; }
@keyframes sl-tok {
  from { background: var(--rule-strong); color: var(--ink); }
  to   { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .sl__tok.is-new { animation: none; }
}

.sl__arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}
.sl__arrow::before {
  content: "";
  position: absolute;
  left: 4px; right: 8px; top: 50%;
  height: 1px;
  background: var(--ink);
}
.sl__arrow::after {
  content: "";
  position: absolute;
  right: 4px; top: calc(50% - 4px);
  border: 4px solid transparent;
  border-left: 6px solid var(--ink);
  border-right: 0;
}
.sl__arrow span {
  position: relative;
  top: -12px;
  font-size: 11px;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .sl__flow { grid-template-columns: 1fr; }
  .post-body .sl__sample { min-height: calc(2 * 1.4em + 12px); }
  .sl__arrow { min-height: 34px; }
  .sl__arrow::before { left: 50%; right: auto; top: 4px; bottom: 8px; width: 1px; height: auto; }
  .sl__arrow::after {
    left: calc(50% - 4px); right: auto; top: auto; bottom: 4px;
    border: 4px solid transparent; border-top: 6px solid var(--ink); border-bottom: 0;
  }
  .sl__arrow span { top: 0; left: 30px; }
}
