/* Product index — every compound, grouped by research area, as plain links.
   Matches the Sep 11 system: matte black / off-white, Space Grotesk headings,
   JetBrains Mono for the small caps labels. Mobile first. */
.cp-pindex {
  margin: 0;
  background: #0a0a0a;
  color: #f0eee9;
}
.cp-pindex__inner {
  max-width: calc(1320px + 2 * clamp(16px, 4vw, 40px));
  margin: 0 auto;
  padding-block: clamp(48px, 7vw, 104px);
  padding-inline: clamp(16px, 4vw, 40px);
}
.cp-pindex__heading {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  color: #f0eee9;
}
.cp-pindex__intro {
  max-width: 60ch;
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-size: 1.02rem;
  line-height: 1.55;
  color: #a4a19a;
}

/* Multi-column rather than grid: the eight areas hold 1-7 compounds each, and
   a grid would size every row to its tallest group and leave large dead gaps
   under the short ones. Columns pack the groups tightly; break-inside keeps a
   group whole. One column on phones, widening with the viewport. */
.cp-pindex__grid {
  column-count: 1;
  column-gap: clamp(28px, 3.5vw, 40px);
}
@media (min-width: 600px) {
  .cp-pindex__grid {
    column-count: 2;
  }
}
@media (min-width: 1000px) {
  .cp-pindex__grid {
    column-count: 4;
  }
}

.cp-pindex__group {
  min-width: 0;
  padding-top: 16px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  border-top: 2px solid var(--cat, #f0eee9);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.cp-pindex__group-h {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-pindex__group-h a {
  color: #f0eee9;
  text-decoration: none;
}
.cp-pindex__group-h a:hover,
.cp-pindex__group-h a:focus-visible {
  color: #00a8e8;
  text-decoration: underline;
}
.cp-pindex__blurb {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #a4a19a;
}
.cp-pindex__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cp-pindex__item {
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #2a2926;
}
.cp-pindex__item:first-child {
  border-top: 0;
}
.cp-pindex__link {
  color: #f0eee9;
  font-size: 1.02rem;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cp-pindex__link:hover,
.cp-pindex__link:focus-visible {
  color: #00a8e8;
  text-decoration: underline;
}
.cp-pindex__oos {
  display: inline-block;
  margin-left: 8px;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a4a19a;
  white-space: nowrap;
}
