*{box-sizing:border-box}body{margin:0;font:19px/1.45 -apple-system,system-ui,"Segoe UI",Roboto,sans-serif;background:#f3f5f9;color:#1b1f27}
header{background:#1f3a68;color:#fff;padding:22px 18px}header h1{margin:0;font-size:28px}header p{margin:6px 0 0}
main{max-width:760px;margin:auto;padding:16px}form{display:flex;flex-direction:column;gap:10px}label{font-weight:600}
input{font-size:20px;padding:14px;border:2px solid #9aa7bd;border-radius:10px}button{font-size:20px;padding:14px;border:0;border-radius:10px;background:#1f3a68;color:#fff;font-weight:700}
#msg{margin:14px 0;font-weight:600}.level{margin:22px 0;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 1px 4px #0002}
.level>h2{margin:0;padding:12px 16px;color:#fff;font-size:24px}.local>h2{background:#2e7d4f}.state>h2{background:#b3541e}.federal>h2{background:#1f3a68}
.card{display:flex;gap:14px;padding:16px;border-top:1px solid #e3e7ee}.card img{width:84px;height:104px;object-fit:cover;border-radius:8px;background:#dde}
.card h3{margin:0;font-size:21px}.role{color:#555;font-weight:600}.card a{color:#1f4fa8;word-break:break-word}.card p{margin:4px 0}
.R{color:#b22}.D{color:#1a4fbf}.note{padding:14px 16px;background:#fff8e1}details{margin-top:6px}ol{padding-left:22px;margin:6px 0}
.matched{font-size:16px;color:#444}

.votes{padding-left:0;list-style:none}.votes li{margin:.5em 0;font-size:.92em}.vv{display:inline-block;min-width:3.2em}.vv.y{color:#1a7f37}.vv.n{color:#c62828}.vv.o{color:#777}

.tabs{display:flex;gap:8px;margin-bottom:14px}.tab{flex:1;background:#dfe4ee;color:#1f3a68}.tab.on{background:#1f3a68;color:#fff}
.hit{display:flex;gap:16px;width:100%;text-align:left;background:#fff;color:#1b1f27;font-weight:400;margin:10px 0;padding:12px;border-left:8px solid;box-shadow:0 1px 4px #0002;cursor:pointer}
.hit.federal{border-color:#1f3a68}.hit.state{border-color:#b3541e}.hit img,.nophoto{width:120px;height:150px;object-fit:cover;border-radius:8px;background:#dde;flex:none}
.nophoto{display:flex;align-items:center;justify-content:center;color:#666;font-size:15px}.hit h3{margin:2px 0;font-size:22px}
.lvl{display:inline-block;color:#fff;font-size:15px;font-weight:700;padding:2px 8px;border-radius:6px}.hit.federal .lvl{background:#1f3a68}.hit.state .lvl{background:#b3541e}
.card.big{flex-direction:column}.card.big img{width:100%;max-width:300px;height:auto}.back{background:#dfe4ee;color:#1f3a68;margin:6px 0}
[hidden]{display:none!important}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-gutter:stable;overflow-x:hidden}
body{overflow-wrap:anywhere}.card>div{min-width:0;flex:1}
input,select,textarea{font-size:max(16px,1em)}
#msg{min-height:1.45em}form{min-height:150px}
.card img,.card .ph{width:84px;height:104px;flex:none;aspect-ratio:84/104}
.card .ph{border-radius:8px;background:#dde}
.card.big img,.card.big .ph{width:min(100%,300px);height:auto;aspect-ratio:4/5}
.hit img{aspect-ratio:4/5}
.ext{font-size:.8em;color:#555;white-space:nowrap}
details>div{min-height:1.5em}summary{cursor:pointer;min-height:44px;display:flex;align-items:center}

details[data-ids]>div{min-height:15.5em}details[data-ids]>div:has(ol){min-height:0}

.tabs .tab{font-size:17px;padding:12px 6px}select{font-size:20px;padding:14px;border:2px solid #9aa7bd;border-radius:10px;background:#fff;color:#1b1f27}
.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{font-size:17px;padding:10px 14px;background:#dfe4ee;color:#1f3a68;border-radius:20px}.chip.on{background:#1f3a68;color:#fff}
.grp{margin:22px 0 6px;padding:8px 14px;color:#fff;border-radius:10px;font-size:21px}.grp.federal{background:#1f3a68}.grp.state{background:#b3541e}
.sub{margin:0;padding:10px 16px;background:#e6f2ea;color:#2e7d4f;font-size:20px;border-top:1px solid #d3e6da}
#msg{min-height:1.45em}

.tip{background:#e8f1ff;border:2px solid #1f3a68;border-radius:10px;padding:10px 12px;font-size:17px;line-height:1.4;min-height:5.6em;contain:layout}
.tiplink{display:inline;font-size:inherit;padding:2px 8px;margin:0 2px;border-radius:6px;background:#1f3a68;color:#fff;font-weight:700}
.src{padding:10px 16px;margin:0;font-size:16px;color:#444;border-top:1px solid #e3e7ee}
#out{display:flow-root}#out>:first-child{margin-top:22px}
#out{min-height:100vh}

footer{max-width:760px;margin:0 auto;padding:4px 16px 24px}.privacy{font-size:14px;color:#555}.privacy summary{min-height:44px;color:#1f3a68;font-weight:600}.privacy p{margin:0 0 8px}
.src,.card small,.votes~small,details small{font-size:14px;color:#555}

.ac{position:relative}.ac input{width:100%}#cs{position:absolute;z-index:20;left:0;right:0;top:100%;margin:4px 0 0;padding:0;list-style:none;background:#fff;border:2px solid #9aa7bd;border-radius:10px;box-shadow:0 4px 14px #0003;max-height:60vh;overflow:auto}#cs li{padding:12px 14px;border-top:1px solid #e3e7ee;cursor:pointer}#cs li:first-child{border-top:0}#cs li:hover{background:#eef2f8}#cs li.none{color:#666;cursor:default}
.tabs .tab{font-size:16px;padding:12px 4px}
