﻿:root {
  color-scheme: light;
  --ink: #172d29;
  --muted: #586c67;
  --green: #163b35;
  --green-hover: #0d302a;
  --mint: #dcebe4;
  --paper: #f6f7f2;
  --white: #fff;
  --line: #d6ded9;
  --warning-bg: #fff4d9;
  --warning-ink: #5a4211;
  --focus: #a74418;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: #174c40; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 10; padding: .8rem 1rem; background: white; border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: .8rem max(1.25rem, calc((100% - 1160px) / 2)); background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; font-size: 1.05rem; text-decoration: none; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .65rem; background: var(--green); color: white; font-weight: 800; }
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.demo-tag { padding: .25rem .65rem; border: 1px solid #a2b9ad; border-radius: 100px; color: var(--green); font-size: .8rem; font-weight: 700; }
main { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.hero { margin: 1.4rem 0 1rem; padding: clamp(2rem, 6vw, 4.6rem); border-radius: 1.5rem; background: var(--green); color: white; }
.eyebrow { margin: 0 0 .45rem; font-size: .75rem; letter-spacing: .13em; font-weight: 800; }
.hero .eyebrow { color: #bad9cb; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -.04em; }
h1 span { color: #b8dbc9; }
.hero-copy { max-width: 42rem; margin-bottom: 1.6rem; color: #eef5f0; font-size: 1.12rem; }
.button { min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1rem; border: 2px solid transparent; border-radius: .65rem; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button-light { background: white; color: var(--green); }
.button-dark { background: var(--green); color: white; }
.button-dark:hover { background: var(--green-hover); }
.button:disabled { cursor: not-allowed; opacity: .6; }
.prototype-notice { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 1rem 0 2.3rem; padding: .9rem 1rem; border-left: 4px solid #bd8d25; border-radius: .4rem; background: var(--warning-bg); color: var(--warning-ink); }
.prototype-notice strong { white-space: nowrap; }
.panel { padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--white); box-shadow: 0 5px 18px #20362a0a; }
.profile-panel { margin-bottom: 3.5rem; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading h2 { margin-bottom: .35rem; font-size: clamp(1.65rem, 4vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
.compact-heading h2 { font-size: 1.6rem; }
.section-heading .eyebrow { color: #376b58; }
.muted { color: var(--muted); }
.step-number { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid #a9beb2; border-radius: 50%; color: var(--green); font-size: .85rem; font-weight: 800; }
.auth-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.auth-forms h3 { flex-basis: 100%; margin-bottom: 0; }
.auth-forms .inline-form { align-content: start; }
.auth-forms[hidden], [data-private-section][hidden] { display: none; }
[data-reader-hidden][hidden] { display: none; }
.auth-forms .field { min-width: min(100%, 13rem); }
summary { width: fit-content; color: #174c40; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.inline-form { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; padding-top: .9rem; }
.inline-form[hidden] { display: none; }
.inline-form .field { flex: 1 1 11rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; }
input, select, textarea { width: 100%; min-height: 2.9rem; padding: .65rem .75rem; border: 1px solid #83958e; border-radius: .55rem; background: white; color: var(--ink); font: inherit; }
textarea { min-height: 8rem; resize: vertical; }
input::placeholder { color: #65746f; }
.field-hint { color: var(--muted); font-size: .9rem; }
.section-block { margin: 0 0 3.5rem; scroll-margin-top: 1rem; }
.source-disclaimer { margin: -.45rem 0 1rem; padding: .75rem 1rem; border-left: 3px solid #718c7d; background: #edf2ed; color: #334940; }
.source-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.source-toolbar p { margin: 0; }
.source-card { display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.source-card h3 { margin: .25rem 0 0; font-size: 1.25rem; line-height: 1.3; }
.source-card p { margin: 0; }
.source-card .source-date { color: var(--muted); font-size: .9rem; }
.source-card .source-description { color: #344943; }
.source-card .source-link { overflow-wrap: anywhere; }
.source-card .button { align-self: flex-start; margin-top: auto; }
.citizen-summary { padding: .8rem .9rem; border-radius: .7rem; background: #edf4ef; }
.citizen-summary summary { color: var(--green); font-weight: 800; }
.citizen-summary-body { margin-top: .7rem; }
.citizen-summary-body p { margin: 0; }
.citizen-summary-body .citizen-summary-text { white-space: pre-line; line-height: 1.65; }
.citizen-summary-body .citizen-summary-note { margin-top: .7rem; color: var(--muted); font-size: .85rem; }
.citizen-summary-body .citizen-summary-error { color: #702719; }
.source-empty { grid-column: 1 / -1; padding: 1rem; border: 1px dashed #a4b2ad; border-radius: .7rem; color: var(--muted); }
.proposal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.proposal-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.proposal-card h3 { margin: .3rem 0 .25rem; font-size: 1.35rem; line-height: 1.25; }
.proposal-card p { margin-bottom: 0; }
.proposal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.pill { display: inline-flex; padding: .2rem .6rem; border-radius: 100px; background: var(--mint); color: #173d31; font-size: .78rem; font-weight: 750; }
.proposal-text { white-space: pre-wrap; }
.vote-form { margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); }
.vote-form fieldset { margin: 0 0 .85rem; padding: 0; border: 0; }
.vote-form legend { margin-bottom: .4rem; font-weight: 750; }
.choice-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.choice-option { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.7rem; padding: .25rem .65rem; border: 1px solid #a4b2ad; border-radius: .6rem; cursor: pointer; }
.choice-option input { width: 1.1rem; min-height: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.card-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.text-button { min-height: 2.8rem; padding: .5rem .2rem; border: 0; background: transparent; color: #174c40; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.weight-result { padding: .8rem; border-radius: .6rem; background: #edf4ef; }
.weight-result ul { margin: .4rem 0 0; padding-left: 1.35rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.full-width { grid-column: 1 / -1; }
.create-panel { margin-bottom: 3.5rem; }
.delegation-section .panel { margin-bottom: 1.5rem; }
.delegation-list-wrap h3 { margin-bottom: .75rem; font-size: 1.1rem; }
.delegation-list { display: grid; gap: .65rem; }
.delegation-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: white; }
.delegation-row p { margin: 0; }
.help-strip { display: grid; grid-template-columns: minmax(14rem, .8fr) 1.2fr; gap: 2rem; align-items: start; margin: 3rem 0 0; padding: 1.5rem; border-radius: 1rem; background: var(--mint); }
.help-strip .eyebrow { color: #376b58; }
.help-strip h2 { margin: 0; font-size: 1.45rem; }
.help-strip p { margin: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem max(1.25rem, calc((100% - 1160px) / 2)); border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: .9rem; }
.site-footer span:first-child { color: var(--ink); font-weight: 800; }
.loading, .empty-state { grid-column: 1 / -1; padding: 1rem; border: 1px dashed #a4b2ad; border-radius: .7rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; padding-inline: 1rem; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; padding-top: .35rem; }
  .demo-tag { margin-left: auto; }
  main { padding-inline: 1rem; }
  .hero { margin-top: .8rem; border-radius: 1rem; }
  .prototype-notice { grid-template-columns: 1fr; }
  .prototype-notice strong { white-space: normal; }
  .form-grid, .help-strip { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .delegation-row { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-inline: 1rem; }
  .source-toolbar { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.message { margin: 0 0 1.25rem; padding: .85rem 1rem; border: 1px solid #8aab97; border-radius: .6rem; background: #e8f3eb; color: #153d2d; font-weight: 650; }
.message[hidden] { display: none; }
.message-error { border-color: #b66b5e; background: #fff0ed; color: #702719; }
