/* The research index only (templates/research-index.html links this after site.css). The source stays a markdown list under
   each audience heading; each item is a loose list item: the link, then its description as a second paragraph. Here that
   list becomes cards in two columns, the link as the card's headline, with the count of pages beside each heading. */

.research-index { grid-template-columns: minmax(0, 68rem); }
.research-index > :is(h1, .lede) { max-width: 46rem; }

.article.research-index > ul:not([class]) { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: none; display: grid; gap: 1rem; counter-reset: card; }
.research-index > ul > li { margin: 0; padding: 1.1rem 1.2rem 1.2rem; background: var(--card); display: grid; align-content: start; gap: 0.5rem; transition: background 160ms ease; }
.research-index > ul > li:hover, .research-index > ul > li:focus-within { background: var(--code); }
.research-index > ul > li p { margin: 0; max-width: none; }
.article.research-index > :is(h1, .lede) { max-width: 46rem; }
.research-index > ul > li > p:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.005em; }
.research-index > ul > li > p:first-child a { color: var(--ink); text-decoration: none; }
.research-index > ul > li > p:first-child a:hover, .research-index > ul > li > p:first-child a:focus-visible { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.research-index > ul > li > p:first-child a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.research-index > ul > li > p:not(:first-child) { color: var(--mute); font-size: 0.95rem; line-height: 1.5; }

/* Each audience heading is a band: the heading, a hairline, then its cards. */
.research-index > h2 { display: flex; align-items: baseline; gap: 0.9rem; margin: 2.6rem 0 1rem; }
.research-index > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); transform: translateY(-0.2em); }

/* Jump links: one chip per audience group, wrapping on a phone. */
.article.research-index > .jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; max-width: none; }
.research-index .jump a { display: inline-flex; gap: 0.45rem; padding: 0.5rem 0.8rem; min-height: 2.75rem; align-items: center; background: var(--card); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.research-index .jump a:hover, .research-index .jump a:focus-visible { background: var(--code); }
.research-index .jump a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.research-index > h2 { scroll-margin-top: 1rem; }

@media (min-width: 52rem) {
  .article.research-index > ul:not([class]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Wide screens (#3637 lens 3): the card grid grows to three across from 1500px and the page to 96rem, so the cards
   fill a 1920 window instead of sitting in a 68rem strip. */
@media (min-width: 1500px) {
  .article.research-index { grid-template-columns: minmax(0, 96rem); max-width: 100rem; }
  .article.research-index > ul:not([class]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
