.election-stage { padding: 14px 17px; margin: 0 0 22px; border-left: 3px solid var(--green); background: #f2f6f1; border-radius: 0 8px 8px 0; }
.election-stage strong { color: var(--green-dark); font-size: .92rem; }
.election-stage p { color: var(--muted); font-size: .8rem; line-height: 1.7; margin-top: 4px; }
.election-cycle-label { margin-bottom: 16px; color: var(--green); font-size: .85rem; }
.contest-results { margin: 22px 0 34px; scroll-margin-top: 20px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.result-eyebrow { display: block; font-size: .65rem; color: var(--green); letter-spacing: .12em; margin-bottom: 4px; }
.result-heading h2 { font-size: 1.35rem; letter-spacing: -.4px; }
.result-stage { border: 1px solid #e8d9bd; background: #fbf5ea; color: #775b2e; border-radius: 20px; padding: 5px 12px; font-size: .74rem; white-space: nowrap; }
.result-overview { display: flex; flex-wrap: wrap; gap: 18px 40px; padding: 0 0 18px; }
.result-overview > div { display: flex; align-items: baseline; gap: 9px; }
.result-overview strong { font-size: 1.3rem; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.result-overview strong span { font-size: .8rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.result-overview > div > span { color: var(--muted); font-size: .73rem; }
.result-table-wrap { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 16px #183c2e05; }
.result-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .9rem; }
.result-table caption { text-align: left; font-size: .73rem; color: var(--muted); padding: 0 0 12px; caption-side: bottom; padding: 12px 16px; }
.result-table th, .result-table td { padding: 10px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e9eeeb; overflow-wrap: anywhere; }
.result-table thead th { padding-top: 12px; padding-bottom: 12px; background: #f4f7f5; color: #6a7b73; font-size: .72rem; font-weight: 500; }
.result-table thead th:first-child { border-top-left-radius: 12px; }
.result-table thead th:last-child { border-top-right-radius: 12px; }
.result-table th:first-child { width: 42%; }
.result-table th:nth-child(2) { width: 36%; }
.result-table th:nth-child(3) { width: 22%; }
.result-column-note { font-weight: 400; }
.result-person { display: flex; align-items: center; gap: 12px; color: var(--ink); min-height: 48px; }
.result-person:hover .result-person-name { color: var(--green); }
.result-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 48px; border: 1px solid #e0e7e2; border-radius: 8px; background: #f0f4f1; overflow: hidden; color: #8a9d93; }
.result-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.result-avatar svg { width: 24px; height: 24px; }
.result-person-text { min-width: 0; }
.result-person-name { display: block; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.result-organization { display: block; font-size: .7rem; color: var(--muted); font-weight: 400; margin-top: 2px; line-height: 1.5; }
.result-votes { font-variant-numeric: tabular-nums; }
.result-vote-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.result-vote-line > strong { font-size: 1.05rem; font-weight: 650; letter-spacing: -.25px; white-space: nowrap; }
.result-vote-unit { color: var(--muted); font-size: .65rem; font-weight: 400; }
.result-share { color: #64786c; font-size: .76rem; white-space: nowrap; }
.result-meter { appearance: none; display: block; width: 100%; height: 7px; border: 0; background: #edf2ef; border-radius: 8px; margin-top: 7px; overflow: hidden; }
.result-meter::-webkit-meter-bar { height: 7px; border: 0; border-radius: 8px; background: #edf2ef; box-shadow: none; }
.result-meter::-webkit-meter-optimum-value { background: #91a79e; border-radius: 8px; }
.result-meter::-moz-meter-bar { background: #91a79e; border-radius: 8px; }
.result-row-elected .result-meter::-webkit-meter-optimum-value, .result-row-acclaimed .result-meter::-webkit-meter-optimum-value { background: #28775e; }
.result-row-elected .result-meter::-moz-meter-bar, .result-row-acclaimed .result-meter::-moz-meter-bar { background: #28775e; }
.result-row-elected > th, .result-row-acclaimed > th { box-shadow: inset 3px 0 #397d5c; }
.result-row-elected, .result-row-acclaimed { background: #f4f9f5; }
.result-row-elected .result-vote-line > strong, .result-row-acclaimed .result-vote-line > strong { color: #165d47; }
.result-outcome { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-badge { display: inline-flex; align-items: center; gap: 6px; color: #67756f; font-size: .78rem; white-space: nowrap; line-height: 1.4; }
.result-badge svg { width: 18px; height: 18px; padding: 2px; color: #fff; background: #28775e; border-radius: 50%; }
.result-badge small { display: block; font-weight: 400; color: var(--muted); font-size: .63rem; margin-top: 3px; }
.result-badge-elected, .result-badge-acclaimed { color: #165d47; font-weight: 600; }
.result-badge-pending, .result-badge-not_declared { color: #826a36; }
.result-source { position: relative; font-size: .72rem; font-weight: 400; }
.result-source summary { cursor: pointer; color: var(--green); padding: 6px 0; min-height: 32px; white-space: nowrap; }
.result-source[open] summary { font-weight: 600; }
.result-source-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 4; width: min(25rem, calc(100vw - 48px)); padding: 16px 18px; border: 1px solid #d5e0d9; border-radius: 10px; background: #fff; box-shadow: 0 8px 30px #153e2b24; line-height: 1.8; color: var(--ink); }
.result-source-panel p { margin: 6px 0; }
.result-source-panel > a { display: inline-block; margin-top: 4px; font-weight: 600; }
.result-table tbody tr:hover { background: #f8faf8; }
.result-method { margin-top: 12px; font-size: .69rem; line-height: 1.8; color: var(--muted); }
.result-method p + p { margin-top: 3px; }
@media (min-width: 900px) {
  .contest-page-heading { margin-bottom: 16px; }
  .contest-page-heading .eyebrow { margin-bottom: 6px; }
  .contest-page-heading h1 { font-size: 1.75rem; }
  .contest-page-heading .lead { margin-top: 8px; }
  .election-cycle-label { margin-bottom: 12px; }
  .contest-results { margin-top: 18px; }
}
.place-office-results { display: block; color: var(--green); font-size: .76rem; margin-top: 8px; }
@media (max-width: 600px) {
  .result-heading { margin-bottom: 14px; }
  .result-heading h2 { font-size: 1.15rem; }
  .result-stage { font-size: .67rem; padding: 4px 9px; }
  .result-overview { gap: 10px 18px; padding-bottom: 14px; }
  .result-overview > div { gap: 6px; }
  .result-overview strong { font-size: 1.05rem; }
  .result-overview > div > span { font-size: .64rem; }
  .result-table th, .result-table td { padding: 10px 7px; }
  .result-table thead th { padding: 10px 7px; font-size: .65rem; }
  .result-table th:first-child { width: 46%; }
  .result-table th:nth-child(2) { width: 31%; }
  .result-table th:nth-child(3) { width: 23%; }
  .result-column-note { display: block; }
  .result-person { gap: 7px; }
  .result-avatar { flex-basis: 30px; width: 30px; height: 38px; border-radius: 6px; }
  .result-person-name { font-size: .75rem; }
  .result-organization { font-size: .61rem; }
  .result-vote-line { flex-wrap: wrap; gap: 0 7px; }
  .result-vote-line > strong { font-size: .88rem; }
  .result-share { font-size: .67rem; }
  .result-vote-unit { display: none; }
  .result-meter, .result-meter::-webkit-meter-bar { height: 5px; }
  .result-outcome { display: block; }
  .result-badge { font-size: .7rem; gap: 3px; }
  .result-badge svg { width: 14px; height: 14px; }
  .result-source { font-size: .67rem; }
  .result-source summary { padding: 4px 0; }
  .result-source-panel { right: 0; padding: 14px; font-size: .75rem; }
  .result-table caption { font-size: .65rem; padding: 10px; }
  .result-method { font-size: .65rem; }
  .place-office-results { grid-column: 1 / -1; }
}
