/* SWE-sweep research: Overview page only (the article). Loaded after paper.css, swv.css and figures.css.
   Order: lede, one paragraph, Figure 1 (the grading steps) on the first screen, how SWE-sweep scores a task (with the
   README's pseudocode), then one section per fix (meta line, h2, a short paragraph, one figure), thanks, and the links
   to Tasks and Method. */

html.paper .copy p.lede { margin-top: 0; }
html.paper .copy h2[id], html.paper .fix[id] { scroll-margin-top: 32px; }

/* ------------------------------------------------------------------ the scoring pseudocode: mono 12px between hairlines */

/* ------------------------------------------------------------------ Figure 7: the notes open from the end of the caption */
html.paper figcaption details.fig-notes { display: inline; }
html.paper details.fig-notes > summary { display: inline; cursor: pointer; color: var(--burgundy); white-space: nowrap; }
html.paper details.fig-notes > summary::-webkit-details-marker { display: none; }
html.paper details.fig-notes > summary::after { content: " ▸"; }
html.paper details.fig-notes[open] > summary::after { content: " ▾"; }
html.paper details.fig-notes > p { margin: 8px 0 0; line-height: 1.35; text-align: left; hyphens: manual; }

/* ------------------------------------------------------------------ the six fixes */
html.paper .fix { margin-top: 48px; }
/* the scoring explanation sits between paragraph 2 and Figure 1; the fixes start after a hairline */
html.paper .copy .tasks-wrap + section.fix, html.paper .copy p.fixes-lead { margin-top: 44px; padding-top: 26px; border-top: 0.6px solid var(--line); }
html.paper .copy .fix > p.fix-meta { margin: 0 0 3px; font-size: var(--type-foot); line-height: 1.3; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: 0.06em; text-transform: lowercase; font-variant-numeric: lining-nums; text-align: left; }
html.paper .copy .fix > h2 { margin-top: 0; }
html.paper .copy .fix > p { margin: 0 0 14px; hyphens: auto; text-align: justify; }
html.paper .copy .fix > figure { margin: 22px 0 0; }

/* ------------------------------------------------------------------ go deeper */
html.paper .deeper { display: block; margin: 40px 0 0; padding-top: 14px; border-top: 1.3px solid var(--ink); }
html.paper .deeper a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
html.paper .deeper a b { font-weight: 400; font-style: italic; color: var(--burgundy); font-size: var(--type-reading); }   /* card title */
html.paper .deeper a b::after { content: " →"; }
html.paper .deeper a span { font-size: var(--type-foot); line-height: 1.35; color: var(--muted); }
html.paper .deeper a:hover span { color: var(--ink); }

@media (max-width: 680px) {
  html.paper .copy .fix > p { text-align: left; hyphens: manual; overflow-wrap: break-word; }
}
@media (max-width: 560px) {
  html.paper .fix { margin-top: 40px; }
}


/* "How SWE-sweep scores a task": a two-column glossary between hairlines; term on the left, definition on the right */
html.paper .copy dl.terms { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); margin: 12px 0 0; border-top: 0.6px solid var(--ink); border-bottom: 0.6px solid var(--ink); }
html.paper .copy dl.terms > dt, html.paper .copy dl.terms > dd { margin: 0; padding: 8px 0; border-top: 0.6px solid var(--line); }
html.paper .copy dl.terms > dt:first-of-type, html.paper .copy dl.terms > dt:first-of-type + dd { border-top: 0; }
html.paper .copy dl.terms > dt { padding-right: 12px; font-style: italic; color: var(--burgundy); }
html.paper .copy dl.terms > dt.zero-rule { color: var(--burgundy); }
html.paper .copy dl.terms > dd { text-align: left; hyphens: manual; }
@media (max-width: 560px) {
  html.paper .copy dl.terms { grid-template-columns: minmax(0, 1fr); }
  html.paper .copy dl.terms > dd { padding-top: 0; border-top: 0; }
}

