/* Writing components inherit the shared site palette. */
.research-post,
.writing-index {
  --essay-surface: var(--site-surface);
  --essay-card: var(--site-card);
  --essay-on-accent: var(--site-on-accent);
  --essay-heading-font: Georgia, "Times New Roman", serif;
}
.title-nowrap {
  white-space: nowrap;
}
.research-post,
.writing-index {
  --essay-ink: var(--global-text-color);
  --essay-muted: var(--global-text-color-light);
  --essay-line: var(--global-divider-color);
  --essay-accent: var(--global-theme-color);
  color: var(--essay-ink);
}
.essay-header h1,
.writing-header h1,
.writing-card-copy h2,
.essay-body > h2,
.essay-body > h3 {
  font-family: var(--essay-heading-font);
}
.essay-header {
  max-width: 900px;
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--essay-line);
}
.essay-back {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}
.essay-eyebrow,
.note-label,
.toc-label {
  display: block;
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--essay-accent);
}
.essay-eyebrow span {
  margin: 0 0.6rem;
  opacity: 0.45;
}
.essay-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.45rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 600;
  max-width: 850px;
  margin: 1rem 0 1.3rem;
}
.essay-deck {
  max-width: 750px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--essay-muted);
}
.essay-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.4rem;
  margin-top: 1.6rem;
  color: var(--essay-muted);
  font-size: 0.78rem;
}
.essay-byline span:first-child {
  color: var(--essay-ink);
  font-weight: 500;
}
.essay-grid {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 2.8rem;
  align-items: start;
  padding-top: 2.5rem;
}
.essay-sidebar {
  position: sticky;
  top: 100px;
}
.essay-toc {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  font-size: 0.77rem;
  line-height: 1.5;
}
.essay-toc .toc-label {
  margin-bottom: 0.3rem;
}
.essay-toc a {
  color: var(--essay-muted);
  padding-left: 0.7rem;
  border-left: 2px solid transparent;
}
.essay-toc a[aria-current="location"] {
  color: var(--essay-accent);
  border-left-color: var(--essay-accent);
}
.essay-body {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.85;
}
.essay-body p {
  margin: 0 0 1.25rem;
}
.essay-body a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--essay-accent) 35%, transparent);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.essay-body h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 3.4rem 0 1.3rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--essay-line);
  scroll-margin-top: 100px;
}
.essay-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 2.1rem 0 0.85rem;
  letter-spacing: -0.015em;
}
.essay-body strong {
  font-weight: 600;
}
.essay-abstract {
  background: var(--essay-surface);
  border-left: 3px solid var(--essay-accent);
  padding: 1.5rem 1.6rem;
}
.essay-abstract .note-label {
  margin-bottom: 0.75rem;
}
.essay-abstract p {
  font-size: 1.03rem;
  line-height: 1.8;
}
.essay-abstract .small-note {
  color: var(--essay-muted);
  font-size: 0.8rem;
  margin-bottom: 0;
}
.concept-figure,
.trajectory-panel,
.milestone-figure {
  margin: 2rem 0;
}
.essay-body figcaption {
  color: var(--essay-muted);
  font-size: 0.76rem;
  line-height: 1.65;
  margin-top: 0.9rem;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--essay-accent);
  border-bottom: 1px solid var(--essay-line);
}
.pipeline > div {
  padding: 0.9rem 0.65rem 1.1rem;
  border-right: 1px solid var(--essay-line);
}
.pipeline > div:last-child {
  border-right: 0;
}
.pipeline span {
  display: block;
  font-size: 0.67rem;
  color: var(--essay-accent);
  margin-bottom: 0.55rem;
}
.pipeline strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}
.pipeline small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--essay-muted);
}
.table-scroll {
  overflow-x: auto;
  margin: 1.7rem 0;
  border: 1px solid var(--essay-line);
  border-radius: 5px;
}
.essay-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
}
.essay-body th {
  background: var(--essay-surface);
  font-weight: 600;
  white-space: normal;
}
.essay-body tbody tr:nth-child(odd),
.essay-body tbody tr:nth-child(even) {
  background: transparent;
}
.essay-body tbody tr:hover {
  background: color-mix(in srgb, var(--essay-accent) 3%, transparent);
}
.essay-body td,
.essay-body th {
  border: 0;
  border-bottom: 1px solid var(--essay-line);
  padding: 0.85rem 0.85rem;
  vertical-align: top;
  min-width: 105px;
}
.essay-body tr:last-child td {
  border-bottom: 0;
}
.essay-body td:first-child {
  min-width: 125px;
}
.role-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.7rem 0;
}
.role-map > div {
  padding: 1.1rem;
  background: var(--essay-surface);
  border-top: 2px solid var(--essay-line);
}
.role-map strong {
  display: block;
  font-size: 0.94rem;
  margin: 0.6rem 0 0.4rem;
  line-height: 1.5;
}
.role-map p {
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--essay-muted);
  margin: 0;
}
.discovery-flow {
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  align-items: center;
  gap: 0.55rem;
}
.discovery-flow > div {
  align-self: stretch;
  padding: 1rem;
  border: 1px solid var(--essay-line);
  border-radius: 4px;
}
.discovery-flow strong,
.discovery-flow small {
  display: block;
}
.discovery-flow strong {
  font-size: 0.86rem;
  margin: 0.6rem 0;
  line-height: 1.5;
}
.discovery-flow small {
  font-size: 0.72rem;
  color: var(--essay-muted);
  line-height: 1.6;
}
.flow-arrow {
  color: var(--essay-accent);
  text-align: center;
}
.loop-return {
  margin-top: 0.8rem;
  border-bottom: 1px solid var(--essay-accent);
  padding: 0.5rem 0 0.8rem;
  text-align: center;
  font-size: 0.73rem;
  color: var(--essay-muted);
}
.depth-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.depth-label strong,
.depth-label small {
  display: block;
}
.depth-label small {
  font-size: 0.72rem;
  color: var(--essay-muted);
}
.depth-rounds {
  display: grid;
  gap: 0.35rem;
}
.depth-two {
  grid-template-columns: repeat(2, 1fr);
}
.depth-eight {
  grid-template-columns: repeat(8, 1fr);
}
.depth-rounds span {
  border: 1px solid var(--essay-accent);
  border-radius: 4px;
  padding: 0.55rem 0;
  text-align: center;
  color: var(--essay-accent);
  font-size: 0.72rem;
}
.trajectory-panel {
  border: 1px solid var(--essay-line);
  padding: 1.35rem;
  border-radius: 7px;
}
.figure-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}
.figure-heading h3 {
  margin: 0.35rem 0 1rem;
  font-size: 1.25rem;
}
.data-badge {
  font-size: 0.65rem;
  color: var(--essay-muted);
  border: 1px solid var(--essay-line);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}
.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.3rem 0 1rem;
}
.control-group {
  display: flex;
  border: 1px solid var(--essay-line);
  border-radius: 5px;
  overflow: hidden;
}
.control-group button {
  border: 0;
  border-right: 1px solid var(--essay-line);
  background: transparent;
  color: var(--essay-muted);
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}
.control-group button:last-child {
  border-right: 0;
}
.control-group button[aria-pressed="true"] {
  background: var(--essay-accent);
  color: var(--global-bg-color, white);
}
.range-select {
  font-size: 0.72rem;
  margin: 0;
  color: var(--essay-muted);
}
.range-select select {
  margin-left: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--essay-line);
  border-radius: 4px;
  background: var(--global-bg-color);
  color: var(--essay-ink);
  font: inherit;
}
.chart-stage img,
.chart-stage svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart-stage svg {
  overflow: visible;
}
.chart-stage .chart-axis {
  fill: var(--essay-muted);
  font-size: 11px;
  font-family: var(--site-font);
}
.chart-stage .chart-grid {
  stroke: var(--essay-line);
  stroke-width: 1;
}
.chart-stage .chart-pointer {
  stroke: var(--essay-muted);
  stroke-dasharray: 3 4;
  opacity: 0.45;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0.7rem 0;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--essay-muted);
}
.chart-legend i {
  width: 15px;
  height: 3px;
  background: var(--series-color);
  display: inline-block;
}
.round-control {
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--essay-line);
  margin-top: 1rem;
}
.round-control label {
  font-size: 0.72rem;
  color: var(--essay-muted);
  display: block;
}
.round-control input {
  width: 100%;
  accent-color: var(--essay-accent);
  cursor: pointer;
}
#chart-readout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.5rem 0 0.2rem;
  min-height: 60px;
}
#chart-readout span {
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--essay-muted);
}
#chart-readout strong {
  display: block;
  font-size: 1rem;
  color: var(--essay-ink);
  font-variant-numeric: tabular-nums;
}
.figure-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.7rem;
  margin-top: 1rem;
}
.milestones {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
}
.milestones li {
  border-top: 2px solid var(--essay-accent);
  padding-top: 0.8rem;
}
.milestones span {
  display: block;
  font-size: 0.65rem;
  color: var(--essay-muted);
}
.milestones strong {
  display: block;
  font-size: 1.25rem;
  color: var(--essay-accent);
  margin: 0.2rem 0;
}
.milestones small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.5;
}
.scope-note {
  border-left: 2px solid var(--essay-line);
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--essay-muted);
}
.reference-list {
  font-size: 0.82rem;
  line-height: 1.7;
}
.reference-list li {
  padding-left: 0.3rem;
  margin-bottom: 0.6rem;
}
.essay-body mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.65rem 0;
  font-size: 96% !important;
}
.essay-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--essay-line);
  padding: 1.6rem 0;
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--essay-muted);
}
.writing-header {
  padding: 2rem 0 3rem;
  max-width: 650px;
}
.writing-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0.8rem 0 1rem;
}
.writing-header > p:last-child {
  color: var(--essay-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}
.writing-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--essay-line);
  border-bottom: 1px solid var(--essay-line);
  padding: 2.3rem 0 2.6rem;
}
.writing-meta {
  font-size: 0.78rem;
  color: var(--essay-muted);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.writing-meta span {
  font-size: 0.68rem;
}
.writing-card-copy h2 {
  font-size: 1.9rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0.8rem 0 1rem;
}
.writing-card-copy h2 a {
  color: var(--essay-ink);
}
.writing-card-copy > p:not(.essay-eyebrow) {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--essay-muted);
  max-width: 650px;
}
.essay-read {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.research-post [hidden] {
  display: none !important;
}
.research-post :focus-visible,
.writing-index :focus-visible {
  outline: 2px solid var(--essay-accent);
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .essay-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .essay-sidebar {
    position: static;
  }
  .essay-toc {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--essay-line);
  }
  .essay-toc .toc-label {
    width: 100%;
  }
  .essay-toc a {
    padding-left: 0;
    border-left: 0;
  }
  .essay-toc a[aria-current="location"] {
    text-decoration: underline;
  }
}
@media (max-width: 560px) {
  .essay-header {
    padding-top: 0;
  }
  .essay-back {
    margin-bottom: 1.8rem;
  }
  .essay-header h1 {
    font-size: 2.25rem;
  }
  .essay-deck {
    font-size: 1rem;
  }
  .essay-body {
    font-size: 0.96rem;
    line-height: 1.85;
  }
  .essay-abstract {
    padding: 1.1rem;
  }
  .essay-body h2 {
    font-size: 1.5rem;
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline > div {
    display: grid;
    grid-template-columns: 22px 95px 1fr;
    gap: 0.5rem;
    align-items: baseline;
    border-right: 0;
    border-bottom: 1px solid var(--essay-line);
    padding: 0.75rem;
  }
  .pipeline > div:last-child {
    border-bottom: 0;
  }
  .pipeline span,
  .pipeline strong {
    margin: 0;
  }
  .role-map {
    grid-template-columns: 1fr;
  }
  .role-map > div {
    padding: 0.9rem 1rem;
  }
  .discovery-flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .trajectory-panel {
    padding: 0.85rem;
  }
  .figure-heading {
    align-items: start;
  }
  .data-badge {
    display: none;
  }
  #chart-readout {
    grid-template-columns: repeat(2, 1fr);
  }
  .depth-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .milestones {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .writing-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .writing-meta {
    flex-direction: row;
    justify-content: space-between;
  }
  .writing-card-copy h2 {
    font-size: 1.7rem;
  }
}
@media print {
  .essay-sidebar,
  .chart-controls,
  .round-control,
  .essay-back,
  .essay-end {
    display: none !important;
  }
  .essay-grid {
    display: block;
  }
  .essay-header {
    padding-top: 0;
  }
  .table-scroll {
    overflow: visible;
  }
  .essay-body h2,
  .essay-body h3 {
    break-after: avoid;
  }
  figure,
  tr {
    break-inside: avoid;
  }
}

/* Interactive map of selected contributions to the PPO loop. */
.ppo-map {
  margin: 2.2rem 0 2.8rem;
  padding: 1.4rem;
  border: 1px solid var(--essay-line);
  border-radius: 12px;
  background: var(--essay-surface);
}
.ppo-map-heading h3 {
  margin: 0.35rem 0 1.4rem;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}
.ppo-stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}
.ppo-stage {
  --stage: var(--essay-accent);
  min-width: 0;
  position: relative;
  padding: 0.75rem 0.6rem;
  border: 1px solid var(--essay-line);
  border-top: 3px solid var(--stage);
  border-radius: 6px;
  background: var(--essay-card);
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
.ppo-stage:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.68rem;
  top: 1.05rem;
  width: 0.75rem;
  z-index: 1;
  font-size: 0.85rem;
  line-height: 1;
  text-align: center;
  color: var(--essay-muted);
  background: var(--essay-card);
}
.ppo-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--stage);
  margin-bottom: 0.65rem;
}
.ppo-stage-number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ppo-stage svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ppo-stage > strong {
  display: block;
  min-height: 2.7em;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
}
.ppo-stage > p {
  font-size: 0.67rem;
  line-height: 1.6;
  color: var(--essay-muted);
  margin: 0.4rem 0 0.9rem;
  min-height: 4.8em;
}
.ppo-stage-papers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.ppo-stage-papers a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.45;
  text-decoration: none;
  color: var(--stage);
  border-radius: 3px;
  padding: 0.15rem 0.25rem;
  background: color-mix(in srgb, var(--stage) 8%, transparent);
}
.ppo-stage-papers a:hover {
  text-decoration: underline;
}
.ppo-stage.is-selected {
  border-color: var(--stage);
  box-shadow: 0 0 0 1px var(--stage);
}
.ppo-stage.is-muted {
  --stage: var(--essay-muted);
  border-top-color: var(--essay-line);
}
.ppo-stage-papers a.is-selected {
  color: var(--essay-on-accent);
  background: var(--stage);
}
.ppo-loop {
  border-bottom: 1px dashed var(--essay-line);
  border-left: 1px dashed var(--essay-line);
  border-right: 1px dashed var(--essay-line);
  border-radius: 0 0 10px 10px;
  padding: 0.45rem 0.5rem;
  margin: 0 0.4rem 1.2rem;
  font-size: 0.65rem;
  color: var(--essay-muted);
  text-align: center;
}
.ppo-loop span {
  margin-right: 0.3rem;
}
.ppo-paper-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ppo-paper-select button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  max-width: 100%;
  font-family: inherit;
  font-size: 0.66rem;
  line-height: 1.6;
  color: var(--essay-muted);
  background: transparent;
  border: 1px solid var(--essay-line);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.ppo-paper-select button[aria-pressed="true"] {
  color: var(--essay-on-accent);
  background: var(--essay-accent);
  border-color: var(--essay-accent);
}
.ppo-paper-detail {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--essay-card);
  border-left: 3px solid var(--essay-accent);
  min-height: 100px;
}
.ppo-detail-name {
  font-size: 0.78rem;
  font-weight: 600;
}
.ppo-paper-detail p {
  margin: 0.2rem 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--essay-muted);
}
.ppo-paper-detail a {
  font-size: 0.7rem;
}
.ppo-map figcaption {
  margin-top: 1rem;
  font-size: 0.65rem;
}
@media (max-width: 650px) {
  .ppo-map {
    padding: 1rem;
  }
  .ppo-map-heading h3 {
    font-size: 1.2rem;
  }
  .ppo-stages {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ppo-stage {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 0 0.6rem;
    padding: 0.65rem;
    border-top-width: 1px;
    border-left: 3px solid var(--stage);
  }
  .ppo-stage-top {
    grid-row: 1 / 4;
    flex-direction: column;
    justify-content: start;
    gap: 0.5rem;
    margin: 0;
  }
  .ppo-stage > strong {
    min-height: 0;
  }
  .ppo-stage > p {
    min-height: 0;
    margin: 0.2rem 0 0.4rem;
  }
  .ppo-stage-papers {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ppo-stage:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -0.7rem;
    left: 1rem;
  }
  .ppo-loop {
    text-align: left;
    line-height: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ppo-stage {
    transition: none;
  }
}
@media print {
  .ppo-map-interaction {
    display: none;
  }
  .ppo-stage {
    break-inside: avoid;
  }
}

/* A quiet reading panel, with the same palette as the autoresearch figures. */
.ppo-math-block {
  margin: 1.5rem 0 2.5rem;
  padding: 0.2rem 1.4rem 0.5rem;
  border-left: 3px solid var(--essay-accent);
  background: var(--essay-surface);
}
.ppo-math-block h3 {
  margin: 1.5rem 0 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--essay-line);
  font-family: var(--essay-heading-font);
  font-size: 1.2rem;
}
.ppo-math-block h3:first-child {
  padding-top: 0;
  border-top: 0;
}
.essay-body .ppo-math-block mjx-container[display="true"] {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.4rem 0;
  font-size: 100% !important;
}
.essay-body .ppo-literature-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 0.8rem;
}
.ppo-literature-table th:first-child {
  width: 13%;
}
.ppo-literature-table th:nth-child(2) {
  width: 8%;
}
.ppo-literature-table th:nth-child(3) {
  width: 13%;
}
.ppo-literature-table th:nth-child(4) {
  width: 26%;
}
.ppo-literature-table th:nth-child(5) {
  width: 24%;
}
.ppo-literature-table th:nth-child(6) {
  width: 16%;
}
.essay-body .ppo-literature-table th,
.essay-body .ppo-literature-table td {
  padding: 0.9rem 0.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ppo-literature-table mjx-container {
  font-size: 90% !important;
}
@media (max-width: 900px) {
  .ppo-literature-table thead {
    display: none;
  }
  .ppo-literature-table table,
  .ppo-literature-table tbody,
  .ppo-literature-table tr,
  .ppo-literature-table td {
    display: block;
    width: 100%;
  }
  .essay-body .ppo-literature-table tr {
    padding: 0.8rem;
    border-bottom: 1px solid var(--essay-line);
  }
  .essay-body .ppo-literature-table td {
    padding: 0.4rem 0;
    border: 0;
  }
  .ppo-literature-table td::before {
    display: block;
    margin-bottom: 0.15rem;
    font-weight: 600;
    color: var(--essay-muted);
  }
  .ppo-literature-table td:first-child {
    font-size: 1rem;
  }
  .ppo-literature-table td:nth-child(2)::before {
    content: "RL setting";
  }
  .ppo-literature-table td:nth-child(3)::before {
    content: "Component";
  }
  .ppo-literature-table td:nth-child(4)::before {
    content: "What changes";
  }
  .ppo-literature-table td:nth-child(5)::before {
    content: "Models & Tasks";
  }
  .ppo-literature-table td:nth-child(6)::before {
    content: "Critic / judge";
  }
}
.ppo-map [hidden] {
  display: none !important;
}
.ppo-paper-select button:focus-visible {
  outline: 2px solid var(--essay-accent);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .ppo-math-block {
    padding: 0.1rem 0.8rem 0.3rem;
  }
}

/* Autoresearch: diagrams use explicit labels as well as color. */
.ar-figure {
  --ar-green: #326c60;
  --ar-blue: #3e658d;
  --ar-warm: #9a6141;
  margin: 2.3rem 0;
  padding: 1.5rem;
  border: 1px solid var(--essay-line);
  border-radius: 14px;
  background: var(--essay-surface);
}
html[data-theme="dark"] .ar-figure {
  --ar-green: #8bc8b7;
  --ar-blue: #9bbfe4;
  --ar-warm: #e1b08c;
}
.ar-figure .ar-figure-heading h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1.3;
}
.ar-figure .ar-figure-heading p {
  margin: 0 0 1.2rem;
  font-size: 0.84rem;
  color: var(--essay-muted);
}
.ar-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 !important;
  margin: 1.3rem 0 0 !important;
  list-style: none;
}
.ar-loop li {
  position: relative;
  border: 1px solid var(--essay-line);
  border-top: 3px solid var(--essay-accent);
  border-radius: 6px;
  padding: 0.9rem 0.65rem;
  margin: 0;
  background: var(--essay-card);
  transition:
    opacity 150ms,
    box-shadow 150ms;
}
.ar-loop li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 45%;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--essay-accent);
}
.ar-loop .ar-number {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--essay-accent);
  margin-bottom: 0.5rem;
}
.ar-loop strong {
  display: block;
  font-size: 0.92rem;
}
.ar-loop small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--essay-muted);
}
.ar-loop .is-selected {
  box-shadow: 0 0 0 2px var(--essay-accent);
}
.ar-loop .is-muted {
  opacity: 0.5;
}
.ar-return {
  color: var(--essay-muted);
  text-align: center;
  font-size: 0.73rem;
  padding: 0.7rem 0;
}
.ar-map-controls,
.ar-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}
.ar-grouped-controls {
  display: grid;
  gap: 0.7rem;
}
.ar-grouped-controls > button {
  justify-self: start;
}
.ar-method-group {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}
.ar-group-label {
  color: var(--essay-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.ar-figure .ar-training-dot {
  display: inline-block;
  width: 0.3rem;
  height: 0.3rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  color: inherit;
  background: currentColor;
  vertical-align: 0.25em;
}
.ar-figure .ar-training-key {
  display: inline-block;
  margin-left: 0.65rem;
  color: inherit;
  white-space: nowrap;
}
.ar-training-key .ar-training-dot {
  margin-left: 0;
  vertical-align: 0.15em;
}
.ar-group-papers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
@media (max-width: 600px) {
  .ar-method-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
}
.ar-figure [hidden] {
  display: none !important;
}
.ar-figure button {
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--essay-ink);
  background: var(--essay-card);
  border: 1px solid var(--essay-line);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.ar-figure button[aria-pressed="true"] {
  color: var(--essay-on-accent);
  background: var(--essay-accent);
  border-color: var(--essay-accent);
}
.ar-figure button:focus-visible {
  outline: 2px solid var(--ar-blue);
  outline-offset: 3px;
}
.ar-map-detail,
.ar-duo-result {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--essay-accent);
  background: var(--essay-card);
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
}
.ar-map-detail p,
.ar-duo-result p {
  font-size: 0.83rem;
  line-height: 1.65;
  margin: 0.35rem 0 0;
}
.ar-map-detail a {
  display: inline-block;
  font-size: 0.73rem;
  margin-top: 0.5rem;
}
.ar-equation {
  margin: 2rem 0;
  padding: 1rem 1.3rem;
  background: var(--essay-surface);
  border-left: 3px solid var(--essay-accent);
}
.ar-equation p {
  font-size: 0.9rem;
}
.ar-equation mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.3rem 0;
  font-size: 100% !important;
}
.ar-memory-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.7rem;
  margin: 1rem 0;
  color: var(--essay-muted);
}
.ar-memory-key > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ar-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.ar-keep {
  color: var(--ar-green);
}
.ar-reset {
  color: var(--ar-warm);
}
.ar-curate {
  color: var(--ar-blue);
}
.ar-memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.ar-memory-card {
  padding: 1rem 0.7rem;
  border: 1px solid var(--essay-line);
  border-radius: 8px;
  background: var(--essay-card);
}
.ar-card-label {
  display: block;
  color: var(--essay-muted);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ar-memory-card h4 {
  font-size: 0.93rem;
  margin: 0.5rem 0 1rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 2.8em;
}
.ar-state {
  padding: 0.55rem 0.4rem;
  font-size: 0.69rem;
  line-height: 1.5;
  border: 1px solid currentColor;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.ar-state.ar-reset {
  border-style: dashed;
}
.ar-fan,
.ar-branches {
  display: flex;
  justify-content: space-around;
  gap: 0.3rem;
  font-size: 0.7rem;
}
.ar-fan {
  color: var(--essay-muted);
  padding: 0.4rem 0;
}
.ar-branches span {
  border: 1px solid var(--essay-line);
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
}
.ar-role-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.7rem;
  color: var(--ar-blue);
  line-height: 1.5;
}
.ar-memory-card p {
  font-size: 0.7rem;
  line-height: 1.7;
  margin: 1rem 0 0;
}
.ar-duo-grid {
  margin-top: 1.3rem;
}
.ar-fast,
.ar-slow {
  padding: 1rem;
  border-radius: 8px;
  background: var(--essay-card);
  border: 1px solid var(--ar-green);
}
.ar-slow {
  border-color: var(--ar-blue);
}
.ar-fast .ar-card-label {
  color: var(--ar-green);
}
.ar-slow .ar-card-label {
  color: var(--ar-blue);
}
.ar-mini-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.5;
}
.ar-mini-flow b {
  color: var(--essay-muted);
  font-weight: 400;
}
.ar-bridge {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0.6rem;
  font-size: 0.72rem;
  color: var(--essay-accent);
  gap: 1rem;
}
.ar-duo[data-outcome="drift"] .ar-fast {
  border-style: dashed;
  border-color: var(--ar-warm);
}
.ar-duo[data-outcome="unconfirmed"] .ar-slow {
  border-color: var(--ar-warm);
}
@media (max-width: 600px) {
  .ar-figure {
    padding: 1.1rem;
  }
  .ar-loop {
    grid-template-columns: 1fr 1fr;
  }
  .ar-loop li:nth-child(2)::after {
    content: none;
  }
  .ar-memory-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .ar-memory-card {
    padding: 1rem;
  }
  .ar-memory-card h4 {
    min-height: 0;
  }
  .ar-memory-card p,
  .ar-state {
    font-size: 0.8rem;
  }
  .ar-mini-flow {
    font-size: 0.73rem;
    gap: 0.3rem;
  }
  .ar-fast,
  .ar-slow {
    padding: 0.8rem;
  }
  .ar-bridge {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ar-loop li {
    transition: none;
  }
}

/* A shared four-stage loop, with method-specific operations. */
.ar-evo-canvas {
  position: relative;
  margin: 1.25rem 0;
}
.ar-evo-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--essay-accent);
  pointer-events: none;
}
.ar-evo-narrow {
  display: none;
}
.ar-evo-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 144px);
  column-gap: 6.6667%;
  row-gap: 34px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}
.ar-evo-node {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--essay-line);
  border-radius: 8px;
  background: var(--essay-card);
  padding: 1rem;
  margin: 0 !important;
}
.ar-evo-parent {
  grid-area: 1 / 1;
}
.ar-evo-propose {
  grid-area: 1 / 2;
}
.ar-evo-evaluate {
  grid-area: 2 / 2;
}
.ar-evo-memory {
  grid-area: 2 / 1;
}
.ar-evo-node .ar-number {
  font-size: 0.65rem;
  color: var(--essay-accent);
  letter-spacing: 0.08em;
}
.ar-evo-node strong {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-top: 0.3rem;
}
.ar-evo-node .ar-node-copy {
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0.45rem 0 0;
}
.ar-evo-node.is-selected {
  border-color: var(--essay-accent);
  box-shadow: inset 0 3px 0 var(--essay-accent);
}
.ar-training-label {
  display: block;
  font-size: 0.66rem;
  color: var(--essay-accent);
  margin-bottom: 0.55rem;
}
.ar-study-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--essay-line);
  border-radius: 8px;
}
.ar-study-table-wrap:focus-visible {
  outline: 2px solid var(--essay-accent);
  outline-offset: 3px;
}
.essay-body .ar-study-table-wrap table {
  width: 100%;
  min-width: 660px;
  table-layout: fixed;
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.6;
}
.essay-body .ar-study-table-wrap th,
.essay-body .ar-study-table-wrap td {
  padding: 0.9rem 0.85rem;
  vertical-align: top;
  overflow-wrap: break-word;
  border-bottom: 1px solid var(--essay-line);
}
.essay-body .ar-study-table-wrap th {
  background: var(--essay-surface);
  font-size: 0.72rem;
}
.essay-body .ar-study-table-wrap th:first-child {
  width: 19%;
}
.essay-body .ar-study-table-wrap th:nth-child(2) {
  width: 42%;
}
.essay-body .ar-model-table th:first-child {
  width: 20%;
}
.essay-body .ar-model-table th:nth-child(2) {
  width: 40%;
}
.essay-body .ppo-model-table table {
  min-width: 780px;
}
.essay-body .ppo-model-table th:first-child {
  width: 17%;
}
.essay-body .ppo-model-table th:nth-child(2) {
  width: 29%;
}
.essay-body .ppo-model-table th:nth-child(3) {
  width: 27%;
}
.essay-body .ppo-model-table th:nth-child(4) {
  width: 27%;
}
.essay-body .ar-task-table table {
  min-width: 760px;
}
.essay-body .ar-task-table th:first-child {
  width: 20%;
}
.essay-body .ar-task-table th:nth-child(2) {
  width: 19%;
}
.essay-body .ar-task-table th:nth-child(3) {
  width: 36%;
}
.essay-body .ar-task-table th:nth-child(4) {
  width: 25%;
}
.essay-body .ar-resource-table table {
  min-width: 800px;
}
.essay-body .ar-resource-table th:first-child {
  width: 15%;
}
.essay-body .ar-resource-table th:nth-child(2) {
  width: 13%;
}
.essay-body .ar-resource-table th:nth-child(3) {
  width: 25%;
}
.essay-body .ar-resource-table th:nth-child(4) {
  width: 20%;
}
.essay-body .ar-resource-table th:nth-child(5) {
  width: 27%;
}
.essay-body .ar-eval-table th:first-child {
  width: 16%;
}
.essay-body .ar-eval-table th:nth-child(2) {
  width: 19%;
}
.essay-body .ar-eval-table th:nth-child(3) {
  width: 30%;
}
.essay-body .ar-eval-table th:nth-child(4) {
  width: 35%;
}
.ar-eval-notes {
  margin-top: 1rem;
  color: var(--essay-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}
.ar-eval-notes summary {
  cursor: pointer;
  color: var(--essay-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.essay-body .ar-study-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 600px) {
  .ar-evolution {
    padding: 0.9rem;
  }
  .ar-evo-wide {
    display: none;
  }
  .ar-evo-narrow {
    display: block;
  }
  .ar-evo-nodes {
    grid-template-rows: repeat(2, 190px);
    column-gap: 4.7059%;
    row-gap: 26px;
  }
  .ar-evo-node {
    padding: 0.6rem;
  }
  .ar-evo-node strong {
    font-size: 0.8rem;
  }
  .ar-evo-node .ar-node-copy {
    font-size: 0.7rem;
  }
}

/* Switch between two perspectives on the research loop. */
.ar-takeaway {
  margin: 1.6rem 0 2rem;
  padding: 1.6rem;
  border: 1px solid var(--essay-line);
  border-radius: 12px;
  background: var(--essay-card);
}
.ar-takeaway-modes {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1.5rem;
  padding: 0.2rem;
  gap: 0.2rem;
  border: 1px solid var(--essay-line);
  border-radius: 8px;
  background: var(--essay-surface);
}
.ar-takeaway-modes button {
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--essay-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.ar-takeaway-modes button[aria-selected="true"] {
  background: var(--essay-accent);
  color: var(--essay-on-accent);
}
.ar-takeaway-modes button:focus-visible {
  outline: 2px solid var(--essay-accent);
  outline-offset: 3px;
}
.ar-takeaway .ar-takeaway-heading h3 {
  margin: 0.45rem 0 0.6rem;
  font-family: var(--essay-heading-font);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
}
.ar-takeaway .ar-takeaway-heading p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--essay-muted);
}
.ar-takeaway-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--essay-line);
}
.ar-takeaway [hidden] {
  display: none !important;
}
.ar-takeaway-switch button {
  appearance: none;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--essay-muted);
  font: inherit;
  font-size: 0.73rem;
  cursor: pointer;
}
.ar-takeaway-switch button[aria-pressed="true"] {
  color: var(--essay-accent);
  border-bottom-color: currentColor;
}
.ar-takeaway-switch button:focus-visible {
  outline: 2px solid var(--essay-accent);
  outline-offset: 4px;
}
.ar-takeaway-diagram {
  margin-top: 1.5rem;
}
.ar-takeaway-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.8rem minmax(0, 1fr) 1.8rem minmax(0, 1fr);
  align-items: stretch;
}
.ar-takeaway-node {
  min-width: 0;
  padding: 1rem 0.85rem;
  border: 1px solid var(--essay-line);
  border-radius: 8px;
  background: var(--essay-surface);
}
.ar-takeaway-node.ar-takeaway-focus {
  border-color: var(--essay-accent);
  box-shadow: inset 0 3px 0 var(--essay-accent);
}
.ar-takeaway .ar-takeaway-role {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--essay-muted);
}
.ar-takeaway .ar-takeaway-focus .ar-takeaway-role {
  color: var(--essay-accent);
}
.ar-takeaway-node strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 600;
}
.ar-takeaway .ar-takeaway-node p {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--essay-muted);
}
.ar-takeaway .ar-reset-note {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--essay-line);
  font-size: 0.65rem;
  color: var(--essay-muted);
}
.ar-takeaway .ar-takeaway-arrow {
  align-self: center;
  text-align: center;
  color: var(--essay-muted);
  font-size: 1rem;
}
.ar-takeaway-return {
  position: relative;
  height: 2.9rem;
  margin: 0 calc((100% - 3.6rem) / 6);
  border: 1px solid var(--essay-accent);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  text-align: center;
}
.ar-takeaway-return::before {
  content: "";
  position: absolute;
  top: 1px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-left: 1px solid var(--essay-accent);
  border-top: 1px solid var(--essay-accent);
  transform: rotate(45deg);
}
.ar-takeaway .ar-takeaway-return span {
  position: relative;
  top: 2.1rem;
  display: inline-block;
  padding: 0 0.5rem;
  background: var(--essay-card);
  color: var(--essay-accent);
  font-size: 0.68rem;
  line-height: 1.5;
}
.ar-takeaway .ar-takeaway-caption {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--essay-line);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--essay-muted);
}
.ar-takeaway .ar-takeaway-caption a {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .ar-takeaway {
    padding: 1.1rem;
  }
  .ar-takeaway-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .ar-takeaway-diagram {
    position: relative;
    padding-left: 1.35rem;
    padding-bottom: 2rem;
  }
  .ar-takeaway .ar-takeaway-arrow {
    height: 1.8rem;
    transform: rotate(90deg);
  }
  .ar-takeaway-node {
    padding: 0.85rem 1rem;
  }
  .ar-takeaway .ar-takeaway-role {
    margin-bottom: 0.35rem;
  }
  .ar-takeaway-return {
    position: absolute;
    top: 2.3rem;
    bottom: 0;
    left: 0;
    width: 50%;
    height: auto;
    margin: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 0 8px;
    pointer-events: none;
  }
  .ar-takeaway-return::before {
    left: 1.05rem;
    top: -4px;
    transform: rotate(135deg);
  }
  .ar-takeaway-return::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 1.35rem;
    border-top: 1px solid var(--essay-accent);
  }
  .ar-takeaway-diagram::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 2rem;
    border-left: 1px solid var(--essay-accent);
  }
  .ar-takeaway .ar-takeaway-return span {
    z-index: 1;
    position: absolute;
    top: auto;
    left: 1.35rem;
    bottom: -0.7rem;
    width: calc(200% - 1.35rem);
    padding: 0.2rem 0;
    text-align: left;
    font-size: 0.64rem;
  }
}

/* Five perspectives on policy optimization, using the shared reading palette. */
.ppo-directions {
  display: grid;
  margin: 1.8rem 0 2.5rem;
  border-top: 1px solid var(--essay-line);
}
.essay-body .ppo-directions a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1rem;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 0.35rem;
  border-bottom: 1px solid var(--essay-line);
  color: var(--essay-ink);
  text-decoration: none;
}
.ppo-directions a:hover {
  background: var(--essay-surface);
}
.ppo-direction-number {
  color: var(--essay-accent);
  font-size: 0.76rem;
}
.ppo-directions strong {
  display: block;
  font-size: 0.9rem;
}
.ppo-directions small {
  display: block;
  color: var(--essay-muted);
  font-size: 0.75rem;
}
.ppo-family-figure {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  border: 1px solid var(--essay-line);
  border-radius: 10px;
  background: var(--essay-card);
}
.ppo-family-figure [hidden] {
  display: none !important;
}
.ppo-variant-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--essay-line);
}
.ppo-variant-controls button {
  padding: 0.4rem 0 0.6rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.79rem;
  color: var(--essay-muted);
  cursor: pointer;
}
.ppo-variant-controls button[aria-pressed="true"] {
  border-bottom-color: var(--essay-accent);
  color: var(--essay-accent);
}
.ppo-variant-controls button:focus-visible,
.ppo-directions a:focus-visible {
  outline: 2px solid var(--essay-accent);
  outline-offset: 3px;
}
.ppo-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr) 1.6rem minmax(0, 1fr);
  align-items: stretch;
}
.ppo-flow-node {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--essay-line);
  border-radius: 7px;
  background: var(--essay-surface);
}
.ppo-flow-node.is-focus {
  border-color: var(--essay-accent);
  box-shadow: inset 0 3px 0 var(--essay-accent);
}
.ppo-flow-node > span {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--essay-muted);
}
.ppo-flow-node.is-focus > span {
  color: var(--essay-accent);
}
.ppo-flow-node strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
}
.essay-body .ppo-flow-node p {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--essay-muted);
}
.ppo-flow-arrow {
  align-self: center;
  text-align: center;
  color: var(--essay-muted);
}
.essay-body .ppo-flow-note,
.ppo-family-figure figcaption {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--essay-line);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--essay-muted);
}
.ppo-cope-paths {
  display: grid;
  gap: 0.8rem;
}
.ppo-cope-paths .ppo-flow {
  grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr);
}
.ppo-cope-merge {
  text-align: center;
  font-size: 0.83rem;
}
.ppo-cope-merge span {
  display: block;
  margin: 0.5rem;
  color: var(--essay-accent);
}
.ppo-cope-merge strong {
  display: block;
  padding: 0.8rem;
  border: 1px solid var(--essay-accent);
  border-radius: 7px;
}
@media (max-width: 600px) {
  .ppo-family-figure {
    padding: 0.9rem;
  }
  .ppo-flow,
  .ppo-cope-paths .ppo-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .ppo-flow-arrow {
    transform: rotate(90deg);
    padding: 0.1rem;
  }
  .ppo-cope-paths {
    gap: 1.2rem;
  }
}
@media print {
  .ppo-family-figure .ppo-variant[hidden] {
    display: block !important;
  }
  .ppo-variant-controls {
    display: none;
  }
  .ppo-variant + .ppo-variant {
    margin-top: 1rem;
  }
}

/* Topic collections use a reading order independent of publication dates. */
.writing-series-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--essay-line);
}
.writing-series-list li + li {
  border-top: 1px solid var(--essay-line);
}
.writing-series-list a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) 1rem;
  gap: 0.85rem;
  align-items: start;
  padding: 1.2rem 0.25rem;
  color: var(--essay-ink);
  text-decoration: none;
}
.writing-series-list a:hover {
  background: var(--essay-surface);
}
.writing-series-number {
  color: var(--essay-accent);
  font-size: 0.75rem;
  padding-top: 0.15rem;
}
.writing-series-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.writing-series-list small {
  display: block;
  margin-top: 0.4rem;
  color: var(--essay-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}
.writing-series-page {
  max-width: 850px;
}
.writing-series-page .writing-header {
  max-width: 850px;
  padding-bottom: 1rem;
}
.writing-series-page .essay-back {
  margin-bottom: 1.5rem;
}

/* Data access and parameter inheritance across arriving task windows. */
.cl-window-figure {
  margin: 1.5rem 0;
  padding: 1.35rem;
  border: 1px solid var(--essay-line);
  border-radius: 10px;
  background: var(--essay-card);
}
.cl-window-heading strong { display: block; font-size: 1rem; }
.cl-window-heading > span { font-size: 0.76rem; color: var(--essay-muted); }
.cl-window-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.cl-window-controls[hidden] { display: none; }
.cl-window-controls button {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--essay-line);
  border-radius: 5px;
  background: var(--essay-card);
  color: var(--essay-ink);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}
.cl-window-controls button[aria-pressed="true"] { background: var(--essay-accent); border-color: var(--essay-accent); color: var(--essay-on-accent); }
.cl-window-controls button:focus-visible { outline: 2px solid var(--essay-accent); outline-offset: 3px; }
.essay-body .cl-window-status { margin: 0.8rem 0; font-size: 0.76rem; }
.cl-window-row { padding: 1.1rem 0; border-top: 1px solid var(--essay-line); }
.cl-window-label { display: flex; gap: 0.65rem; align-items: baseline; }
.cl-window-label > span { color: var(--essay-accent); font-size: 0.7rem; }
.cl-window-label strong { font-size: 0.9rem; }
.essay-body .cl-window-label p { margin: 0.1rem 0 0.65rem; font-size: 0.76rem; }
.cl-window-data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.cl-window-chip { padding: 0.5rem 0.2rem; text-align: center; border: 1px solid var(--essay-line); border-radius: 5px; }
.cl-window-chip strong { display: block; font-size: 1rem; font-weight: 500; }
.cl-window-chip > span { display: block; margin-top: 0.15rem; font-size: 0.65rem; }
.cl-window-chip.is-used { border-color: var(--essay-accent); background: var(--essay-surface); color: var(--essay-accent); box-shadow: inset 0 2px 0 var(--essay-accent); }
.cl-window-chip.is-past { color: var(--essay-muted); }
.cl-window-chip.is-future { color: var(--essay-muted); border-style: dashed; }
.cl-window-path { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; align-items: center; gap: 0.5rem; margin-top: 0.8rem; font-size: 0.76rem; text-align: center; }
.cl-window-path strong { font-weight: 600; color: var(--essay-accent); }
.essay-body .cl-window-note { margin: 0.6rem 0 0; font-size: 0.73rem; line-height: 1.6; color: var(--essay-muted); }
.cl-window-figure figcaption { padding-top: 0.9rem; border-top: 1px solid var(--essay-line); font-size: 0.73rem; line-height: 1.65; color: var(--essay-muted); }
@media (max-width: 600px) {
  .cl-window-figure { padding: 0.85rem; }
  .cl-window-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; }
  .cl-window-controls button { padding: 0.4rem 0.1rem; font-size: 0.7rem; }
  .cl-window-data { gap: 0.3rem; }
  .cl-window-chip > span { font-size: 0.6rem; }
  .cl-window-path { gap: 0.25rem; font-size: 0.69rem; }
}
@media print { .cl-window-controls { display: none; } }
