/* Product key facts: a board of measured values (no scores) and link lists. */

@layer components {
:is(.facts, .lists) {
  /* Cell lines are drawn by the cells, so a short last row leaves white, not a grey block. */
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  & > :is(div, li) { background: var(--bg); padding: var(--space-4); box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
}

.facts {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  & dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
  & dd { margin: var(--space-1) 0 0; font-size: 1.75rem; font-weight: 800; font-stretch: var(--narrow); line-height: 1.15; }
  & dd small { display: block; font-size: 0.8rem; font-weight: 400; font-stretch: 100%; color: var(--muted); margin-top: var(--space-1); }
  & dd .fact-missing { display: block; font-size: 1rem; font-weight: 500; font-stretch: 100%; color: var(--muted); padding-top: 0.35rem; }
  & + .facts { margin-top: var(--space-4); }
}

.lists { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
}
