:root {
  --bg: #f7f6f3; --surface: #fff; --ink: #0c0e15; --muted: #63666f; --line: #e4e2dd; --line-soft: #ecebe7; --link: #2f56b0;
  --display: "Outfit", "Avenir Next", "Helvetica Neue", sans-serif;
  --body: "DM Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.15; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
a { color: var(--link); }
a:hover { color: #1f3f8c; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; margin-right: auto; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 24px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--link); }
.search input { height: 44px; width: 200px; padding: 0 16px; border: 1px solid #d9d7d1; border-radius: 999px; background: var(--bg); font: inherit; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { color: #fff; background: #23262f; }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.secondary:hover { background: var(--line-soft); }
@media (max-width: 800px) {
  .bar { flex-wrap: wrap; gap: 12px 20px; padding: 12px 0; }
  .search { display: none; }
  .nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; }
}

main { padding: 32px 0 64px; display: flex; flex-direction: column; gap: 32px; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.page-head p { font-size: 18px; color: var(--muted); max-width: 60ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.dark a { color: #fff; }
.card.dark .muted { color: #c9cbd2; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.tile { text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--ink); color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 46ch; }
.hero form { display: flex; gap: 10px; margin-top: 8px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 32px; } }
.postcode { height: 56px; flex: 1 1 200px; max-width: 320px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--surface); font: inherit; font-size: 18px; text-transform: uppercase; }
.hero .btn { height: 56px; padding: 0 28px; border-radius: 12px; font-size: 17px; }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .n { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; }
.stat .l { font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.bar-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.bar-split .aye { background: var(--ink); }
.bar-split .no { background: #9a9da6; }

.list { display: flex; flex-direction: column; }
.list > * { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.list > :first-child { border-top: 0; }
.list a:hover .title { color: var(--link); }
.list .title { font-weight: 500; }
.list .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list .meta { font-size: 14px; color: var(--muted); }
.list .end { font-size: 14px; color: var(--muted); white-space: nowrap; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge.aye { background: var(--ink); color: #fff; }
.badge.no { border: 1.5px solid var(--ink); }
.badge.none { background: var(--line-soft); color: var(--muted); }
.party { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }

.profile { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile .avatar { width: 96px; height: 96px; }
.profile .who { display: flex; flex-direction: column; gap: 6px; }
.profile .facts { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.profile .actions { margin-left: auto; display: flex; gap: 12px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 0 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bars > div { display: grid; grid-template-columns: 150px 1fr 90px; gap: 14px; align-items: center; font-size: 15px; }
.bars .track { height: 14px; border-radius: 7px; background: var(--line-soft); overflow: hidden; }
.bars .fill { height: 100%; background: var(--ink); }
.bars .amt { text-align: right; font-weight: 600; }
@media (max-width: 600px) { .bars > div { grid-template-columns: 110px 1fr 70px; } }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 14px; border-top: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { height: 44px; padding: 0 14px; border: 1px solid #d9d7d1; border-radius: 10px; background: var(--surface); font: inherit; font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip[aria-current], .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; color: var(--muted); }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mp-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.mp-card:hover { border-color: var(--ink); color: inherit; }
.mp-card .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-card .name { font-weight: 600; }
.mp-card .meta { font-size: 14px; color: var(--muted); }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 22px; }
.notice { padding: 14px 18px; border-radius: 12px; background: #fff4d6; border: 1px solid #f1d58a; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; }
