/* ParallelBench additions on top of the shared template (project.css).
   Keep project.css identical to _templates/project-page so template fixes can be copied over. */

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #E21500; outline-offset: 2px; }
::selection { background: #FBE7E4; color: #151515; }

/* ---------- Header extras ---------- */
.topnav a.is-active { color: #E21500; }

/* ---------- Hero extras ---------- */
.hero__authors a { color: #151515; text-decoration: underline; text-decoration-color: #D4D4D4; text-underline-offset: 4px; }
.hero__authors a:hover { color: #B01500; text-decoration-color: #B01500; }
.hero__affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.hero__affiliations span + span { margin-left: 0; }
.hero__affiliations a { color: inherit; text-decoration: none; }
.hero__affiliations a:hover { color: #B01500; }

/* ---------- Figures ---------- */
.figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid #D4D4D4; background: #FFFFFF; padding: 16px; }
.figure-grid .figure img { padding: 12px; }
.teaser img { padding: clamp(12px, 3vw, 32px); background: #FFFFFF; }
.figure figcaption { font-size: 14px; line-height: 1.5; text-align: center; }
.figure figcaption strong { color: #151515; }
.figure--narrow { max-width: 560px; width: 100%; margin: 0 auto; }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 16px; }
.figure-grid .figure figcaption { font-weight: 500; color: #151515; }
.figure-grid--pair { max-width: 720px; width: 100%; margin: 0 auto; }

/* ---------- Result subsections ---------- */
.subsection { display: flex; flex-direction: column; gap: 24px; }
.subsection + .subsection { margin-top: 32px; }
.subsection__title { margin: 0; padding-bottom: 10px; border-bottom: 2px solid #151515; font-size: 22px; font-weight: 700; color: #151515; }
.card--insight { border-left: 3px solid #E21500; }

/* ---------- Task category cards ---------- */
.code-card__desc { margin: 0; padding: 14px 18px; border-bottom: 1px solid #D4D4D4; font-size: 14px; line-height: 1.55; }
.code-card__body pre { white-space: pre-wrap; }
.code-card__example { margin: 0; padding: 12px 18px 0; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #E21500; }
.code-card__more { border-top: 1px solid #D4D4D4; margin-top: auto; }
.code-card__more summary { padding: 14px 18px; font-size: 14px; font-weight: 700; color: #151515; cursor: pointer; }
.code-card__more summary:hover { color: #E21500; }
.code-card__more[open] summary { border-bottom: 1px solid #D4D4D4; }

/* ---------- Footer extras ---------- */
.footer__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Leaderboard card ---------- */
.resource__summary h3.resource__title { font-family: var(--font-sans); font-size: 20px; font-weight: 700; }

/* ---------- Abstract ---------- */
/* Justified like the original page; hyphenation (needs <html lang="en">) avoids wide word gaps. */
#abstract .prose p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* ---------- Section ledes ---------- */
/* Wider than the template's 64ch, and balanced so no line ends with one or two orphaned words. */
.section__lede { max-width: 84ch; text-wrap: balance; }
