.matrix-shell { width: min(81rem, calc(100% - 3rem)); }
.matrix-intro { padding-block: clamp(2.25rem, 6vw, 4rem) 1.7rem; }
.matrix-intro h1 { font-size: clamp(2rem, 5.6vw, 3.85rem); }
.matrix-intro p { max-width: 58ch; }

.matrix-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .9rem 1.1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--panel);
}
.matrix-filters .field { flex: 1 1 11rem; }
.matrix-views { flex: 0 0 auto; }
.matrix-views > div { display: flex; gap: .4rem; }
.matrix-views button { min-height: 2.8rem; }
.matrix-views button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.matrix-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-block-start: 1.5rem; }
.matrix-article h2 { margin: 0 0 .65rem; font-size: 1.25rem; letter-spacing: -.025em; }
.matrix-scroller {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--panel);
}
.matrix-scroller:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.matrix-table { width: 100%; min-width: 36rem; border-collapse: collapse; table-layout: fixed; }
.matrix-table--smoke { min-width: 62rem; }
.matrix-table th,
.matrix-table td {
  padding: .68rem .75rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.matrix-table th { background: var(--result); font-size: .9rem; }
.matrix-table--smoke th:nth-child(1) { width: 10%; }
.matrix-table--smoke th:nth-child(2),
.matrix-table--smoke th:nth-child(3) { width: 16%; }
.matrix-table--smoke th:nth-child(4) { width: 22%; }
.matrix-table--smoke th:nth-child(5),
.matrix-table--smoke th:nth-child(6) { width: 18%; }
.matrix-table td { font-size: .9rem; line-height: 1.46; }
.matrix-table tr > :last-child { border-inline-end: 0; }
.matrix-table tbody tr:last-child td { border-bottom: 0; }
.matrix-table tbody tr:nth-child(even) { background: #faf9f7; }
.matrix-table .empty-cell { color: var(--muted); }
.matrix-meta { display: block; margin-top: .25rem; color: var(--muted); font-size: .78rem; font-weight: 500; }

.matrix-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .8rem;
}
.matrix-column {
  border: 1px solid var(--line);
  border-radius: .75rem;
  overflow: hidden;
  background: var(--panel);
}
.matrix-column h3 { margin: 0; padding: .7rem .85rem; background: var(--result); font-size: .95rem; }
.matrix-column ul { margin: 0; padding: 0; list-style: none; }
.matrix-column li { padding: .6rem .85rem; line-height: 1.45; font-size: .9rem; }
.matrix-column li + li { border-top: 1px solid var(--line); }
.matrix-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 42rem) {
  .matrix-shell { width: calc(100% - 2rem); }
  .matrix-filters { padding: .85rem; }
}
