/* "Does it count?"-style lists: every card or case with its verdict visible, the explanation one tap
   away (<details>, no script). Replaces long single-choice dropdowns that showed one answer at a time
   and were hard to use on phones. Colours come from the surrounding text; the verdict badge is the
   page's own pill class, so each page keeps its look.

   <div class="vlist">
     <section class="vlist-group" aria-labelledby="…">
       <h3 class="vlist-title" id="…">Group</h3>
       <ul class="vlist-rows">
         <li><details><summary><span class="vlist-name">Card</span><span class="[page pill]">Yes</span></summary>
             <p>Why.</p></details></li>
       </ul>
     </section>
   </div> */

.vlist {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    text-align: left;
}
@media (min-width: 900px) {
    .vlist--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}
.vlist-group {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    border-radius: 0.75rem;
    background: rgba(148, 163, 184, 0.05);
    background: color-mix(in srgb, currentColor 4%, transparent);
}
.vlist-title {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}
.vlist-rows {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vlist-rows details {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.05);
    background: color-mix(in srgb, currentColor 3%, transparent);
}
.vlist-rows details[open] {
    border-color: currentColor;
    border-color: color-mix(in srgb, currentColor 45%, transparent);
}
.vlist-rows summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}
.vlist-rows summary::-webkit-details-marker {
    display: none;
}
.vlist-name {
    flex: 1 1 auto;
    min-width: 0;
}
.vlist-rows summary > :not(.vlist-name) {
    flex: none;
    margin: 0;
    white-space: nowrap;
}
.vlist-rows summary::after {
    content: "+";
    flex: none;
    width: 1rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
}
.vlist-rows details[open] > summary::after {
    content: "\2212";
}
.vlist-rows summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 0.5rem;
}
.vlist-rows details > p {
    margin: 0;
    padding: 0 0.7rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}
.vlist-note {
    margin: 0.85rem auto 0;
    font-size: 0.82rem;
    line-height: 1.55;
    opacity: 0.8;
}
@media (max-width: 420px) {
    /* Long names and long badges ("Works against it") stack instead of squeezing each other. */
    .vlist-rows summary {
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }
    .vlist-name {
        flex-basis: calc(100% - 1.6rem);
    }
    /* name and toggle on the first line, the badge under the name */
    .vlist-rows summary::after {
        order: 1;
    }
    .vlist-rows summary > :not(.vlist-name) {
        order: 2;
    }
}
