/* Shared styles of the report, on top of the site's own (site/base.css, site/report.css, copied from the site
   repository and never edited here). Sections add their own rules in sections/<id>/section.css, scoped under
   their root: [data-section="<id>"].

   Color has four jobs in this report and no others:
     verdict   the board's pass and fail            --v-pass (bone), --v-fail (ember)
     action    the kind of a tool call, EBO's seven --cat-inspect ... --cat-other
     focus     the thing under examination, a caveat --primary (the institute's amber), once per figure
     nothing   ink, the three surfaces, hairlines
   Harness versions get no hue: 14 cannot be told apart. Identify them by position and label, and mark the two
   archive arms. The six category hues pass the dataviz validator on #100e0c. */
body.is-report {
  --v-pass: #d5d0ca;
  --v-fail: #c8553d;
  --cat-inspect: #5a8cf5;
  --cat-edit: #e06c17;
  --cat-read: #25a892;
  --cat-check: #a8911a;
  --cat-shell: #d35d94;
  --cat-vcs: #9085e9;
  --cat-other: #7d7771;
  --cat-compaction: #f2f0ec;
  --verdict-present: #d5d0ca;
  --verdict-absent: #5c5651;
  --verdict-unknown: #2e2a27;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: Archivo, "Archivo Local", "Helvetica Neue", Arial, sans-serif;
}
@font-face { font-family: "Archivo Local"; src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

/* The site's base.css treats a canvas inside .fig as a decorative layer: absolutely positioned, full size and
   invisible until its script adds .is-live. A report figure's canvas is content, so undo that here. */
.report .fig canvas { position: static; inset: auto; width: auto; height: auto; opacity: 1; transition: none; }

/* ---------- a section of the report ---------- */
.sec { scroll-margin-top: calc(var(--head) + var(--bar) + 8px); min-width: 0; }
.sec[data-state="loading"] { min-height: 40vh; }
.sec-lead { display: block; }
/* A section's opening row: its name in the rail under a strong rule, as the Dynamo report's major rows. */
.report .row.major > .rail h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }
.report .row.major > .rail .label { display: block; margin-bottom: 10px; }
.report .pending { color: var(--ink-3); text-decoration-style: dotted; cursor: default; }
.report .arch { display: inline-block; margin-left: 8px; padding: 2px 6px; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 60%, transparent); border-radius: var(--r-sm); vertical-align: 0.1em; white-space: nowrap; }
.report .src { font: 400 11.5px/1.5 var(--mono); color: var(--ink-3); max-width: none; }
.report .src a { color: var(--ink-2); }
.report .wide { max-width: none !important; }
.report kbd { font: 500 12px/1 var(--mono); padding: 2px 5px; box-shadow: 0 0 0 1px var(--rule); border-radius: var(--r-sm); color: var(--ink-2); }
.report ::selection { background: var(--primary); color: var(--on-primary); }
.report .btn { transition: box-shadow 0.2s var(--ease), scale 0.12s var(--ease); }
.report .btn:active { scale: 0.97; }
.report a.btn { text-decoration: none; }

/* A section that is not there yet, or failed to load */
.sec-placeholder { padding: 40px 0 8px; margin-top: 72px; border-top: 2px solid var(--rule-strong); display: grid; gap: 10px; }
.sec-placeholder h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }
.sec-placeholder p { color: var(--ink-3); font-size: 15px; max-width: 60ch; }
@media (min-width: 1040px) { .sec-placeholder { grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); column-gap: var(--s-2xl); } }

/* Continue links between sections */
.report .next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); }
.report .next p { font-size: 15px; color: var(--ink-3); max-width: 52ch; }

/* The cover's key numbers reuse .ledger from the site's report styles */
.report .cover .ledger { margin-top: var(--s-xl); }
.report .cover h1 { max-width: 16ch; }

@media (prefers-reduced-motion: reduce) { .report .btn { transition: none; } }

/* The connecting text the shell puts above Methods and Results (sections/<id>/lead.html) */
.lead-in-text { margin-top: 72px; padding: 22px 0 8px; border-top: 2px solid var(--rule-strong); display: grid; gap: 8px; }
.lead-in-text p:not(.label) { font-size: clamp(17px, 1rem + 0.35vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 62ch; }
.lead-in-text + * { margin-top: 0; }
@media (min-width: 1040px) { .lead-in-text { grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); column-gap: var(--s-2xl); } .lead-in-text .label { padding-top: 6px; } }
