* {
  box-sizing: border-box;
}

html {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  line-height: 1.55;
}

a {
  color: #000;
}

.site-header,
main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

section {
  padding: 36px 0;
  border-top: 1px solid #000;
}

.hero {
  padding-top: 72px;
  border-top: 0;
}

h1,
h2,
h3,
p,
.equation,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-device {
  white-space: nowrap;
}

h2 {
  margin-bottom: 20px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3,
h4 {
  margin: 30px 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

h4 {
  margin-top: 0;
}

.lead {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.4;
}

p,
li {
  font-size: 18px;
}

code {
  font-family: Arial, sans-serif;
  font-size: 0.92em;
}

.policy-example {
  margin: 8px 0 24px;
  padding: 14px 16px;
  overflow-x: auto;
  border-left: 2px solid #000;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.policy-example code {
  font-family: inherit;
}

.equation {
  display: block;
  margin: 8px 0 24px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  line-height: 1.3;
}

.equation .katex-display {
  margin: 0;
  padding: 4px 0;
}

.equation .katex {
  font-size: 1.16em;
  line-height: 1.25;
}

p .katex {
  font-size: 1em;
}

figure {
  margin: 28px 0 34px;
}

figcaption {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.chart {
  overflow: visible;
}

.router-mlp {
  margin: 28px 0 34px;
}

.mlp-cascade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
}

.mlp-stage {
  min-width: 0;
  padding: 12px;
  border: 1px solid #000;
}

.mlp-stage h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.mlp-purpose {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
}

.mlp-stage svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 6px auto 0;
}

.mlp-edges path {
  fill: none;
  stroke: #777;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.mlp-nodes circle {
  fill: #fff;
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.mlp-nodes circle.mlp-output {
  fill: #000;
}

.mlp-legend {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.mlp-legend div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
}

.mlp-legend dt,
.mlp-legend dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.mlp-legend dt {
  font-weight: 700;
}

.mlp-connector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}

.connector-box {
  padding: 9px 10px;
  border: 1px solid #000;
  font-weight: 700;
  line-height: 1.15;
}

.connector-note {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 12px;
}

.connector-line {
  position: relative;
  width: 100%;
  min-width: 22px;
  border-top: 1px solid #000;
}

.connector-line:first-child::before {
  content: "accept";
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  font-size: 12px;
  background: #fff;
  padding: 0 3px;
}

.connector-line:nth-of-type(3)::after {
  content: "features";
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  font-size: 12px;
  background: #fff;
  padding: 0 3px;
}

.connector-line:nth-of-type(3)::before {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  transform: rotate(45deg);
}

.plot {
  width: 100%;
  min-height: 420px;
  background: #fff;
}

.plot-small {
  min-height: 280px;
}

.router-grid .plot-small {
  min-height: 0;
}

.router-panel-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.router-panel-inner {
  width: 100%;
}

.router-panel-caption {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.router-panel-svg text {
  fill: #000;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.router-panel-svg text tspan {
  font-size: 10px;
}

.router-boundary {
  fill: none;
  stroke: #000;
  stroke-width: 2;
}

.router-boundary-dashed {
  stroke: #777;
  stroke-dasharray: 7 6;
}

.plot .modebar {
  display: none;
}

.results-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1.04;
}

.results-hero {
  padding-bottom: 52px;
}

.results-eyebrow {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.experiment-list {
  padding-top: 18px;
}

.experiment-list > h2 {
  margin-bottom: 8px;
}

.experiment-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 42px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid #000;
}

.experiment-row:last-child {
  border-bottom: 1px solid #000;
}

.experiment-copy h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.experiment-copy p:not(.results-eyebrow) {
  max-width: 610px;
  margin-bottom: 14px;
  font-size: 17px;
}

.text-link {
  color: #000;
  font-size: 15px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.experiment-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #000;
  border: 1px solid #000;
}

.experiment-metrics div {
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.experiment-metrics dt,
.experiment-metrics dd {
  margin: 0;
}

.experiment-metrics dt {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.experiment-metrics dd {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
}

.experiment-metrics small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
}

.results-hero .lead {
  max-width: 690px;
}

.experiment-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  list-style: none;
}

.experiment-flow li {
  min-width: 0;
  padding: 13px 16px 13px 0;
}

.experiment-flow li + li {
  margin-top: 0;
  padding-left: 16px;
  border-left: 1px solid #aaa;
}

.experiment-flow span,
.experiment-flow strong {
  display: block;
}

.experiment-flow span {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
}

.experiment-flow strong {
  font-size: 17px;
  line-height: 1.3;
}

.signal-checkpoints {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 12px;
  padding: 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  list-style: none;
}

.signal-checkpoints li {
  min-width: 0;
  padding: 13px 14px;
}

.signal-checkpoints li:first-child {
  padding-left: 0;
}

.signal-checkpoints li + li {
  margin-top: 0;
  border-left: 1px solid #aaa;
}

.signal-checkpoints small,
.signal-checkpoints strong,
.signal-checkpoints span {
  display: block;
}

.signal-checkpoints small {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
}

.signal-checkpoints strong {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.signal-checkpoints span {
  font-size: 12px;
  line-height: 1.35;
}

.policy-definitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 12px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.policy-definitions div {
  min-width: 0;
  padding: 14px 16px 14px 0;
}

.policy-definitions div + div {
  padding-left: 16px;
  border-left: 1px solid #aaa;
}

.policy-definitions dt {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}

.policy-definitions dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.policy-definitions dd strong {
  display: block;
  margin-top: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 18px;
  background: #000;
  border: 1px solid #000;
}

.metric-grid article {
  min-width: 0;
  padding: 14px 12px;
  background: #fff;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  font-size: 28px;
  line-height: 1.1;
}

.metric-grid strong small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.2;
}

.metric-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid span {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.25;
}

.result-note {
  font-size: 15px;
}

.result-chart {
  margin: 22px 0 8px;
  overflow: hidden;
  min-height: 250px;
}

.result-chart .plot-container,
.result-chart .svg-container {
  font-family: Arial, sans-serif;
}

.result-chart .modebar {
  display: none;
}

.workload-demo-title {
  margin-top: 24px;
}

.workload-examples {
  margin: 18px 0 26px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.example-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 0.85fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  padding: 18px 0;
  background: #fff;
}

.example-card + .example-card {
  border-top: 1px solid #ccc;
}

.example-kicker {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.example-kicker span {
  font-weight: 400;
}

.example-part {
  min-width: 0;
}

.example-label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.example-card blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.json-output {
  margin: 0;
  padding: 0 0 0 12px;
  overflow-x: auto;
  border-left: 2px solid #000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.json-output code {
  font-family: inherit;
  font-size: inherit;
}

.reply-output {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid #000;
  font-size: 15px;
  line-height: 1.45;
}

.expected-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #000;
  border: 1px solid #000;
}

.expected-fields div {
  min-width: 0;
  padding: 8px;
  background: #fff;
}

.expected-fields dt,
.expected-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.expected-fields dt {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
}

.expected-fields dd {
  font-size: 13px;
}

.results-svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.results-svg text {
  fill: #000;
  font-family: Arial, sans-serif;
}

.chart-title {
  font-size: 17px;
  font-weight: 700;
}

.group-label,
.value-label {
  font-size: 13px;
  font-weight: 700;
}

.axis-label,
.chart-note {
  font-size: 12px;
}

.bar-dark,
.point-dark {
  fill: #000;
}

.bar-mid {
  fill: #777;
}

.segment-dark {
  fill: #000;
}

.segment-mid {
  fill: #777;
}

.segment-light {
  fill: #fff;
}

.stack-frame {
  fill: none;
  stroke: #000;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.bar-light,
.point-light {
  fill: #fff;
  stroke: #000;
  stroke-width: 1.5;
}

.bar-baseline {
  stroke: #ddd;
  stroke-width: 1;
}

.plot-frame {
  fill: #fff;
  stroke: #000;
  stroke-width: 1;
}

.guide-line,
.ci-line {
  stroke: #777;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.frontier-line {
  fill: none;
  stroke: #000;
  stroke-width: 2;
}

.router-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.router-grid article {
  margin: 0;
}

.router-grid h4 {
  font-size: 15px;
}

ul {
  margin: 0;
  padding-left: 22px;
}

.compact-list {
  margin: 8px 0 24px;
}

li + li {
  margin-top: 10px;
}

@media (max-width: 520px) {
  .site-header,
  main {
    width: min(100% - 24px, 760px);
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 20px;
  }

  .results-hero h1 {
    font-size: 42px;
  }

  .experiment-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 0;
  }

  .experiment-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .experiment-metrics div {
    padding: 12px;
  }

  .experiment-metrics dd {
    font-size: 23px;
  }

  .experiment-flow {
    grid-template-columns: 1fr;
  }

  .experiment-flow li {
    padding: 10px 0;
  }

  .experiment-flow li + li {
    padding-left: 0;
    border-top: 1px solid #aaa;
    border-left: 0;
  }

  .signal-checkpoints {
    grid-template-columns: 1fr;
  }

  .signal-checkpoints li,
  .signal-checkpoints li:first-child {
    padding: 10px 0;
  }

  .signal-checkpoints li + li {
    border-top: 1px solid #aaa;
    border-left: 0;
  }

  .policy-definitions {
    grid-template-columns: 1fr;
  }

  .policy-definitions div,
  .policy-definitions div + div {
    padding: 12px 0;
    border-left: 0;
  }

  .policy-definitions div + div {
    border-top: 1px solid #aaa;
  }

  .site-header {
    align-items: flex-start;
  }

  p,
  li {
    font-size: 17px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid-three {
    grid-template-columns: 1fr;
  }

  .metric-grid-two {
    grid-template-columns: 1fr 1fr;
  }

  .workload-examples {
    margin-top: 14px;
  }

  .example-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .example-card blockquote {
    font-size: 17px;
  }

  .json-output {
    font-size: 12px;
  }

  .metric-grid strong {
    font-size: 24px;
  }

  .policy-example {
    padding: 12px;
    font-size: 13px;
  }

  .equation {
    margin-left: 0;
  }

  .equation .katex {
    font-size: 1.08em;
  }

  .router-grid h4 {
    font-size: 13px;
  }

  .router-grid {
    grid-template-columns: 1fr;
  }

  .mlp-cascade {
    grid-template-columns: 1fr;
  }

  .mlp-connector {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .connector-line {
    width: 1px;
    min-width: 0;
    height: 28px;
    border-top: 0;
    border-left: 1px solid #000;
  }

  .connector-line:first-child::before,
  .connector-line:nth-of-type(3)::after {
    left: 10px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .connector-line:nth-of-type(3)::before {
    right: auto;
    left: -4px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }

  .connector-note {
    margin-top: 0;
  }

  .mlp-stage {
    padding: 10px;
  }

  .mlp-stage h4 {
    font-size: 14px;
  }

  .mlp-purpose {
    font-size: 13px;
  }

  .mlp-connector {
    font-size: 13px;
  }

  .plot {
    min-height: 390px;
  }

  .plot-small {
    min-height: 300px;
  }
}
