:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --ink: #17201b;
  --muted: #59635d;
  --line: #d7ddd5;
  --accent: #0f766e;
  --accent-dark: #123c36;
  --blue: #315c96;
  --plum: #6b3f6c;
  --panel: #ffffff;
  --warm: #e8b84f;
  --soft: #edf3f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at top left, rgba(232, 184, 79, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(49, 92, 150, 0.24), transparent 26%),
    linear-gradient(145deg, rgba(18, 60, 54, 0.98), rgba(23, 32, 27, 0.92) 48%, rgba(8, 33, 49, 0.95));
  color: #ffffff;
}

.hero-content {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.lede {
  max-width: 630px;
  margin: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
}

.hero-actions,
.lookup-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.autocomplete-shell {
  align-items: flex-start;
}

.lookup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.autocomplete-field {
  position: relative;
  width: min(100%, 100%);
  flex: 1 1 340px;
}

.lookup-actions-secondary {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--warm);
  color: #111712;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.button.neutral {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.alignment-preview {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-header span,
.score-row span {
  color: rgba(255, 255, 255, 0.72);
}

.issue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.issue-chips span {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 700;
}

.candidate-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.candidate-result span {
  color: rgba(255, 255, 255, 0.72);
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.score-bar {
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--warm);
}

.alignment-preview p {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.lookup-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(560px, 1.14fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.lookup-intro {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  max-width: 34rem;
}

.lookup-steps {
  display: grid;
  gap: 0.75rem;
}

.lookup-steps span {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--warm);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.lookup-form {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 940px;
  justify-self: end;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4f7f3);
  box-shadow: 0 18px 40px rgba(23, 32, 27, 0.08);
}

.lookup-label,
.region-toggle legend {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.region-toggle {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  border: 0;
}

.region-toggle legend {
  width: 100%;
  margin-bottom: 0.35rem;
}

.region-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.region-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.region-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9f6;
  color: var(--muted);
  font-weight: 800;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.region-pill input:checked + span {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 60, 54, 0.18);
}

.region-pill input:focus-visible + span {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.lookup-status {
  min-height: 1.5rem;
  margin: 0.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
}

.lookup-status[data-state="error"] {
  color: #9f1239;
}

.lookup-map-shell {
  position: relative;
  margin-top: 0.25rem;
}

.my-location-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 650;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #5f6368;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 32, 27, 0.14);
}

.my-location-button--pulse {
  animation: my-location-button-pulse 2s ease-out infinite;
}

.my-location-button:hover {
  background: #f1f3f4;
}

.my-location-button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.my-location-button svg {
  display: block;
}

@supports (selector(.my-location-button::before)) {
  .my-location-button--pulse::before,
  .my-location-button--pulse::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(15, 118, 110, 0.38);
    pointer-events: none;
    animation: my-location-button-ripple 2s ease-out infinite;
  }

  .my-location-button--pulse::after {
    animation-delay: 1s;
  }
}

@keyframes my-location-button-pulse {
  0% {
    box-shadow:
      0 8px 18px rgba(23, 32, 27, 0.14),
      0 0 0 0 rgba(15, 118, 110, 0.34),
      0 0 18px rgba(45, 212, 191, 0.34);
    transform: scale(1);
  }

  45% {
    box-shadow:
      0 12px 24px rgba(23, 32, 27, 0.18),
      0 0 0 12px rgba(15, 118, 110, 0),
      0 0 28px rgba(45, 212, 191, 0.22);
    transform: scale(1.04);
  }

  100% {
    box-shadow:
      0 8px 18px rgba(23, 32, 27, 0.14),
      0 0 0 0 rgba(15, 118, 110, 0),
      0 0 18px rgba(45, 212, 191, 0);
    transform: scale(1);
  }
}

@keyframes my-location-button-ripple {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }

  20% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

.my-location-button__tooltip {
  display: none;
}

.lookup-map-toast {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 620;
  transform: translateX(-50%);
  min-width: max-content;
  max-width: min(320px, calc(100% - 2rem));
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: rgba(18, 60, 54, 0.92);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 12px 24px rgba(23, 32, 27, 0.18);
  pointer-events: none;
}

.lookup-map-toast[data-state="error"] {
  background: rgba(159, 18, 57, 0.94);
}

.upper-house-members {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.upper-house-members__header {
  display: grid;
  gap: 0.2rem;
}

.upper-house-members__header .eyebrow {
  margin: 0;
}

.upper-house-members__header h3 {
  margin: 0;
  font-size: 1rem;
}

.upper-house-members__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.upper-house-member-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 32, 27, 0.06);
}

.upper-house-member-card__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.upper-house-member-card__photo {
  width: 56px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.upper-house-member-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.upper-house-member-card__copy {
  min-width: 0;
}

.upper-house-member-card__kicker,
.upper-house-member-card__role,
.upper-house-member-card__party,
.upper-house-member-card__copy h4 {
  margin: 0;
}

.upper-house-member-card__kicker {
  color: #8a5d0a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upper-house-member-card__copy h4 {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  line-height: 1.25;
}

.upper-house-member-card__role {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.upper-house-member-card__party {
  margin-top: 0.28rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.current-member-card {
  position: absolute;
  top: 1rem;
  right: calc(1rem + 36px + 0.65rem);
  z-index: 500;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.6rem;
  width: min(calc(100% - 2rem), 294px);
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(23, 32, 27, 0.16);
  backdrop-filter: blur(14px);
}

.current-member-card--no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.current-member-card--empty {
  min-height: 52px;
  align-items: center;
}

.current-member-media {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.current-member-photo {
  width: 62px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.current-member-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.current-member-copy {
  min-width: 0;
}

.current-member-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.current-member-kicker {
  margin: 0 0 0.25rem;
  color: #8a5d0a;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.current-member-copy h3 {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.2;
}

.current-member-role,
.current-member-party {
  margin: 0.3rem 0 0;
}

.current-member-role {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.current-member-party {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.3;
}

.lookup-map {
  position: relative;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
  cursor: crosshair;
}

.lookup-map[data-touch-hint]::after {
  content: attr(data-touch-hint);
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 450;
  transform: translate(-50%, 8px);
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(18, 60, 54, 0.88);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.lookup-map[data-show-touch-hint]::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lookup-map .leaflet-control-attribution {
  font-size: 0.72rem;
}

label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input:not([type="radio"]) {
  width: min(100%, 300px);
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.autocomplete-field input:not([type="radio"]) {
  width: 100%;
}

.suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(23, 32, 27, 0.18);
}

.pac-container {
  z-index: 10000;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(23, 32, 27, 0.18);
  font-family: inherit;
}

.suggestion {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion[aria-selected="true"] {
  background: var(--soft);
}

.suggestion span {
  color: var(--muted);
  font-size: 0.9rem;
}

select {
  width: min(100%, 300px);
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.section.tight {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.page-heading {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  max-width: 12ch;
  color: var(--ink);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid.compact .feature {
  min-height: 150px;
}

.feature {
  min-height: 180px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.question-list,
.results-stack,
.explain-list {
  display: grid;
  gap: 1rem;
}

.question-card,
.result-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

fieldset.question-card {
  margin: 0;
}

.question-card legend {
  padding: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.question-card label {
  display: block;
  margin-top: 0.75rem;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.option-row label {
  min-height: 44px;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.result-header strong {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  color: var(--accent);
}

details {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 0.6rem 1rem;
  margin: 1rem 0 0;
}

.detail-grid dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-grid dd {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.method-band {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  background: var(--soft);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.method-grid article {
  padding-top: 1rem;
  border-top: 3px solid var(--blue);
}

.method-grid p,
.section-copy {
  max-width: 760px;
  color: var(--muted);
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 2rem;
  align-items: start;
}

.privacy-list {
  display: grid;
  gap: 0.75rem;
}

.privacy-list span {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--plum);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
}

.candidate-band {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  background: var(--accent-dark);
  color: #ffffff;
}

.candidate-band .section-copy,
.candidate-band .feature p {
  color: rgba(255, 255, 255, 0.76);
}

.candidate-band .feature {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .site-header,
  .lookup-band,
  .privacy-section {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .issue-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .lookup-controls,
  .autocomplete-field,
  .lookup-controls input:not([type="radio"]),
  .lookup-controls .button {
    width: 100%;
  }

  .lookup-actions-secondary,
  .lookup-actions-secondary .button {
    width: 100%;
  }

  .lookup-form {
    padding: 1rem;
    max-width: none;
    justify-self: stretch;
  }

  .current-member-card {
    position: static;
    grid-template-columns: 72px minmax(0, 1fr);
    width: 100%;
    margin-bottom: 0.85rem;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
  }

  .my-location-button {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lookup-map-toast {
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .upper-house-members__grid,
  .upper-house-member-card {
    grid-template-columns: 1fr;
  }

  .upper-house-member-card__media {
    justify-content: flex-start;
  }

  .my-location-button[data-tooltip]::after {
    max-width: calc(100vw - 1.5rem);
  }

  .current-member-media {
    justify-content: flex-start;
  }

  .current-member-photo {
    width: 72px;
    height: 88px;
  }

  .lookup-map {
    min-height: 380px;
  }

  .region-pill {
    flex: 1 1 100%;
  }

  .region-pill span {
    width: 100%;
    min-width: 0;
  }

  .option-row,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
  }
}
.voting-statistics {
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  line-height: 1.45;
}

.voting-statistics p { margin: .3rem 0; }
.voting-statistics__source, .voting-statistics__unavailable { font-size: .75rem; }

.voting-statistics__metrics {
  display: grid;
  gap: .45rem;
  margin: 0;
}

.voting-statistics__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .75rem;
}

.voting-statistics__row dd { margin: 0; text-align: right; }

.voting-statistics__row strong {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.voting-statistics__row dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}

.voting-statistics .voting-statistics__source {
  margin: .35rem 0 0;
  text-align: right;
}

.voting-statistics__source a {
  color: #707986;
  font-size: .7rem;
  text-decoration-color: #c2c7cd;
  text-underline-offset: .15em;
}

.voting-statistics__source a:hover,
.voting-statistics__source a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.attendance-scale { width: 100%; margin-top: .65rem; }
.attendance-scale__track {
  position: relative;
  height: 5px;
  margin: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d5dce0, #81aaa3, var(--accent));
}
.attendance-scale__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--accent-dark);
  box-shadow: 0 0 0 1px var(--accent-dark);
}
.attendance-scale__labels { display: flex; justify-content: space-between; gap: .5rem; }
.attendance-scale__labels span { color: var(--muted); font-size: .6rem; font-weight: 400; }
