:root {
  color-scheme: light;
  --paper: #f3f5f3;
  --surface: #fff;
  --ink: #202822;
  --secondary: #56625a;
  --quiet: #68756c;
  --line: #d9e1d9;
  --dark: #193b32;
  --accent: #b74f34;
  --stay: #32755c;
  --leave: #ba593f;
  --unsure: #777e8b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(calc(100% - 40px), 1020px); margin-inline: auto; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 14px; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { flex: none; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 6px; background: var(--dark); color: #fff; font-size: 16px; line-height: 1; }
.brand-dot { color: var(--accent); }
.masthead-right { flex: none; display: flex; align-items: center; gap: 14px; }
.masthead-tag { white-space: nowrap; color: var(--quiet); font-size: 11px; font-weight: 750; }
.lang { max-width: 136px; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 6px 7px; color: var(--ink); font-size: 13px; }
.lang:focus-visible, .btn:focus-visible { outline: 3px solid rgba(183, 79, 52, .35); outline-offset: 2px; }
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: 30px 27px; }
.hero h1 { margin: 0; max-width: 850px; font-size: 38px; line-height: 1.28; font-weight: 760; overflow-wrap: anywhere; }
.sub { max-width: 700px; margin: 11px 0 0; color: var(--secondary); font-size: 14px; }
.content { padding-block: 22px 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr); align-items: start; gap: 16px; }
.primary, .aside { min-width: 0; }
.card, .aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.card { padding: 24px; }
.card-kicker, .aside-label { display: block; margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 750; }
.card h2 { margin: 0 0 15px; font-size: 20px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
.btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.btn { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: start; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; transition: border-color .15s, background .15s; }
.btn:after { content: '\2197'; flex: none; align-self: flex-start; color: var(--quiet); font-weight: 400; }
.btn:hover:not(:disabled) { border-color: var(--stay); background: #f3faf5; }
.btn.support:hover:not(:disabled) { border-color: var(--leave); background: #fff6f2; }
.btn.neutral:hover:not(:disabled) { border-color: var(--unsure); background: #f5f6f8; }
.btn.chosen { border-color: var(--stay); background: #edf6ef; opacity: 1; }
.btn.chosen:after { content: '\2713'; color: var(--stay); }
.btn:disabled:not(.chosen) { opacity: .55; cursor: default; }
.msg { min-height: 19px; margin-top: 10px; color: var(--quiet); font-size: 13px; overflow-wrap: anywhere; }
.msg.ok { color: var(--stay); }
.msg.err { color: var(--leave); }
.divider { height: 1px; background: var(--line); margin: 19px 0 16px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 16px; }
.results-heading h3 { margin: 0; font-size: 15px; font-weight: 750; }
.tally { display: flex; align-items: baseline; gap: 6px; }
.tally .num { font-size: 23px; line-height: 1; font-weight: 760; font-variant-numeric: tabular-nums; }
.tally .lbl { color: var(--quiet); font-size: 12px; }
.row { margin-bottom: 15px; }
.row .top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; margin-bottom: 6px; font-size: 13px; }
.row .name { font-weight: 650; }
.row .val { color: var(--secondary); font-variant-numeric: tabular-nums; }
.track { height: 7px; background: #e9eee9; border-radius: 4px; overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 4px; transition: width .4s ease; }
.fill.oppose { background: var(--stay); }
.fill.support { background: var(--leave); }
.fill.neutral { background: var(--unsure); }
.stamp { margin-top: 17px; color: var(--quiet); font-size: 12px; }
.aside-card { margin-bottom: 12px; padding: 19px 21px; }
.note { background: var(--dark); border-color: var(--dark); color: #fff; }
.note .aside-label { color: #ffc9aa; }
.note p { margin: 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.panel h2 { margin: 0 0 2px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.panel-sub { margin: 0 0 12px; color: var(--quiet); font-size: 12px; }
.rank { margin: 0; padding: 0; list-style: none; }
.rank-item { display: flex; align-items: center; gap: 8px; min-height: 36px; border-top: 1px solid var(--line); font-size: 13px; }
.rank-pos { flex: none; width: 18px; color: var(--quiet); }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { flex: none; width: 46px; height: 5px; border-radius: 3px; background: #e9eee9; overflow: hidden; }
.rank-bar > span { display: block; height: 100%; background: var(--accent); }
.rank-num { flex: none; width: 34px; text-align: end; color: var(--secondary); font-variant-numeric: tabular-nums; }
.rank-empty { padding-top: 4px; color: var(--quiet); font-size: 13px; }
.about { margin: 0; color: var(--secondary); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.foot { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; }
html[dir=rtl] .rank-num { text-align: start; }
@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .aside-card { margin: 0; }
  .about-card { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 32px), 1020px); }
  .masthead-inner { min-height: 56px; }
  .masthead-tag { display: none; }
  .hero-inner { padding-block: 22px 20px; }
  .hero h1 { font-size: 28px; line-height: 1.3; }
  .sub { margin-top: 8px; font-size: 13px; }
  .content { padding-top: 14px; }
  .card { padding: 18px; }
  .card h2 { font-size: 18px; margin-bottom: 12px; }
  .btns { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .btn { min-height: 47px; }
  .aside { display: block; }
  .aside-card { margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .brand { font-size: 12px; }
  .brand-mark { width: 24px; height: 24px; }
  .lang { max-width: 104px; font-size: 12px; }
  .btns { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .btn { min-height: 46px; }
  .hero h1 { font-size: 25px; }
}
@media (max-width: 320px) {
  .wrap { width: calc(100% - 20px); }
  .brand span:last-child { max-width: 115px; }
  .card { padding: 13px; }
  .lang { max-width: 86px; }
  .row .top { font-size: 12px; }
}
/* Refined visual hierarchy; no external fonts or decorative imagery. */
:root { --paper: #f5f4f0; --line: #e1e4dc; --dark: #243e34; }
.wrap { max-width: 1120px; }
.masthead-inner { min-height: 68px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.lang { min-height: 42px; border-radius: 9px; }
.hero-inner { padding-block: clamp(24px, 3vw, 42px); }
.hero h1 { font-size: clamp(26px, 3.2vw, 43px); letter-spacing: -.025em; text-wrap: balance; }
.sub { line-height: 1.7; }
.layout { gap: 22px; }
.card, .aside-card { border-radius: 15px; }
.card { padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 8px 28px #20282205; }
.card-kicker { display: none; }
.card h2 { margin-bottom: 20px; }
.btns { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.btn { min-height: 58px; padding: 14px 18px; border-radius: 10px; font-size: 15px; touch-action: manipulation; }
.btn:after { content: ''; align-self: center; width: 17px; height: 17px; border: 1.5px solid #a6b0a8; border-radius: 50%; }
.btn.chosen:after { content: '\2713'; width: 20px; height: 20px; display: grid; place-items: center; background: var(--stay); border: 0; color: #fff; font-size: 12px; }
.btn:disabled { cursor: default; }
.btn:disabled:not(.chosen) { opacity: .7; }
.btn.chosen.support { background: #fff5f0; border-color: var(--leave); }
.btn.chosen.support:after { background: var(--leave); }
.btn.chosen.neutral { background: #f4f5f7; border-color: var(--unsure); }
.btn.chosen.neutral:after { background: var(--unsure); }
.msg:empty { min-height: 0; margin: 0; }
.msg:not(:empty) { padding: 11px 13px; border-radius: 8px; background: #f2f5f2; }
.msg.err { background: #fff3ef; }
.divider { margin-block: 24px; }
.results-heading h3 { font-size: 16px; }
.tally .num { font-size: 28px; }
.row { margin-bottom: 19px; }
.row .val [id^='pct-'] { font-weight: 750; color: var(--ink); }
.track { height: 9px; border-radius: 6px; }
.aside-card { padding: 23px; margin-bottom: 16px; }
.aside-label { letter-spacing: .08em; }
.rank-empty { padding: 20px 14px; border: 1px dashed var(--line); border-radius: 9px; text-align: center; }
.rank-name { white-space: normal; overflow-wrap: anywhere; }
.rank-num { width: auto; min-width: 34px; }
.rank-item { padding-block: 8px; }
.stamp { display: flex; align-items: center; gap: 7px; }
.stamp:before { content: ''; width: 6px; height: 6px; background: var(--stay); border-radius: 50%; flex: none; }
@media (max-width: 880px) {
  .aside-card { margin: 0; }
  .aside { gap: 16px; }
}
@media (max-width: 600px) {
  .masthead-inner { min-height: 60px; }
  .layout { gap: 16px; }
  .hero-inner { padding-block: 23px; }
  .card { padding: 20px; }
  .btn { min-height: 52px; padding: 12px 14px; }
  .card h2 { margin-bottom: 15px; }
  .aside-card { margin-bottom: 14px; padding: 20px; }
  .divider { margin-block: 20px; }
}
@media (max-width: 350px) {
  .masthead-inner { gap: 8px; }
  .brand { gap: 6px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-name { max-width: 118px; }
  .card { padding: 15px; }
}
/* Editorial layout: a strong masthead, quiet surfaces, clear section rules. */
:root { --paper: #f4f2ed; --ink: #252924; --dark: #283b31; --accent: #a64a2b; --line: #dcded5; }
.wrap { width: min(calc(100% - 48px), 1120px); }
.masthead { background: var(--paper); }
.hero { background: var(--paper); border-bottom: 0; }
.hero-inner { padding-block: 34px 26px; border-bottom: 2px solid var(--ink); }
.hero h1 { max-width: 950px; font-size: clamp(28px, 3.6vw, 48px); font-weight: 750; letter-spacing: -.035em; }
.content { padding-top: 26px; }
.layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 32px; }
.card { border-radius: 5px; box-shadow: none; padding: clamp(22px, 3vw, 38px); }
.card h2 { font-size: 22px; }
.btn { border-radius: 5px; min-height: 60px; font-size: 16px; }
.aside-card { border-radius: 5px; }
.aside-label { display: none; }
.note { padding: 26px; border-top: 4px solid #bd8c62; }
.note p { font-size: 16px; line-height: 1.8; }
.panel { background: transparent; border: 0; padding-inline: 0; }
.panel h2 { font-size: 19px; }
.official-card { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.official-card span { font-size: 10px; letter-spacing: .16em; color: var(--quiet); }
.official-card strong { font-size: 17px; font-weight: 650; }
.official-card:hover strong { color: var(--accent); }
.profile { margin-top: 56px; border-top: 2px solid var(--ink); padding-top: 32px; }
.profile-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.profile-eyebrow { font-size: 11px; letter-spacing: .1em; color: var(--accent); margin: 0 0 10px; }
.profile h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.profile-role { color: var(--secondary); font-size: 14px; margin: 10px 0 0; }
.source-link { font-size: 13px; color: var(--ink); text-underline-offset: 5px; text-decoration-color: #aab3a4; padding-block: 12px; }
.source-link:hover { color: var(--accent); }
.profile-intro { color: var(--secondary); line-height: 1.8; max-width: 750px; margin: 24px 0 30px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
.profile-entry { position: relative; border-top: 1px solid var(--line); padding-top: 18px; }
.profile-number { float: right; font-size: 12px; color: #90988e; font-variant-numeric: tabular-nums; }
.profile-entry h3 { margin: 0 0 12px; font-size: 18px; font-weight: 650; }
.profile-entry p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.profile-status { border-inline-start: 3px solid #a9b6a6; padding-inline-start: 16px; font-size: 13px; color: var(--secondary); line-height: 1.8; margin: 32px 0 18px; }
.profile-source { font-size: 12px; color: var(--quiet); line-height: 1.7; }
@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .official-card { grid-column: 1 / -1; }
  .panel { padding: 20px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner { padding-block: 24px 20px; }
  .content { padding-top: 16px; }
  .card { padding: 20px; }
  .btn { min-height: 52px; font-size: 15px; }
  .note { padding: 20px; }
  .panel { padding: 12px 0; }
  .profile { margin-top: 30px; padding-top: 25px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .profile-head { gap: 10px; }
  .profile-intro { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
