/* Show just one kind of test: a pill each, which wrap however many kinds there come to be */
.kinds { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0 0; }
.kinds button { padding: .3rem .95rem; font-size: .875rem; }
.kinds [aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (hover: hover) {
  .kinds [aria-pressed=true]:hover { background: var(--blue-deep); }
}

/* Every test is a card with its modules under it, as many to a row as the window has room
   for, so the page fills a desktop with three tests or thirty. The cards in a row share
   their rows, so their names, lines and modules start level whatever wraps. */
.tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.test { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.25rem .6rem; }
.test[hidden] { display: none; }
.test h2 { margin: .25rem 0 0; font-size: 1.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.test sup { margin-left: .04em; font-size: .45em; font-weight: 400; line-height: 0; vertical-align: 1.05em; }
.test p { margin: .35rem 0 .9rem; color: var(--muted); }
.test ul { list-style: none; margin: 0; padding: 0; }
.test li { border-top: 1px solid var(--line); }

/* a module is a row that lifts out of the card under the pointer, its lines giving way,
   with the same arrow as the front page's cards */
.test li a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; margin: 0 -.6rem; padding: .65rem .6rem; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .12s; }
.test li a strong { line-height: 1.3; }
.test li a span { grid-column: 1; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.test li a::after { content: ''; grid-area: 1 / 2 / 3; width: 2rem; height: 2rem; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232f4bd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 55% no-repeat var(--blue-soft); transition: background-color .12s; }
:root[data-theme=dark] .test li a::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238ea2ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); }
.test li a:hover, .test li a:focus-visible { background: var(--raised); outline: 0; }
.test li:has(a:hover, a:focus-visible), .test li:has(a:hover, a:focus-visible) + li { border-top-color: transparent; }
.test li a:hover::after, .test li a:focus-visible::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); background-color: var(--blue); }
.test li a:active { translate: 0 1px; }

@media (max-width: 640px) {
  .test { padding: 1rem 1rem .5rem; }
}
