.rpc-report {
  --rpc-ink: #152f35;
  --rpc-muted: #4d6268;
  --rpc-border: #d6e4e3;
  --rpc-paper: #fff;
  --rpc-wash: #eff6f5;
  --rpc-brpc: #006f73;
  --rpc-coro: #b54a23;
  color: var(--rpc-ink);
  line-height: 1.6;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(14px, 3vw, 36px);
  box-sizing: border-box;
}
.rpc-report *, .rpc-report *::before, .rpc-report *::after { box-sizing: border-box; }
.rpc-report a { color: var(--rpc-brpc); text-underline-offset: .18em; }
.rpc-report a:hover { text-decoration-thickness: 2px; }
.rpc-report :focus-visible { outline: 2px solid var(--rpc-coro); outline-offset: 3px; }
.rpc-report .report-hero {
  background: linear-gradient(130deg, #e2f4ee, #f6f7f4 65%, #f8ebe3);
  border: 1px solid var(--rpc-border);
  border-radius: 18px;
  padding: clamp(18px, 5vw, 48px);
  margin-bottom: 30px;
}
.rpc-report .eyebrow { font-weight: 700; color: var(--rpc-brpc); letter-spacing: .09em; margin: 0; }
.rpc-report h1 { font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.12; margin: 8px 0; letter-spacing: -.04em; }
.rpc-report .lead { margin: 12px 0 22px; max-width: 49rem; font-size: clamp(1rem, 2vw, 1.15rem); }
.rpc-report .hero-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; }
.rpc-report .hero-stats dt { color: var(--rpc-muted); font-size: .82rem; }
.rpc-report .hero-stats dd { font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.rpc-report .report-grid { display: grid; grid-template-columns: 146px minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
.rpc-report .report-toc {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--rpc-border);
  border-radius: 12px;
  padding: 6px;
  background: var(--rpc-paper);
}
.rpc-report .report-toc a { color: var(--rpc-ink); padding: 6px 7px; border-radius: 7px; text-decoration: none; }
.rpc-report .report-toc a:hover { background: var(--rpc-wash); }
.rpc-report .report-toc span, .rpc-report h2 span { color: var(--rpc-brpc); font-variant-numeric: tabular-nums; margin-right: .55em; }
/* The site reader moves the TOC outside the grid when it pins the sidebar. */
.yche-compact-native-active .rpc-report .report-grid { grid-template-columns: minmax(0, 1fr); }
.yche-compact-native-active .rpc-report .report-toc a { display: block; }
.yche-compact-native-active .rpc-report { margin-right: var(--yche-compact-gap, 24px); }
.rpc-report .report-body { min-width: 0; container-type: inline-size; }
.rpc-report section { scroll-margin-top: 76px; margin-bottom: 38px; }
.rpc-report h2 { margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rpc-border); font-size: clamp(1.3rem, 3vw, 1.75rem); }
.rpc-report h3 { margin: 0 0 8px; font-size: 1.04rem; line-height: 1.4; }
.rpc-report .prose { overflow-wrap: anywhere; }
.rpc-report .prose p { margin: .55em 0 1em; }
.rpc-report .prose ul, .rpc-report .prose ol { padding-inline-start: 1.6em; }
.rpc-report .prose li { margin-bottom: .45em; }
.rpc-report .prose pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--rpc-wash);
  border: 1px solid var(--rpc-border);
  border-radius: 10px;
  padding: 12px;
}
.rpc-report .prose code { white-space: break-spaces; overflow-wrap: anywhere; }
.rpc-report .flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rpc-report .runtime-flow, .rpc-report .chart {
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: var(--rpc-paper);
  border: 1px solid var(--rpc-border);
  border-radius: 12px;
}
.rpc-report .runtime-flow { --rpc-line: var(--rpc-brpc); border-top: 4px solid var(--rpc-line); }
.rpc-report .runtime-flow.coro { --rpc-line: var(--rpc-coro); }
.rpc-report .runtime-flow ol { padding: 0; margin: 12px 0; list-style: none; }
.rpc-report .runtime-flow li { position: relative; border-left: 2px solid var(--rpc-border); margin-left: 4px; padding: 0 0 10px 14px; }
.rpc-report .runtime-flow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.rpc-report .runtime-flow li::before { content: ""; position: absolute; left: -5px; top: .5em; width: 8px; height: 8px; border-radius: 100%; background: var(--rpc-line); }
.rpc-report .runtime-flow li b { display: block; color: var(--rpc-line); }
.rpc-report figcaption, .rpc-report .caption { color: var(--rpc-muted); font-size: .88rem; text-align: center; }
.rpc-report .source-panel { border: 1px solid var(--rpc-border); border-radius: 10px; margin-bottom: 10px; padding: 8px 12px; }
.rpc-report .source-panel summary { cursor: pointer; font-weight: 700; }
.rpc-report .source-panel .prose { margin-top: 10px; }
.rpc-report .chart-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 14px 0;
  background: var(--rpc-wash);
  border-radius: 10px;
  padding: 11px;
}
.rpc-report .chart-field { display: grid; gap: 4px; min-width: 0; }
.rpc-report .chart-controls label { font-weight: 700; }
.rpc-report .comparison-controls { grid-template-columns: minmax(0, 1fr); }
.rpc-report .host-comparison { margin: 18px 0; }
.rpc-report .chart-controls select {
  min-width: 0;
  width: 100%;
  border: 1px solid #9eb4b6;
  border-radius: 7px;
  padding: 6px;
  font: inherit;
  color: var(--rpc-ink);
  background: var(--rpc-paper);
}
.rpc-report .framework-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 10px 0; }
.rpc-report .framework-legend .key::before { content: ""; display: inline-block; border-radius: 100%; width: .66em; height: .66em; margin-right: .4em; background: var(--rpc-brpc); }
.rpc-report .framework-legend .coro::before { background: var(--rpc-coro); border-radius: 1px; }
.rpc-report .chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 22px; }
.rpc-report .chart svg { display: block; width: 100%; height: auto; overflow: visible; font-variant-numeric: tabular-nums; }
.rpc-report .chart .axis-label { fill: var(--rpc-muted); font-size: 13px; }
.rpc-report .chart .gridline { stroke: var(--rpc-border); stroke-width: 1; }
.rpc-report .chart .series { stroke-width: 2.5; fill: none; }
.rpc-report .chart .series.brpc { stroke: var(--rpc-brpc); }
.rpc-report .chart .series.coro { stroke: var(--rpc-coro); stroke-dasharray: 6 3; }
.rpc-report .chart .marker.brpc { fill: var(--rpc-brpc); }
.rpc-report .chart .marker.coro { fill: var(--rpc-coro); }
.rpc-report .chart .marker { stroke: white; stroke-width: 1; }
.rpc-report .empty-state { padding: 12px; color: var(--rpc-muted); background: var(--rpc-wash); border-radius: 9px; }
.rpc-report table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .87rem; font-variant-numeric: tabular-nums; }
.rpc-report th, .rpc-report td { text-align: left; vertical-align: top; padding: .52em .42em; border-bottom: 1px solid var(--rpc-border); overflow-wrap: anywhere; }
.rpc-report th { background: var(--rpc-wash); }
.rpc-report .run-table tbody tr:nth-child(even) { background: #f8fbfa; }
@media (max-width: 900px) {
  .rpc-report .report-grid { grid-template-columns: minmax(0, 1fr); }
  .rpc-report .report-toc { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 820px) {
  .rpc-report .flows, .rpc-report .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .rpc-report .run-table, .rpc-report .run-table tbody { display: block; }
  .rpc-report .run-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rpc-report .run-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--rpc-border);
    border-radius: 8px;
  }
  .rpc-report .run-table td { display: block; border: 0; }
  .rpc-report .comparison-table .comparison-case { grid-column: 1 / -1; }
  .rpc-report .run-table td::before { content: attr(data-label); display: block; color: var(--rpc-muted); }
}
@container (max-width: 580px) {
  .rpc-report .chart-controls { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 420px) {
  .rpc-report .chart .axis-label { font-size: 16px; }
  .rpc-report .chart-controls { padding: 8px; }
  .rpc-report .chart-controls select { font-size: .875rem; }
}
@media (max-width: 600px) {
  .rpc-report .report-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpc-report .prose table { font-size: .78rem; }
}
