body.representatives-page .site-header {
  display: flex;
  height: auto;
  min-height: 84px;
  padding-block: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.representatives-nav, .representatives-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.representatives-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

.representatives-intro { margin-bottom: 28px; }
.representatives-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.representatives-field { display: grid; gap: 6px; min-width: 0; }
.representatives-field label { color: var(--muted); font-size: 13px; }
.representatives-field select { min-height: 44px; font-size: 16px; width: 100%; }
.representatives-toolbar .representatives-field { min-width: min(100%, 16rem); }
.representatives-actions button { min-height: 44px; }
.representatives-actions button:disabled { opacity: .55; }
.representatives-actions .representatives-print { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.representatives-status { font-size: 14px; color: var(--muted); min-height: 1.3em; margin: 0 0 10px; }
.representatives-status:empty { display: none; }
.representatives-lookup { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.representatives-lookup h2 { font-size: 17px; }
.representatives-lookup p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.representatives-lookup .representatives-links a { display: inline-flex; align-items: center; min-height: 44px; }
.representatives-load-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.representatives-load-status button { margin-bottom: 10px; min-height: 44px; }
.representatives-office-source { display: block; font-size: 12px; }
.representatives-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr); align-items: start; gap: 20px; }
.representatives-map { margin: 0; padding: clamp(12px, 3vw, 26px); }
.representatives-map figcaption { font: 24px Georgia, serif; }
.representatives-map svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.representatives-map .map-note { font-size: 13px; }
.representatives-area { fill: #304356; stroke: var(--bg); stroke-width: 1px; vector-effect: non-scaling-stroke; fill-rule: evenodd; }
.representatives-area[data-shape] { cursor: pointer; }
.representatives-area[data-shape]:hover { fill: #638f83; stroke: var(--ink); }
.representatives-area[data-shape]:focus-visible { fill: #638f83; stroke: var(--ink); stroke-width: 3px; outline: none; }
.representatives-area.selected { fill: #9edac5; stroke: var(--bg); }
.representatives-outline { fill: var(--surface2); stroke: var(--line); fill-rule: evenodd; }
.representatives-directory, .representatives-result { display: grid; gap: 16px; min-width: 0; }
.representatives-result p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.representatives-person { border-top: 1px solid var(--line); padding-top: 12px; overflow-wrap: anywhere; }
.representatives-person h3 { font-size: 19px; }
.representatives-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 9px; }
.representatives-links a, .representatives-table a { font-size: 13px; }
.representatives-offices { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.representatives-person .representatives-offices { margin-top: 12px; }
.representatives-offices address { font-style: normal; }
.representatives-offices strong { display: block; color: var(--ink); font-weight: 600; }
.representatives-offices li { color: var(--muted); line-height: 1.45; }
.representatives-roster > h2 { font: clamp(24px, 4vw, 36px) Georgia, serif; }
.representatives-roster > p { margin-top: 6px; }
.representatives-roster section { margin-top: 23px; }
.representatives-table { width: 100%; border-collapse: collapse; overflow-wrap: anywhere; }
.representatives-table th, .representatives-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 9px; font-size: 13px; }
.representatives-table th { color: var(--muted); font-weight: 600; }
.representatives-table th:last-child { width: 32%; }
.representatives-missing { color: var(--muted); }
.representatives-sources {
  display: grid;
  gap: 18px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.representatives-sources p { margin: 3px 0 7px; }
.representatives-sources a { display: inline-block; margin-right: 14px; }

@media screen and (max-width: 740px) {
  .representatives-layout, .representatives-sources { grid-template-columns: minmax(0, 1fr); }
  .representatives-table, .representatives-table tbody, .representatives-table tr { display: block; }
  .representatives-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .representatives-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .representatives-table td { border: 0; padding: 0; }
  .representatives-table td:nth-child(2) { grid-column: span 2; }
  .representatives-table td:last-child { grid-column: 1 / -1; }
  .representatives-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
}

@page { size: landscape; margin: 12mm; }

@media print {
  .representatives-load-status { display: none; }
  .representatives-page { --ink: #111; --muted: #333; --line: #bbb; color: #111; background: white; color-scheme: light; }
  .representatives-page .site-header, .representatives-page .skip, .representatives-intro, .representatives-toolbar,
  .representatives-layout, .representatives-lookup, .representatives-status, .representatives-sources { display: none !important; }
  .representatives-page main { padding: 0; }
  .representatives-roster section { margin-top: 12px; }
  .representatives-roster section h3 { break-after: avoid; }
  .representatives-table { table-layout: fixed; }
  .representatives-table tbody tr { break-inside: avoid; }
  .representatives-table td, .representatives-table th { padding: 4px; font-size: 9pt; line-height: 1.25; }
  .representatives-table th:nth-child(1) { width: 11%; }
  .representatives-table th:nth-child(2) { width: 16%; }
  .representatives-table th:nth-child(3) { width: 21%; }
  .representatives-table th:nth-child(4) { width: 10%; }
  .representatives-table th:nth-child(5) { width: 13%; }
  .representatives-table th:last-child { width: 29%; }
  .representatives-table .representatives-offices { display: block; }
  .representatives-table .representatives-offices li { line-height: inherit; }
  .representatives-table .representatives-offices li + li { margin-top: 4px; }
  .representatives-office-source { display: none; }
  .representatives-table a { color: #111; font-size: inherit; text-decoration: none; }
  .representatives-table a[data-print-url] { font-size: 0; }
  .representatives-table a[data-print-url]::after { content: attr(data-print-url); font-size: 8pt; }
}
