/* Polish pass: info pages (lab, calc, help, terms, vote, track) */

/* Shared page header: balanced h1 wrap */
.phead h1{text-wrap:balance}
.phead p{text-wrap:pretty}

/* FAQ (help + calc + terms): separate cards instead of touching borders */
.faq .fgroup,.calc-faq .faq{display:flex;flex-direction:column;gap:10px}
.faq .fgroup + .fgroup{margin-top:28px}
.faq .fgroup h3{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 4px 4px}
.faq details > summary{font-weight:600}
.faq details p{color:var(--ink2);max-width:68ch}
.faq details p + p{margin-top:10px}

/* Calculator: preset chips in an even grid on phones, no lone chip rows */
@media (max-width:620px){
  .calc .chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .calc .chips:has(> :nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  .calc .chips button{padding:8px 4px;text-align:center;white-space:nowrap}
}

/* Lab cards: same-height reference block whether it shows a short code or a report no. */
.lab-ref{min-height:58px}
.lab-code small{letter-spacing:.02em}
.lab-code code.long{font-size:12.5px;letter-spacing:.02em}

/* Vote: keep tag, count and button aligned, tags never squeeze names */
.vote-tag{font-size:11px;padding:2px 8px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--hair)}
.vote-n{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){.calc .chips button,.vote-btn{transition:none!important}}

/* Round 2: touch targets, tracking, focus, tabular numbers */
@media (max-width:620px){
  .calc .chips button,.vote-btn,.lab-jump a,.lab-jump button{min-height:44px}
}
.phead h1{letter-spacing:-.03em}
.lab-pur,.lab-date,.calc-out,.lab-stats,.track{font-variant-numeric:tabular-nums}
.calc .chips button:focus-visible,.vote-btn:focus-visible,.lab-card a:focus-visible,.track input:focus-visible,.calc select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Terms: breathing room under the header, readable line length */
.faq.terms{margin-top:clamp(8px,2vw,24px);max-width:72ch}
.faq.terms p{text-wrap:pretty}
/* Vote: "Show all" disclosure (pairs with info-js.json proposal) */
.vote-more{margin-top:4px}
.vote-more > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;margin-top:12px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--hair);font-weight:600;color:var(--ink)}
.vote-more > summary::-webkit-details-marker{display:none}
.vote-more > summary:hover{background:var(--bg)}
.vote-more[open] > summary{display:none}
.vote-more > summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
