/* archivo-latin-ext-wght-normal */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/archivo-latin-ext-wght-normal.woff2)
    format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* archivo-latin-wght-normal */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/archivo-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --bg: #19213e;
  --ink: #f5f6fb;
  --muted: #bbc3d7;
  --surface: #232e50;
  --line: #43516f;
  --accent: #b8ecd9;
  --cream: #f5f4ee;
  --dark: #17213c;
  --radius: 18px;
}
.speeches-panel {
  margin-top: 24px;
  min-width: 0;
}
.speech-count {
  color: var(--muted);
  font-size: 0.8em;
  font-weight: 500;
}
.speech-table-scroll {
  position: relative;
  overflow-x: auto;
  max-width: 100%;
}
.speech-table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.speech-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
}
.speech-table th,
.speech-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}
.speech-table th {
  font-weight: 650;
  color: var(--muted);
  overflow-wrap: normal;
}
.speech-table td:first-child {
  min-width: 140px;
}
.speech-table td:nth-child(4) {
  min-width: 260px;
  max-width: 360px;
  overflow-wrap: anywhere;
}
.speech-table td:nth-child(3),
.speech-table td:nth-child(5) {
  min-width: 150px;
}
.speech-sitting {
  display: block;
  color: var(--muted);
  font-size: 0.9em;
}
.speech-cell-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.speech-cell-items li + li {
  margin-top: 8px;
}
.speech-duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.speech-play {
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.speech-play svg {
  fill: currentColor;
}
.speech-pagination {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.speech-dialog {
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg);
  color: var(--ink);
}
.speech-dialog::backdrop {
  background: rgb(0 0 0 / 0.75);
}
.speech-dialog-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.speech-dialog-heading h2 {
  margin: 0;
  font-size: 1.05rem;
}
.speech-dialog-heading button {
  flex-shrink: 0;
  padding: 8px 12px;
}
.speech-player-frame iframe {
  display: block;
  width: 100%;
  height: min(60dvh, 520px);
  min-height: 240px;
  border: 0;
  background: #000;
}
.speech-dialog > p {
  margin-bottom: 0;
  font-size: 0.85rem;
}
.speech-dialog-open {
  overflow: hidden;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Archivo,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6ae4c0;
  outline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  background: var(--dark);
  color: white;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
button:hover {
  background: #30456b;
}
.button-small {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.button-small:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.7;
  cursor: wait;
}
button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
input,
select {
  min-height: 50px;
  width: 100%;
  padding: 12px 15px;
  background: #fff;
  color: #17213c;
  border: 1px solid #adb5c5;
  border-radius: 9px;
  min-width: 0;
}
input::placeholder {
  color: #687182;
}
label {
  display: block;
  font-weight: 650;
  margin: 0 0 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.13;
  font-weight: 650;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
h3,
.h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 12px;
}
p {
  margin-bottom: 18px;
}
p:last-child {
  margin-bottom: 0;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-height: 100px;
}
.brand {
  width: 270px;
  display: block;
  flex-shrink: 1;
}
.brand img {
  display: block;
  width: 100%;
}
.header nav {
  display: flex;
  gap: 28px;
}
.header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.94rem;
}
.header nav a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
}
.edition {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 11px 0;
  border-bottom: 1px solid #303b59;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}
.hero {
  max-width: 100%;
  padding: 65px 0 44px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 19px;
}
.lead {
  font-size: 1.13rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 740px;
}
.search-card {
  background: var(--cream);
  color: var(--dark);
  padding: 29px;
  border-radius: var(--radius);
  margin-top: 32px;
  max-width: 830px;
}
.search-card .muted {
  color: #505d73;
}
.search-card a {
  color: #174c51;
}
.search-line {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.search-line input {
  flex: 1;
}
.search-line button {
  flex-shrink: 0;
}
.search-card label {
  font-size: 0.9rem;
}
.address-form .small {
  margin-top: 12px;
}
.address-form [id$="-field"] {
  margin-top: 18px;
}
.address-form #address-result:not(:empty) {
  margin-top: 20px;
  border-top: 1px solid #b8c1c8;
  padding-top: 20px;
}
.address-form #settlement-choices:not(:empty) {
  margin-top: 20px;
}
.address-form #settlement-choices button {
  margin: 0 8px 8px 0;
}
.alternative {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-top: 22px;
}
.alternative span {
  color: var(--muted);
}
.alternative a {
  text-decoration: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 12px 0 0;
}
.stats article {
  padding: 25px 27px;
  border-right: 1px solid var(--line);
}
.stats article:first-child {
  padding-left: 0;
}
.stats article:last-child {
  border-right: 0;
}
.stats strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  margin-bottom: 5px;
}
.stats span {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
}
.section {
  padding: 42px 0;
  border-bottom: 1px solid #33405d;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.section-heading > a {
  font-size: 0.9rem;
  flex-shrink: 0;
}
.county-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}
.county-card {
  background: var(--surface);
  border: 1px solid #394562;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: background 0.15s;
}
.county-card:hover {
  background: #2b3b60;
}
.county-card strong {
  line-height: 1.4;
  font-size: 0.93rem;
  font-weight: 550;
}
.county-card > span {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.notice h3 {
  font-size: 1.12rem;
}
.notice p {
  font-size: 0.95rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.83rem;
  line-height: 1.65;
}
.page-heading {
  padding: 25px 0 30px;
  max-width: 950px;
}
.page-heading h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.77rem;
  color: var(--muted);
  margin: 26px 0 15px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}
.panel .tag {
  margin-bottom: 20px;
}
.district-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.district-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (min-width: 851px) {
  .district-grid--six .district-card-body {
    padding: 14px;
  }
  .district-grid--six .district-card-body h3,
  .district-grid--six .district-card-body .h3 {
    font-size: 1rem;
  }
  .district-grid--six .representative-name {
    font-size: 0.95rem;
  }
}
.district-card {
  position: relative;
  display: block;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.district-card > p {
  margin-bottom: 6px;
}
.district-card .tag {
  margin-bottom: 18px;
}
.card-arrow {
  display: block;
  margin-top: 14px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #71809e;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.035em;
}
.observation {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 30px;
}
.avatar {
  width: 145px;
  aspect-ratio: 1;
  background: #374365;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px 20px;
  font-size: 0.93rem;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.events {
  list-style: none;
  padding: 0;
}
.events li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.events time {
  font-size: 0.85rem;
  color: var(--muted);
}
.prose {
  max-width: 850px;
}
.prose h2 {
  margin-top: 35px;
  font-size: 1.5rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.pre-line {
  white-space: pre-line;
}
.share-status {
  margin-left: 15px;
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 65px;
  padding: 35px 0;
  font-size: 0.82rem;
}
.footer > .wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer p {
  margin: 8px 0;
  max-width: 550px;
}
.footer-credit {
  text-align: center;
}
.faction-badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.5;
  background: var(--faction-color, #e5e7eb);
  color: var(--faction-text, #17213c);
}
.faction-tisza {
  --faction-color: #0000ad;
  --faction-text: #fff;
}
.faction-fidesz {
  --faction-color: #ff8c00;
  --faction-text: #17213c;
}
.faction-kdnp {
  --faction-color: #02ffff;
  --faction-text: #17213c;
}
.faction-mi-hazank {
  --faction-color: #476e3b;
  --faction-text: #fff;
}
.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.activity-stat {
  display: flex;
  flex-direction: column;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  text-align: center;
  text-decoration: none;
}
.activity-stat strong {
  font-size: 1.5rem;
  line-height: 1.3;
}
.activity-stat span {
  font-size: 0.75rem;
}
a.activity-stat:hover {
  border-color: var(--accent);
}
.seat-map {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-inline: auto;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg);
}
.seat-map path {
  fill: #c5ccd6;
  stroke: #7a879a;
  stroke-width: 1;
}
.seat-map .seat-selected {
  fill: var(--faction-color, #17213c);
  stroke: #fff;
  stroke-width: 6;
  paint-order: stroke fill;
}
.footer-version {
  white-space: nowrap;
}
.footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer nav a {
  min-height: 30px;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  z-index: 10;
  background: white;
  color: #17213c;
  padding: 12px;
}
.skip:focus {
  transform: translateY(0);
}
.district-card,
.panel,
.prose,
dd,
a {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .county-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .district-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header nav {
    gap: 16px;
  }
  .brand {
    width: 220px;
  }
  .split {
    gap: 24px;
  }
  .stats article {
    padding: 20px;
  }
  .stats strong {
    font-size: 1.2rem;
  }
}
@media (max-width: 767px) {
  .header nav {
    display: none;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    min-height: 0;
    padding: 20px 0;
  }
  .brand {
    width: 225px;
  }
  .hero {
    padding-top: 38px;
    padding-bottom: 28px;
  }
  .wide-only {
    display: none;
  }
  .edition-detail {
    display: none;
  }
  .search-card {
    padding: 20px;
    margin-top: 24px;
  }
  .search-line {
    flex-direction: column;
  }
  .search-line button {
    width: 100%;
  }
  .alternative {
    gap: 10px 18px;
  }
  .alternative span {
    width: 100%;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats article,
  .stats article:first-child {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid #33405d;
  }
  .stats article:last-child {
    border-bottom: 0;
  }
  .stats strong {
    font-size: 1.25rem;
    margin-bottom: 1px;
  }
  .section {
    padding: 30px 0;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .county-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .county-card {
    padding: 14px;
    min-height: 110px;
  }
  .county-card strong {
    font-size: 0.86rem;
  }
  .split,
  .district-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 21px;
  }
  .observation {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .avatar {
    width: 90px;
  }
  .page-heading {
    padding-top: 12px;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  dd {
    margin-bottom: 12px;
  }
  .footer > .wrap {
    flex-direction: column;
    gap: 20px;
  }
  .footer {
    margin-top: 40px;
  }
  .share-status {
    display: block;
    margin: 10px 0;
  }
  .notice {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Compact directory and map views. */
.hero {
  padding: 42px 0 24px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}
.hero .search-card {
  max-width: 100%;
  margin-top: 0;
}
.section.map-section {
  padding-top: 22px;
}
.map-section .section-heading {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.map-section .section-heading h2 {
  margin-bottom: 0;
}
.county-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.county-nav a {
  font-size: 0.85rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.district-person-card {
  padding: 0;
  overflow: hidden;
}
.district-person-card .portrait {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 2/3;
}
.district-card-body {
  padding: 22px;
}
.district-card-body .tag {
  margin-bottom: 12px;
}
.representative-name {
  font-size: 1.1rem;
  font-weight: 600;
}
.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  background: #2d3959;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.portrait-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  fill: #66718b;
}
.portrait img.is-unavailable {
  display: none;
}
.district-person-card .portrait {
  max-width: none;
}
.district-person-card .portrait-placeholder {
  max-height: 200px;
  margin: auto;
}
.representative-panel {
  padding: 24px;
}
.representative-panel.has-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 24px;
}
.representative-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.representative-heading {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.representative-panel .portrait {
  width: 128px;
}
.representative-identity h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.representative-mandate {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.representative-contacts p {
  margin: 0;
  font-size: 0.9rem;
}
.representative-committees {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.representative-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.representative-actions .button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.85rem;
}
.representative-actions .button:hover {
  border-color: var(--accent);
}
.representative-source {
  font-size: 0.8rem;
}
.representative-summary {
  display: grid;
  gap: 12px;
}
.representative-seating {
  margin: 0;
  text-align: center;
}
.representative-seating figcaption {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}
.page-meta .secondary {
  margin-left: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.district-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #202b48;
}
.map-viewport {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 490px;
  background: radial-gradient(ellipse at center, #2b3956, #1b2541);
}
.map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.map-canvas a path {
  fill: var(--faction-color, #637c94);
  stroke: #a3afc4;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.12s;
}
.map-canvas a:hover path,
.map-canvas a:focus path {
  stroke: #fff;
  stroke-width: 1.5;
}
.map-canvas a.map-selected path {
  stroke: #f2fff9;
  stroke-width: 1.5;
}
.map-canvas a:focus {
  outline: none;
}
.map-canvas a:focus path {
  stroke: white;
  stroke-width: 2;
}
.map-viewport.is-zoomed .map-canvas {
  touch-action: none;
  cursor: grab;
}
.map-viewport.is-zoomed .map-canvas:active {
  cursor: grabbing;
}
.map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.map-controls button {
  padding: 8px 14px;
  min-width: 44px;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.map-controls [data-map-zoom="in"],
.map-controls [data-map-zoom="out"] {
  font-size: 1.4rem;
}
.map-detail {
  padding: 24px;
  border-left: 1px solid var(--line);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.map-detail h3 {
  font-size: 1.08rem;
}
.map-detail .button {
  font-size: 0.8rem;
  padding: 10px 12px;
  gap: 6px;
}
.map-person-name {
  font-weight: 650;
  line-height: 1.35;
  margin: 14px 0 5px;
}
.map-portrait {
  width: 110px;
  height: 138px;
  object-fit: cover;
  object-position: top;
  border-radius: 9px;
  background: #2d3959;
}
.map-error {
  position: absolute;
  inset: 40% 24px auto;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
}
.district-map-detail {
  grid-template-columns: minmax(0, 1fr);
}
.district-map-detail .map-detail {
  display: none;
}
.district-map-detail .map-viewport {
  height: 420px;
}
.footer .wrap {
  align-items: center;
}
.footer nav {
  flex-direction: row;
  gap: 24px;
}
@media (max-width: 800px) {
  .representative-panel.has-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .seat-map {
    max-width: 180px;
  }
  .district-map {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-viewport {
    height: 400px;
  }
  .map-detail {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px;
    display: block;
    min-height: 80px;
  }
  .map-detail .map-portrait {
    float: left;
    width: 64px;
    height: 80px;
    margin: 0 16px 0 0;
  }
  .map-detail::after {
    content: "";
    display: block;
    clear: both;
  }
  .map-detail .map-person-name {
    margin-top: 0;
  }
  .map-detail .button {
    margin-top: 12px;
  }
}
@media (max-width: 560px) {
  .hero {
    padding: 28px 0 20px;
  }
  .hero .search-card {
    padding: 18px;
  }
  .map-viewport {
    height: 320px;
  }
  .district-map-detail .map-viewport {
    height: 340px;
  }
  .representative-panel {
    padding: 18px;
  }
  .representative-panel.has-summary {
    gap: 18px;
  }
  .representative-heading {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
  }
  .representative-panel .portrait {
    width: 80px;
  }
  .representative-identity h2 {
    font-size: 1.2rem;
  }
  .page-meta .secondary {
    margin-left: 0;
  }
  .district-person-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .district-person-card .portrait {
    height: auto;
    min-height: 0;
    align-self: start;
  }
  .district-card-body {
    padding: 18px;
  }
  .district-card-body h3 {
    font-size: 1.05rem;
  }
  .district-card-body .representative-name {
    font-size: 1rem;
  }
  .county-nav a {
    min-height: 40px;
  }
}

#settlement-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
#settlement-choices:empty {
  display: none;
}
#settlement-choices button {
  max-width: 100%;
  padding: 10px 14px;
  text-align: left;
  overflow-wrap: anywhere;
}
