/* Legislator Quiz (house style, Oct 2026). Shares the .al-* pieces in alignment.css. */
.qz { max-width: 820px; }
.qz-progress { display: flex; justify-content: space-between; font-size: 14px; color: #566271; font-variant-numeric: tabular-nums; }
.qz-track { height: 8px; background: #e7ebef; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.qz-track span { display: block; height: 100%; background: #1e3a5f; border-radius: 99px; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .qz-track span { transition: none; } }
.qz-sofar { font-size: 13px; color: #566271; margin: 8px 0 0; }
.qz-sofar:empty { display: none; }
#qz-card { margin-top: 18px; }
.qz-bill { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.qz-no { font-size: 15px; font-weight: 800; color: #1e3a5f; }
.qz-year { font-size: 13px; font-weight: 700; color: #566271; text-transform: uppercase; letter-spacing: .06em; }
.qz-title { font-size: clamp(20px, 3vw, 24px); font-weight: 700; margin: 6px 0 14px; line-height: 1.25; text-wrap: balance; }
.qz-note { border: 1px solid #d2d8df; border-left: 4px solid #3f5b7d; border-radius: 8px; background: #f7f9fb; padding: 14px 16px; }
.qz-note > p { margin: 8px 0 0; }
.qz-note-head { display: flex; align-items: center; gap: 8px; color: #3f5b7d; }
.qz-note-head b { font-size: 14px; }
.qz-ai { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #566271; border: 1px solid #d2d8df; border-radius: 99px; padding: 1px 8px; background: #fff; }
.qz-example { margin-top: 12px; background: #fbf3df; border: 1px solid #ecd9a6; border-radius: 6px; padding: 10px 12px; }
.qz-example b { font-size: 13px; color: #5c4510; }
.qz-example p { margin: 4px 0 0; font-size: 14px; }
.qz-args { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.qz-arg { border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.qz-arg b { display: flex; align-items: center; gap: 6px; }
.qz-arg p { margin: 4px 0 0; }
.qz-arg small { display: block; margin-top: 6px; color: #566271; font-style: italic; }
.qz-arg.s { background: #e2f1e8; } .qz-arg.s b { color: #1d7447; }
.qz-arg.o { background: #fbe6e3; } .qz-arg.o b { color: #b3261e; }
.qz-choices { display: grid; gap: 10px; margin-top: 18px; }
.qz-choice { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 16px; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.qz-choice.s { background: #1d7447; color: #fff; }
.qz-choice.o { background: #b3261e; color: #fff; }
.qz-choice.k { background: #fff; color: #15202c; border-color: #d2d8df; }
.qz-choice:hover { filter: brightness(1.08); }
.qz-choice.k:hover { border-color: #1e3a5f; filter: none; }
.qz-choice:focus-visible { outline: 3px solid #d8a62a; outline-offset: 2px; }
.qz-foot { margin: 14px 0 0; text-align: center; }
.qz-res-title { font-size: 22px; color: #1e3a5f; margin: 0 0 6px; }
.qz-sub { font-size: 16px; margin: 20px 0 0; }
.qz-mine { background: #fbf3df; }
a.al-rank-name { text-decoration: none; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
/* v2: organization mode */
.qz-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.qz-mode select { flex: 1 1 260px; width: auto; }
.qz-mode .al-note { flex-basis: 100%; }
.qz-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding: 14px 16px; border-radius: 8px; }
.qz-reveal > div { flex: 1 1 200px; }
.qz-reveal b { display: block; font-size: 16px; }
.qz-reveal span { font-size: 14px; }
.qz-reveal.s { background: #e2f1e8; color: #1d7447; } .qz-reveal.o { background: #fbe6e3; color: #b3261e; }
.qz-reveal .al-svg { width: 22px; height: 22px; }
.qz-lists { margin-top: 16px; }
.qz-orgnote { margin-top: 14px; }
/* v3: reveal shows both positions in their own colors */
.qz-reveal { background: #f7f9fb; border: 1px solid #d2d8df; border-left: 4px solid #3f5b7d; color: #15202c; }
.qz-reveal.s { background: #f7f9fb; border-left-color: #1d7447; color: #15202c; }
.qz-reveal.o { background: #f7f9fb; border-left-color: #b3261e; color: #15202c; }
.qz-out { display: block; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.qz-reveal.s .qz-out { color: #1d7447; } .qz-reveal.o .qz-out { color: #b3261e; }
.qz-sides { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.qz-pos { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 10px; border-radius: 99px; border: 1px solid transparent; }
.qz-pos b { display: inline; font-size: 14px; }
.qz-pos .al-svg { width: 15px; height: 15px; }
.qz-pos.s { background: #e2f1e8; color: #1d7447; border-color: #b9dcc6; }
.qz-pos.o { background: #fbe6e3; color: #b3261e; border-color: #f0c5bf; }
/* v4: auto-advance timer under the reveal */
.qz-reveal { position: relative; overflow: hidden; }
.qz-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.qz-timer span { display: block; height: 100%; width: 100%; background: currentColor; opacity: .35; transform-origin: left; animation: qz-count linear forwards; }
.qz-reveal.s .qz-timer { color: #1d7447; } .qz-reveal.o .qz-timer { color: #b3261e; }
@keyframes qz-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .qz-timer { display: none; } }
/* v5: modes and picker */
.qz-target { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid #d2d8df; border-radius: 99px; background: #fff; font-size: 15px; }
.qz-target .al-ava { width: 32px; height: 32px; }
.qz-pick-box { width: min(980px, 100%); padding: 22px 24px 26px; }
.qz-pick-title { font-size: 22px; color: #1e3a5f; margin: 0 44px 14px 0; }
.qz-pick-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; position: sticky; top: -22px; background: #fff; padding: 8px 0; z-index: 1; }
.qz-pick-tools input { flex: 1 1 260px; }
.qz-pick-h { font-size: 14px; font-weight: 700; color: #566271; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 8px; }
.qz-pick-tip { margin: 0 0 6px; }
.al-tile.qz-mine { background: #fbf3df; border-color: #ecd9a6; }
.al-tile small + small { margin-top: 2px; }
