/* Match quiz (Lane MQ1): /match/quiz and /match/quiz/result. Colors and type come from site.css. Party color appears on the party tag only. */
.mq-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mq-alt{font-size:16px}
.mq-priv{max-width:680px}
.mq-list{margin:0;padding-left:22px;max-width:760px;display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:25px}
.mq-form{display:flex;flex-direction:column;gap:24px;min-width:0;max-width:820px}

/* one question */
.mq-q{margin:0;min-width:0;padding:20px 20px 16px;background:var(--raised);border:1px solid var(--line);border-radius:6px;display:flex;flex-direction:column;gap:14px}
.mq-q legend{float:left;width:100%;padding:0;display:flex;flex-direction:column;gap:8px}
.mq-q legend+*{clear:both}
.mq-ask{font-family:var(--display);font-weight:600;font-size:clamp(19px,4.6vw,23px);line-height:1.35;color:var(--ink);text-wrap:pretty}
.mq-ask:focus{outline:none}
.mq-opts{display:flex;flex-direction:column;gap:8px}
.mq-opt{font-weight:400;display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:12px 14px;border:1px solid var(--edge);border-radius:6px;background:var(--raised);font-size:16px;line-height:24px;cursor:pointer;transition:background .15s,border-color .15s}
.mq-opt:hover{border-color:var(--brand)}
.mq-opt input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--brand)}
.mq-l{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--inset);font-family:var(--data);font-weight:500;font-size:13px;color:var(--brand)}
.mq-skip .mq-l{display:none}
.mq-skip{color:var(--muted);border-style:dashed}
.mq-opt:has(input:checked){background:var(--inset);border-color:var(--brand);box-shadow:inset 4px 0 0 var(--brand)}
.mq-opt:has(input:checked) .mq-l{background:var(--brand);color:#fff}
.mq-opt:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.mq-lot{font-weight:400;display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;color:var(--muted);cursor:pointer}
.mq-lot input{width:20px;height:20px;margin:0;accent-color:var(--brand)}
.mq-laws summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:15px;font-weight:600;color:var(--brand)}
.mq-laws[open]{display:flex;flex-direction:column;gap:8px}
.mq-cap{caption-side:top;text-align:left;font-size:14px;line-height:21px;color:var(--muted);padding-bottom:6px}
.mq-map-t,.mq-t{border-collapse:collapse;width:100%;font-size:15px;line-height:22px}
.mq-map-t th,.mq-map-t td,.mq-t th,.mq-t td{border-top:1px solid var(--line);padding:8px 10px 8px 0;text-align:left;vertical-align:top}
.mq-map-t thead th,.mq-t thead th{border-top:0;font-size:13px;color:var(--muted);font-weight:600}
.mq-map-t th[scope=row]{font-weight:600}
.mq-map-t th[scope=row] .small{display:block;font-weight:400}
.mq-map-t td{font-family:var(--data);font-weight:500;font-size:14px;white-space:nowrap}
.mq-map-t abbr{text-decoration:none}
.mq-c-no{color:var(--no)}.mq-c-skip{color:var(--muted)}
.mq-c-yes{color:var(--brand)}

/* with the script: one question a screen */
.mq-nav{display:none}
.mq-js .mq-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:4px}
.mq-js .mq-end{display:none}
.mq-back{min-height:44px;padding:0 16px;background:var(--raised);color:var(--brand);border:1px solid var(--edge);border-radius:4px;font:inherit;font-weight:600;font-size:16px;cursor:pointer}
.mq-js .mq-next{margin-left:auto}
.mq-js .mq-q{animation:mq-in .25s ease-out}
@keyframes mq-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.mq-js .mq-q{animation:none}.mq-opt{transition:none}}
.mq-progress{display:flex;flex-direction:column;gap:6px;scroll-margin-top:80px}
.mq-pnum{font-family:var(--data);font-weight:500;font-size:14px;color:var(--muted)}
.mq-bar{-webkit-appearance:none;appearance:none;width:100%;height:8px;border:0;border-radius:4px;background:var(--inset);overflow:hidden}
.mq-bar::-webkit-progress-bar{background:var(--inset);border-radius:4px}
.mq-bar::-webkit-progress-value{background:var(--brand);border-radius:4px;transition:width .25s}
.mq-bar::-moz-progress-bar{background:var(--brand);border-radius:4px}
.mq-again{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}

/* the result */
.mq-people{display:flex;flex-direction:column;gap:8px;max-width:760px}
.mq-who{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:10px 12px;background:var(--raised);border:1px solid var(--line);border-radius:4px}
.mq-where{font-size:13px;color:var(--muted);font-weight:600;min-width:84px}
.mq-fig{font-family:var(--data);font-weight:500;font-variant-numeric:tabular-nums}
.mq-nofig{font-size:14px;color:var(--muted)}
.mq-fig-box{margin:0;display:flex;flex-direction:column;gap:10px;max-width:1000px}
.mq-mapbox{position:relative;background:var(--raised);border:1px solid var(--line);border-radius:6px;padding:8px;min-height:120px}
.mq-mapbox.mq-drawn{aspect-ratio:975/610;min-height:0}
.mq-svg{display:block;width:100%;height:auto;touch-action:manipulation}
.mq-svg path[data-k]{cursor:pointer}
.mq-pop{position:absolute;z-index:2;max-width:260px;padding:6px 10px;background:var(--ink);color:#fff;border-radius:4px;font-size:14px;line-height:20px;pointer-events:none;white-space:nowrap}
.mq-tip{font-size:15px;color:var(--muted);min-height:24px}
.mq-legend{display:flex;flex-direction:column;gap:6px;max-width:560px}
.mq-ramp{display:block;height:14px;border-radius:3px;border:1px solid var(--line);background:linear-gradient(90deg,#f2c230,#fff 50%,#0f5c4d)}
.mq-ends{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);font-weight:600}
.mq-keys{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;line-height:20px;color:var(--ink);margin-top:4px}
.mq-key{display:inline-flex;align-items:center;gap:8px}
.mq-sw{display:inline-block;width:14px;height:14px;border-radius:2px;border:1px solid var(--edge)}
.mq-sw-y{background:#f2c230}.mq-sw-w{background:#fff}.mq-sw-g{background:#0f5c4d}.mq-sw-n{background:#d5dcd8}.mq-sw-o{background:transparent;border:2px solid var(--ink)}
.mq-t td.mono{width:48px}
.mq-t td:nth-child(2){width:72px}
.mq-t th[scope=row]{font-weight:600}
.mq-cs{display:block;font-weight:400}
.mq-t th,.mq-t td{white-space:normal}.mq-t th[scope=row]{overflow-wrap:anywhere}.mq-t thead th{white-space:nowrap}.mq-t{table-layout:auto;min-width:0}
@media (max-width:480px){.mq-ask{font-size:18px;line-height:26px}.mq-q{padding:16px 14px 12px}.mq-opt{padding:10px 12px;font-size:15px}.mq-t th,.mq-t td{padding-right:6px;font-size:14px}.mq-where{min-width:0;width:100%}}

/* the last step (Lane RS1): up to three topics, then the box that adds the answers to the map, and the ZIP code */
.mq-hint{color:var(--muted)}
.mq-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mq-tp{min-height:44px;padding:10px 12px;align-items:center}
.mq-tp input{margin:0}
.mq-tp.mq-off{opacity:.55;cursor:not-allowed}
.mq-count{min-height:21px;font-family:var(--data);font-weight:500;color:var(--muted)}
.mq-keep{display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--inset);border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:4px}
.mq-keepl{display:flex;align-items:flex-start;gap:12px;min-height:44px;font-weight:600;font-size:16px;line-height:24px;cursor:pointer}
.mq-keepl input{width:22px;height:22px;margin:1px 0 0;flex:none;accent-color:var(--brand)}
.mq-keepnote{color:var(--ink);padding-left:34px}
.mq-zipf{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding-left:34px}
.mq-zipf label{font-weight:600;font-size:15px}
.mq-zip{width:132px;height:44px;padding:0 12px;border:2px solid var(--edge);border-radius:4px;background:var(--raised);color:var(--ink);font-family:var(--data);font-weight:500;font-size:18px;letter-spacing:.06em}
.mq-zip::placeholder{color:var(--hint);opacity:1;letter-spacing:0}
.mq-zip[aria-invalid=true]{border-color:var(--no)}
.mq-ziphint{color:var(--muted);flex-basis:100%}
.mq-ziphint.mq-bad{color:var(--no);font-weight:600}
.mq-added{display:inline-block;max-width:680px;background:var(--raised);border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:4px;padding:8px 12px;font-size:16px;font-weight:600}
@media (max-width:600px){.mq-top{grid-template-columns:minmax(0,1fr)}.mq-keepnote,.mq-zipf{padding-left:0}}

/* most aligned officials, branch by branch, and the officials of each place (Lane RS1, round 2) */
.mq-h3{font-size:18px;line-height:26px;margin:4px 0 0}
.mq-br{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;max-width:1000px}
.mq-mt td:nth-child(3){width:84px}
.mq-least summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:16px;font-weight:600;color:var(--brand)}
.mq-least[open]{display:flex;flex-direction:column;gap:8px}
.mq-offs{display:block;font-weight:400;margin-top:2px}
@media (max-width:760px){.mq-br{grid-template-columns:minmax(0,1fr)}}
.mq-say{flex-basis:100%;font-size:15px;line-height:22px}
.mq-mt caption,.mq-mt th:first-child,.mq-mt td:first-child{padding-left:10px}

/* where the answers place the visitor (Lane MQ4, quiz version 4): the diamond, drawn by lib/mq.js as inline SVG */
.mq-dia-box{display:flex;flex-direction:column;gap:8px;max-width:560px}
.mq-dia-fig{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;background:var(--raised);border:1px solid var(--line);border-radius:6px}
.mq-dia{display:block;width:100%;max-width:480px;height:auto;margin:0 auto}
.mq-dia-edge{fill:#e8eeeb;stroke:#0f5c4d;stroke-width:2;stroke-linejoin:round}
.mq-dia-ax{fill:none;stroke:#0f5c4d;stroke-width:1;stroke-dasharray:4 4;opacity:.55}
.mq-dia-mid{fill:none;stroke:#0f5c4d;stroke-width:1;opacity:.45}
.mq-dia-dot{fill:#f2c230;stroke:#14211d;stroke-width:2.5}
.mq-dia-c{fill:#0f5c4d;font-family:var(--text);font-weight:600;font-size:16px}
.mq-dia-s{fill:#4c5c56;font-family:var(--text);font-size:14px}
.mq-dia-say{font-size:16px}
.mq-dia-lab{display:inline-block;padding:4px 12px;border:2px solid var(--brand);border-radius:4px;font-family:var(--display);font-weight:600;font-size:20px;line-height:28px;color:var(--brand)}
.mq-dia-n{max-width:560px}
