/* Hand-drawn layer for the light sections (Abstract and below).
   Wobbly ink outlines, flat offset shadows, a slight tilt and a handwritten accent font.
   The dark hero and Scene sections keep their own look. */
:root {
  --sk-ink: #1b2333;
  --sk-shadow: 4px 5px 0 var(--sk-ink);
  --sk-shadow-hover: 6px 8px 0 var(--sk-ink);
  --sk-font: "Comic Neue", "Comic Sans MS", "Segoe Print", cursive;
  --sk-radius: 18px 26px 16px 24px / 24px 16px 26px 18px;
  --sk-radius-2: 24px 16px 22px 18px / 16px 24px 18px 26px;
}

/* cards: ink outline, uneven corners, flat offset shadow */
.sec:not(.sec-dark) .card,
.stats li, .step, .pipeline li {
  border: 2px solid var(--sk-ink);
  border-radius: var(--sk-radius);
  box-shadow: var(--sk-shadow);
}
.sec:not(.sec-dark) .card:nth-of-type(even), .stats li:nth-child(even), .step:nth-child(even), .pipeline li:nth-child(even) {
  border-radius: var(--sk-radius-2);
}
.stats li, .step, .pipeline li { transition: translate .2s ease, box-shadow .2s ease; }
.stats li:hover, .step:hover, .pipeline li:hover { translate: -2px -3px; box-shadow: var(--sk-shadow-hover); }
.stats li:nth-child(odd), .step:nth-child(odd), .pipeline li:nth-child(odd) { rotate: -.7deg; }
.stats li:nth-child(even), .step:nth-child(even), .pipeline li:nth-child(even) { rotate: .6deg; }

/* numbers and labels in a handwritten face */
.stats b { font-family: var(--sk-font); font-size: 34px; letter-spacing: .01em; }
.stats li:nth-child(1) b { color: #0f9f8c; }
.stats li:nth-child(3) b { color: #e06a1c; }
.step-i, .pl-i {
  font-family: var(--sk-font); font-size: 17px; color: var(--sk-ink);
  background: var(--scan); border: 2px solid var(--sk-ink); box-shadow: 2px 2px 0 var(--sk-ink);
}
.pipeline li:nth-child(2) .pl-i, .step:nth-child(2) .step-i { background: #ffd27a; }
.pipeline li:nth-child(3) .pl-i, .step:nth-child(3) .step-i { background: #ffb3c7; }
.pipeline li:nth-child(4) .pl-i { background: #b9d8ff; }
.gg-head, .gg-row span, .bench-head h3 { font-family: var(--sk-font); }
.gg-head { font-size: 14px; letter-spacing: .02em; }
.gg-row span { font-size: 15px; }
.bench-head h3 { font-size: 25px; }

/* flow arrows between pipeline steps: a small hand-drawn arrow */
.pipeline li:not(:last-child)::after {
  width: 24px; height: 16px; right: -22px; top: 30px; border: 0; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M2 9 C 8 6, 13 10, 19 8 M14 3 L20 8 L14 13' fill='none' stroke='%231b2333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* segmented tabs on light backgrounds */
.res-tabs { border: 2px solid var(--sk-ink); box-shadow: 3px 3px 0 var(--sk-ink); }
.res-tabs button { font-family: var(--sk-font); font-size: 15px; }
.res-tabs button.active { background: var(--sk-ink); color: var(--scan); }

/* example chips under the Results tabs */
.cmp-cases button { font-family: var(--sk-font); font-weight: 700; font-size: 15px; border: 2px solid var(--sk-ink); color: var(--sk-ink); }
.cmp-cases button.active { border-color: var(--sk-ink); box-shadow: 2px 2px 0 var(--sk-ink); }

/* the sweep-group grid */
.gg-cell { border: 2px solid var(--sk-ink); border-radius: 10px 14px 9px 13px / 13px 9px 14px 10px; }
.gg-cell.base { box-shadow: 0 0 0 2px var(--scan), 3px 3px 0 2px var(--sk-ink); }

/* BibTeX keeps its dark card with a teal offset */
.sec:not(.sec-dark) .card.bib { border-color: var(--sk-ink); box-shadow: 5px 6px 0 var(--scan-d); }
.copy { font-family: var(--sk-font); }

@media (max-width: 760px) {
  :root { --sk-shadow: 3px 4px 0 var(--sk-ink); --sk-shadow-hover: 3px 4px 0 var(--sk-ink); }
  .stats b { font-size: 26px; }
  .pipeline li:not(:last-child)::after { right: auto; left: 30px; top: auto; bottom: -15px; rotate: 90deg; }
  .gg-cell { border-width: 1.5px; border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .stats li, .step, .pipeline li { transition: none; }
}
