/* ==========================================================================
   Assays index (assays.html, built by tools/assays/index.py)
   One Bone page: the homepage section's label, headline and line as the opening, then every assay as the
   homepage's image card in a plain grid (three across, two on tablet, one on phones). New assays are added
   by the script; nothing here depends on how many there are.
   ========================================================================== */
.site-header--solid { position: relative; background: var(--slate); }
.ax { background: var(--bone); color: var(--ink); }

/* ---- opening ---- */
.ax-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; align-items: end;
  padding: 104px var(--m) 0;
}
.ax-head .lbl {
  grid-column: 1 / -1; margin: 0 0 28px;
  font-family: 'Roboto Serif', Georgia, serif; font-weight: 380; font-size: 19px; line-height: 1.3; color: var(--slate);
}
.ax-head h1 {
  grid-column: 1 / 8; margin: 0; max-width: 12.6em;
  font-family: var(--display); font-stretch: 100%; font-weight: 460;
  font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.016em; text-wrap: balance;
}
.ax-head .ax-why { grid-column: 9 / -1; margin: 0; padding-bottom: .35em; font-size: 18px; line-height: 1.6; color: rgba(32, 37, 38, .82); }

/* ---- the list ---- */
.ax-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px;
  margin: 80px 0 0; padding: 0 var(--m) 128px; list-style: none;
}
.ax-list .plate { height: auto; aspect-ratio: 4 / 5; }
/* card heading: same type as the homepage card titles (deep-dives.css + bridge.css), as an h2 on this page */
.ax-list .plate__cap h2 {
  margin: 0; max-width: 10.6em; font-family: var(--display); font-stretch: 100%; font-weight: 500;
  font-size: clamp(25px, 2vw, 29px); line-height: 1.04; letter-spacing: -0.006em; text-wrap: balance;
}
.ax-list .plate__cap h2 a { color: inherit; }
.ax-list .plate__cap p { max-width: 14em; }

/* ---- tablet ---- */
@media (max-width: 1000px) {
  .ax-head { padding-top: 80px; }
  .ax-head h1 { grid-column: 1 / -1; }
  .ax-head .ax-why { grid-column: 1 / 10; margin-top: 28px; padding: 0; }
  .ax-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; padding-bottom: 96px; }
}
/* ---- phone ---- */
@media (max-width: 640px) {
  .ax-head { padding-top: 56px; column-gap: 0; }
  .ax-head .lbl { margin-bottom: 24px; }
  .ax-head .ax-why { grid-column: 1 / -1; font-size: 17px; }
  .ax-list { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; padding-bottom: 72px; }
  .ax-list .plate__cap h2 { font-size: 24px; }
}
