:root {
  color-scheme: light;
  --paper: #f8f8f1;
  --ink: #172d25;
  --muted: #455950;
  --line: #d4ddd1;
  --forest: #153a30;
  --forest-hover: #245445;
  --accent: #eaf3ca;
  --white: #fffefa;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #438164; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.04; letter-spacing: -.045em; }
h3 { font-size: 1.04rem; letter-spacing: -.02em; }
p { color: var(--muted); }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-size: 1.38rem; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.brand-dot { color: #488560; }
nav { display: flex; align-items: center; gap: clamp(16px,3vw,36px); }
nav > a:not(.button), .site-footer a:not(.brand) { text-decoration: none; font-size: .91rem; font-weight: 650; }
nav > a:not(.button):hover, .site-footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; padding: 13px 20px; min-height: 46px; border: 1px solid transparent; border-radius: 10px; background: var(--forest); color: var(--white); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: normal; }
.button:hover:not(:disabled) { background: var(--forest-hover); }
.button-small { min-height: 41px; padding: 9px 14px; font-size: .86rem; gap: 9px; }
.text-link, .plain-button { text-underline-offset: 4px; font-weight: 700; font-size: .92rem; }
.text-link span { margin-left: 4px; }
.plain-button { color: var(--ink); border: 0; background: transparent; padding: 8px 2px; }
.plain-button:hover:not(:disabled) { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px,6vw,92px); padding: 52px 0 51px; }
.hero-copy { padding-bottom: 4px; }
.election-label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 25px; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.election-label > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #6c9a62; }
.election-divider { opacity: .6; }
.hero h1 { font-size: clamp(4rem,7.35vw,7.65rem); line-height: .91; margin-bottom: 25px; }
.hero h1 em { display: block; color: #2f6251; font-weight: 500; }
.hero-description { max-width: 425px; font-size: clamp(1rem,1.55vw,1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; margin-top: 28px; }
.hero-note { font-size: .84rem; margin-top: 17px; display: flex; flex-wrap: wrap; gap: 0 9px; }
.hero-image { min-width: 0; }
.hero-image img { width: 100%; height: clamp(355px,37vw,475px); object-fit: cover; object-position: 53% 50%; border-radius: 20px; background: #c5d3c6; }
.steps-section { padding: 35px 0 48px; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px 28px; margin-bottom: 20px; }
h2 { font-size: clamp(2.05rem,4vw,3rem); }
.section-title p { max-width: 36ch; font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.steps article { background: var(--white); border: 1px solid var(--line); padding: 18px 20px 20px; border-radius: 13px; }
.step-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #e8eee4; color: var(--forest); font-size: 1.33rem; line-height: 1; margin-bottom: 12px; }
.steps p { font-size: .9rem; margin-top: 5px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { justify-content: flex-start; min-height: 74px; flex-wrap: wrap; column-gap: 25px; row-gap: 9px; padding-block: 12px; }
.footer-inner .brand { margin-right: auto; font-size: 1.15rem; }
.flow-page { padding-block: clamp(24px,5vw,68px); }
.flow-panel { max-width: 740px; margin-inline: auto; padding: clamp(22px,5vw,46px); border: 1px solid var(--line); background: var(--white); border-radius: 18px; }
.flow-panel h1 { font-size: clamp(2.35rem,5vw,4rem); margin-bottom: 14px; }
.flow-panel > p + p, .policy h2 { margin-top: 18px; }
.flow-panel > p + .button { margin-top: 18px; }
.flow-panel p { font-size: .96rem; }
.policy h2 { font-size: 1.8rem; margin-bottom: 7px; }
.mcp-page { max-width: 1040px; }
.mcp-intro { margin-bottom: clamp(26px,5vw,46px); }
.mcp-intro h1 { font-size: clamp(2.7rem,7vw,5.8rem); margin-bottom: 14px; }
.mcp-intro p { max-width: 58ch; font-size: 1.12rem; }
.mcp-columns { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(20px,5vw,54px); }
.mcp-columns h2 { font-size: clamp(1.7rem,3vw,2.35rem); margin-bottom: 12px; }
.mcp-connect { min-width: 0; padding: clamp(18px,4vw,32px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.mcp-connect h3 { margin-bottom: 6px; }
.mcp-endpoint { margin-block: 16px 24px; padding: 10px 13px; border-radius: 8px; background: var(--accent); color: var(--forest); overflow-wrap: anywhere; }
.mcp-connect pre { overflow-x: auto; margin-block: 14px; padding: 14px; border-radius: 8px; background: var(--forest); color: var(--white); font-size: .88rem; }
.mcp-details { min-width: 0; }
.mcp-details section { padding-block: 18px; border-top: 1px solid var(--line); }
.mcp-details dl, .mcp-details ul { margin: 0; color: var(--muted); }
.mcp-details dt { font-weight: 700; color: var(--ink); }
.mcp-details dd { margin: 2px 0 12px; }
.mcp-details dd:last-child { margin-bottom: 0; }
.mcp-details ul { padding-left: 1.25rem; }
.mcp-details li + li { margin-top: 7px; }
.mcp-links { flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
@media (max-width: 760px) {
  .mcp-columns { grid-template-columns: 1fr; }
}
.quiz-progress { margin-bottom: 25px; }
.quiz-progress p { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .83rem; }
progress { accent-color: var(--forest-hover); width: 100%; height: 7px; }
.topic { color: #32634f; margin-bottom: 8px; font-weight: 750; }
.answer-options { display: grid; gap: 7px; margin: 20px 0 15px; }
.answer { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.answer:has(input:checked) { background: #eaf3e5; border-color: #5e8b6c; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--forest); flex-shrink: 0; width: 17px; height: 17px; margin: 0; }
.important-option, .consent-option { display: flex; align-items: flex-start; gap: 8px; font-size: .89rem; }
.important-option input, .consent-option input { margin-top: .18em; }
.flow-actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 21px; }
.flow-actions #skip { margin-left: auto; }
.match { border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-block: 10px; }
.match-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.match-title span { flex-shrink: 0; font-weight: 800; color: #305d4a; }
.match progress { height: 6px; display: block; margin: 7px 0 8px; }
.match p { font-size: .88rem; }
.match details { margin-top: 7px; font-size: .86rem; }
.match details ul { padding-left: 19px; }
.result-detail { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 750; }
.result-detail p { margin-block: 8px; }
form { margin-top: 12px; }
form > label:first-child { display: block; font-weight: 700; margin-bottom: 4px; }
form input:not([type=checkbox]) { width: min(100%, 320px); padding: 8px 11px; border: 1px solid #82988a; border-radius: 7px; background: white; color: var(--ink); }
#postcode { max-width: 130px; }
.consent-option { margin-block: 11px; }
.form-status:not(:empty), .message:not(:empty), #shared-result a { margin-top: 10px; }
.error { color: #982b1c; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 27px; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 63px; }
  nav > a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 30px 28px; gap: 22px; }
  .hero h1 { font-size: clamp(3.65rem,14vw,5.6rem); margin-bottom: 17px; }
  .election-label { margin-bottom: 18px; }
  .hero-actions { margin-top: 20px; }
  .hero-image img { height: clamp(216px,56vw,345px); }
  .section-title { align-items: flex-start; flex-direction: column; }
  .steps { grid-template-columns: 1fr; gap: 9px; }
  .steps-section { padding-block: 25px 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hero-image img { object-position: 44% 50%; }
.question-context { max-width: 58ch; }
.result-actions { flex-wrap: wrap; }
.result-coverage { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.match .match-issues { list-style: none; padding: 0; margin-bottom: 0; }
.match-issues li { padding-block: 8px; border-top: 1px solid var(--line); }
.match-issues li > strong { display: block; }
.match-issues a { font-weight: 650; margin-top: 2px; display: inline-block; }
#result-summary { margin-bottom: 14px; }
.parties-page { padding-block: clamp(34px, 6vw, 78px); }
.directory-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 24px; }
.directory-intro h1 { font-size: clamp(3.25rem, 8vw, 6.2rem); margin-bottom: 12px; }
.directory-intro p { max-width: 63ch; }
.directory-method { border: 1px solid var(--line); border-radius: 13px; padding: 14px 19px; margin-bottom: 32px; max-width: 900px; font-size: .91rem; }
.directory-method details { margin-top: 10px; }
.directory-method details p { margin-top: 8px; }
.directory-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.directory-toolbar label { display: block; font-size: .82rem; font-weight: 750; margin-bottom: 3px; }
.directory-toolbar input { width: min(100%, 270px); padding: 7px 10px; border: 1px solid #82988a; border-radius: 7px; background: var(--white); color: var(--ink); }
.party-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.party-card { display: flex; flex-direction: column; min-height: 215px; padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.party-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.party-initials { display: inline-flex; align-items: center; justify-content: center; min-width: 39px; min-height: 36px; padding-inline: 6px; border-radius: 7px; background: #e8eee4; color: var(--forest); font-size: .79rem; font-weight: 800; }
.party-status { color: var(--muted); font-size: .74rem; font-weight: 700; }
.party-card h3 { font-size: 1.15rem; line-height: 1.2; margin-bottom: 8px; }
.party-card p { font-size: .87rem; }
.party-card .party-profile-link { margin-top: auto; padding-top: 9px; }
.party-profile-link a { font-weight: 700; }
.party-card details, .party-card .coverage-note { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 8px; font-size: .81rem; }
.party-positions { list-style: none; padding: 0; margin: 0; }
.party-positions li { padding: 8px 0; }
.party-positions li + li { border-top: 1px solid var(--line); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 860px) { .party-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) {
  nav > a.parties-nav, nav > a.partner-nav { display: inline; }
  nav { gap: 12px; }
  .header-inner { gap: 10px; }
  .directory-intro { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 510px) {
  .party-grid { grid-template-columns: 1fr; }
  .party-card { min-height: auto; }
  .directory-toolbar { align-items: flex-start; flex-direction: column; }
  .result-actions { justify-content: flex-start; }
}
@media (max-width: 390px) {
  .header-inner .brand { font-size: 1.08rem; gap: 6px; }
  .header-inner .brand img { width: 27px; height: 27px; }
  .header-inner nav { gap: 8px; }
  .header-inner .button-small { padding-inline: 9px; gap: 5px; }
}
#email-step form { margin-top: 20px; }
#email-step input[type="email"] { width: min(100%, 380px); }
#email-step .consent-option { max-width: 57ch; margin-block: 14px; }
#email-step .email-note { font-size: .86rem; margin-top: 10px; }
.email-step-actions { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 19px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.button-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.button-outline:hover:not(:disabled) { background: #e8eee4; }
.delivery-notice { padding: 10px 13px; border-radius: 8px; background: #e8eee4; margin-bottom: 13px; }
.party-card h3 a { text-decoration: none; }
.party-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.party-profile { padding-block: clamp(26px, 5vw, 65px); }
.profile-breadcrumb { flex-wrap: wrap; justify-content: flex-start; gap: 7px; color: var(--muted); font-size: .91rem; margin-bottom: 25px; }
nav.profile-breadcrumb > a { display: inline; text-decoration: underline; text-underline-offset: 3px; }
.profile-intro h1 { overflow-wrap: anywhere; }
.profile-content { max-width: 850px; }
.profile-content > section { padding-block: 24px; border-top: 1px solid var(--line); }
.profile-content h2 { font-size: clamp(1.7rem, 4vw, 2.65rem); margin-bottom: 12px; }
.profile-positions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-position { padding: 15px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; scroll-margin-top: 18px; }
.profile-position:target { outline: 2px solid var(--forest-hover); }
.profile-position p { margin-top: 4px; }
.profile-position .profile-question { color: var(--ink); font-weight: 650; }
.profile-evidence p + p { margin-top: 7px; }
@media (max-width: 610px) { .profile-positions { grid-template-columns: 1fr; } }
.partnership-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(25px, 5vw, 78px); align-items: start; padding-block: clamp(32px, 6vw, 82px); }
.partnership-intro h1 { font-size: clamp(3rem, 5.7vw, 6rem); margin-bottom: 18px; }
.partnership-intro .topic { margin-bottom: 13px; }
.partnership-lead { font-size: 1.13rem; max-width: 39ch; }
.partnership-details { margin-top: 25px; }
.partnership-details section { border-top: 1px solid var(--line); padding-block: 13px; }
.partnership-details h2 { font-family: inherit; font-size: 1rem; font-weight: 750; letter-spacing: -.015em; margin-bottom: 5px; }
.partnership-details p { font-size: .94rem; }
.partnership-panel { max-width: none; margin: 0; padding: clamp(19px, 3vw, 34px); }
.partnership-panel h2 { margin-bottom: 9px; }
.partnership-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; }
.partnership-panel form label { display: block; font-size: .89rem; font-weight: 750; margin-bottom: 4px; }
.partnership-panel label span { color: var(--muted); font-size: .79rem; font-weight: 550; }
.partnership-panel form input, .partnership-panel textarea { width: 100%; background: #fff; color: var(--ink); border: 1px solid #82988a; border-radius: 7px; padding: 8px 10px; font: inherit; }
.partnership-panel textarea { resize: vertical; }
.partnership-panel .partnership-privacy { margin-block: 6px 14px; font-size: .84rem; }
@media (max-width: 770px) {
  .partnership-page { grid-template-columns: 1fr; }
  .partnership-details { margin-top: 20px; }
}
@media (max-width: 530px) {
  .header-inner { gap: 12px; }
  .header-inner .brand { font-size: 1.16rem; gap: 6px; }
  .header-inner .brand img { width: 29px; height: 29px; }
  .header-inner .button-small { padding-inline: 10px; white-space: nowrap; }
}
@media (max-width: 460px) {
  .header-inner { flex-wrap: wrap; gap: 5px; padding-block: 8px; }
  .header-inner nav { width: 100%; justify-content: space-between; }
  .partnership-fields { grid-template-columns: 1fr; }
}
