/* Fan-out research article — v4 surfaces, rules and accents only. */
.article-page .article-body .fanout-learn {
  margin: 34px 0;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  background: var(--surface-deep);
}
.article-page .article-body .fanout-learn__title {
  margin: 0 0 12px;
  color: var(--accent);
  font: 650 10px/1.4 SKMono, ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-page .article-body .fanout-learn ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.article-page .article-body .fanout-learn li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.article-page .article-body .fanout-learn li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: SKMono, ui-monospace, Consolas, monospace;
  font-size: 12px;
}

.article-page .article-body .fanout-figure {
  margin: 38px 0;
}
.article-page .article-body .fanout-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface-deep);
}
.article-page .article-body .fanout-svg text {
  font-family: Onest, system-ui, sans-serif;
}
.article-page .article-body .fanout-svg .mono {
  font-family: SKMono, ui-monospace, Consolas, monospace;
}
.article-page .article-body .fanout-svg .label {
  fill: var(--quiet);
  font: 650 10px/1.2 SKMono, ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-page .article-body .fanout-svg .ink { fill: var(--text); }
.article-page .article-body .fanout-svg .muted { fill: var(--muted); }
.article-page .article-body .fanout-svg .quiet { fill: var(--quiet); }
.article-page .article-body .fanout-svg .panel { fill: var(--paper); stroke: var(--line-strong); }
.article-page .article-body .fanout-svg .line { fill: none; stroke: var(--line-strong); }
.article-page .article-body .fanout-svg .accent-line { fill: none; stroke: var(--accent); }
.article-page .article-body .fanout-svg .accent { fill: var(--accent); }
.article-page .article-body .fanout-svg .dot { fill: var(--accent); }
.article-page .article-body .fanout-figure figcaption {
  margin-top: 10px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .article-page .article-body .fanout-svg { min-width: 0; }
}

.article-page .article-body .fanout-heat {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.article-page .article-body .fanout-heat th,
.article-page .article-body .fanout-heat td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.article-page .article-body .fanout-heat th:first-child,
.article-page .article-body .fanout-heat td:first-child {
  text-align: left;
}
.article-page .article-body .fanout-heat th {
  color: var(--quiet);
  font-weight: 600;
}
.article-page .article-body .fanout-heat td[style] {
  background: color-mix(in oklab, var(--accent) calc(var(--v) * 1%), var(--surface)) !important;
  color: var(--text);
  font-family: SKMono, ui-monospace, Consolas, monospace;
  font-weight: 600;
}

.article-page .article-body .fanout-method {
  margin: 44px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.article-page .article-body .fanout-method summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--quiet);
  font: 650 11px/1.4 SKMono, ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.article-page .article-body .fanout-method summary::-webkit-details-marker { display: none; }
.article-page .article-body .fanout-method summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 14px;
}
.article-page .article-body .fanout-method[open] summary::before { content: "−"; }
.article-page .article-body .fanout-method__body { padding-top: 18px; }
.article-page .article-body .fanout-method__body p:first-child { margin-top: 0; }

.article-page .article-body .fanout-chart {
  margin: 34px 0;
  padding: 18px 0 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.article-page .article-body .fanout-chart__title {
  margin: 0 0 14px;
  color: var(--quiet);
  font: 650 11px/1.4 SKMono, ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-page .article-body .fanout-chart__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
}
.article-page .article-body .fanout-chart__label {
  color: var(--muted);
  font-size: 13px;
}
.article-page .article-body .fanout-chart__track {
  height: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.article-page .article-body .fanout-chart__fill {
  display: block;
  height: 100%;
  width: calc(var(--v) * 1%);
  background: var(--accent);
}
.article-page .article-body .fanout-chart__fill--alt {
  background: var(--text);
}
.article-page .article-body .fanout-chart__value {
  color: var(--text);
  font: 600 12px/1.4 SKMono, ui-monospace, Consolas, monospace;
  text-align: right;
}
.article-page .article-body .fanout-split {
  display: flex;
  width: 100%;
  height: 34px;
  margin: 18px 0 10px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.article-page .article-body .fanout-split span {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #f4f6ef;
  font: 600 11px/1.2 SKMono, ui-monospace, Consolas, monospace;
  background: var(--text);
}
.article-page .article-body .fanout-split span:nth-child(2) { background: var(--accent); }
.article-page .article-body .fanout-split span:nth-child(3) { background: var(--muted); }
.article-page .article-body .fanout-split span:nth-child(4) { background: var(--quiet); }
.article-page .article-body .fanout-split span:nth-child(5) { background: var(--line-strong); color: var(--text); }
.article-page .article-body .fanout-split span:nth-child(6),
.article-page .article-body .fanout-split span:nth-child(7) { background: var(--surface-deep); color: var(--text); }
.article-page .article-body .fanout-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .article-page .article-body .fanout-chart__row {
    grid-template-columns: 112px minmax(0, 1fr) 40px;
    gap: 8px;
  }
  .article-page .article-body .fanout-chart__label {
    font-size: 12px;
  }
  .article-page .article-body .fanout-split {
    height: 44px;
  }
  .article-page .article-body .fanout-split span {
    font-size: 9px;
  }
}

.article-page .article-toc li {
  position: relative;
  list-style: none;
  padding-left: 18px;
}
.article-page .article-toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-page .article-toc li a {
  display: block;
  line-height: 1.45;
}
.article-page .article-body > .ais-code {
  padding: 0;
  margin: 34px 0;
}
.article-page .article-body > .ais-code pre {
  margin: 0;
  padding: 20px 24px;
}
.article-page .article-body .fanout-case {
  margin: 38px 0;
  border: 1px solid var(--line-strong);
  background: var(--surface-deep);
}
.article-page .article-body .fanout-case__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.article-page .article-body .fanout-case__id {
  color: var(--accent);
  font-family: SKMono, ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-page .article-body .fanout-case__what {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}
.article-page .article-body .fanout-case .ais-code {
  margin: 0;
  border: 0;
  background: transparent;
}
.article-page .article-body .fanout-case .ais-code pre {
  padding: 18px 20px 20px !important;
  font-size: 12.5px;
  line-height: 1.75;
}
.article-page .article-body .fanout-case__verdict {
  margin: 0;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.article-page .article-body .fanout-case__verdict strong {
  color: var(--text);
  font-weight: 600;
}
.article-page .article-body .article-table-wrap {
  margin: 34px 0;
}
.article-page .article-body .article-table caption {
  padding: 0 0 12px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.article-page .article-body .ais-reproducibility {
  margin: 34px 0;
}
.article-page .article-body .ais-reproducibility__grid {
  gap: 0;
}
.article-page .article-body .ais-source-list {
  margin-top: 40px;
}
.article-page .article-body .fanout-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.article-page .article-body .fanout-links a {
  display: block;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  border-right: 1px solid var(--line);
}
.article-page .article-body .fanout-links a:last-child {
  border-right: 0;
}
.article-page .article-body .fanout-links a:hover {
  background: var(--surface);
}
.article-page .article-body .fanout-links span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: SKMono, ui-monospace, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .article-page .article-body .fanout-links {
    grid-template-columns: 1fr;
  }
  .article-page .article-body .fanout-links a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .article-page .article-body .fanout-links a:last-child {
    border-bottom: 0;
  }
}
