.iv-donor-web-page main {
  padding-block: 40px 60px;
}
.iv-web-intro {
  margin-bottom: 28px;
}
.iv-web-intro p {
  max-width: 680px;
}
.iv-web-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.iv-web-controls label,
.iv-web-filter {
  display: grid;
  gap: 6px;
  font:
    13px "JetBrains Mono",
    monospace;
}
.iv-donor-web-page [hidden] {
  display: none !important;
}
.iv-web-controls input,
.iv-web-controls select,
.iv-web-controls button,
.iv-web-controls a,
.iv-web-filter input,
#iv-web-more,
#iv-web-retry {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font:
    13px "JetBrains Mono",
    monospace;
text-decoration: none;
}
.iv-web-controls button,
#iv-web-more,
#iv-web-retry {
  cursor: pointer;
}
.iv-web-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.iv-web-query {
  flex: 1;
  min-width: 160px;
}
.iv-web-controls button[type="submit"] {
  background: var(--iv-orange);
  color: var(--iv-ink);
}
.iv-web-toolbar {
  border-block: 1px solid var(--iv-ink);
  padding-block: 16px;
  margin-top: 24px;
}
#iv-web-canvas {
  position: relative;
}
#iv-web-svg {
  width: 100%;
  height: 650px;
  display: block;
  touch-action: pan-y pinch-zoom;
}
#iv-web-empty {
  position: absolute;
  inset: 40% 24px auto;
  text-align: center;
  pointer-events: none;
}
.iv-web-edge {
  stroke: var(--iv-ink);
  opacity: 0.26;
  cursor: pointer;
}
.iv-web-edge:hover {
  opacity: 0.8;
}
.iv-web-node {
  cursor: pointer;
}
.iv-web-node:focus,
.iv-web-node:focus-visible {
  outline: none;
}
.iv-web-node circle,
.iv-web-node rect {
  fill: var(--iv-paper);
  stroke: var(--iv-ink);
  stroke-width: 2;
}
.iv-web-node.iv-web-party-D rect {
  fill: var(--iv-data-blue, #397ac0);
  stroke: var(--iv-data-blue, #397ac0);
}
.iv-web-node.iv-web-party-R rect {
  fill: var(--iv-data-red, #ca5145);
  stroke: var(--iv-data-red, #ca5145);
}
.iv-web-node.iv-web-party-I rect,
.iv-web-node.iv-web-party-O rect {
  fill: var(--iv-purple, #8b56a8);
  stroke: var(--iv-purple, #8b56a8);
}
.iv-web-node .iv-web-dot {
  fill: color-mix(in srgb, var(--iv-data-dark, #242220) var(--iv-web-donor-darkness, 10%), var(--iv-data-paper, #fcfaf5));
}
.iv-web-node.iv-web-selected .iv-web-dot,
.iv-web-node.iv-web-selected rect {
  stroke: var(--iv-orange);
  stroke-width: 4;
}
.iv-web-node:hover circle,
.iv-web-node:hover rect {
  stroke: var(--iv-orange);
  stroke-width: 4;
}

.iv-web-node text {
  fill: var(--iv-ink);
  text-anchor: middle;
  font-family: "IBM Plex Sans", sans-serif;
}
.iv-web-node .iv-web-party-label {
  fill: var(--iv-data-paper, #fcfaf5);
}
.iv-web-node-label {
  paint-order: stroke;
  stroke: var(--iv-paper);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.iv-web-party-label {
  font-weight: bold !important;
}
.iv-web-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font:
    12px "JetBrains Mono",
    monospace;
}
#iv-web-details {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid currentColor;
}
.iv-web-filter {
  margin-top: 24px;
  max-width: 540px;
}
.iv-web-results {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.iv-web-results li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--iv-ink) 25%, transparent);
}
.iv-web-results button {
  color: var(--iv-ink);
  background: none;
  border: 0;
  min-height: 44px;
  padding: 12px 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.iv-web-results button:last-child:not(:first-child) {
  font:
    13px "JetBrains Mono",
    monospace;
  white-space: nowrap;
}
.iv-web-results button:hover {
  text-decoration: underline;
}
.iv-web-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 600px) {
  .iv-donor-web-page main {
    padding: 24px 16px 40px;
  }
  .iv-web-controls {
    gap: 8px;
  }
  .iv-web-query {
    flex-basis: 100%;
  }
  .iv-web-results li {
    gap: 8px;
  }
  .iv-web-legend {
    gap: 10px;
  }
}


.iv-web-instructions { margin: 24px 0 0; max-width: none; }
.iv-web-table-wrap { margin-top: 20px; }
.iv-web-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 11px;
  background: color-mix(in srgb, var(--iv-paper) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--iv-ink) 30%, transparent);
  color: var(--iv-ink);
  pointer-events: none;
  font: 12px/1.35 'IBM Plex Sans', sans-serif;
}
.iv-web-tooltip strong { display: block; font-size: 15px; line-height: 1.2; }
.iv-web-tooltip span { display: block; margin-top: 3px; font-size: 11px; }
.iv-web-tooltip p { margin: 6px 0 0; font: inherit; color: inherit; }
.iv-web-tooltip strong, .iv-web-tooltip span { color: inherit; }

.iv-web-node .iv-web-node-label { text-anchor: start; pointer-events: none; }
.iv-web-node.iv-web-muted .iv-web-node-label { display: none; }
#iv-web-share-status { font-size: 13px; }
#iv-web-share-fallback { display: grid; gap: 6px; margin-top: 12px; }
#iv-web-share-link { width: 100%; min-height: 44px; }
.iv-web-table-jump {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--iv-ink);
  background: var(--iv-paper);
  color: var(--iv-ink);
  font: 14px 'JetBrains Mono', monospace;
  cursor: pointer;
}
.iv-web-table-jump span { color: var(--iv-orange); }
@media (min-width: 769px) {
  .iv-web-table-jump { display: inline-flex; }
}

body.iv-donor-web-page.iv-web-compact-header .iv-global-banner.iv-site-header {
  height: 40px;
  min-height: 40px;
}
body.iv-donor-web-page.iv-web-compact-header .iv-global-banner.iv-site-header > .iv-banner-shell.iv-header-inner {
  height: 39px;
  min-height: 39px;
  gap: 14px;
}
body.iv-donor-web-page.iv-web-compact-header .iv-global-banner.iv-site-header .iv-header-logo {
  width: 130px;
  max-height: 26px;
}
body.iv-donor-web-page.iv-web-compact-header .iv-global-banner.iv-site-header .iv-header-logo img {
  width: 100%;
  max-height: 26px;
}
body.iv-donor-web-page.iv-web-compact-header .iv-global-banner.iv-site-header :is(.iv-header-nav > a, .iv-header-nav > .dropdown_wrapper > a, .iv-header-actions > a, .state-selector, .atlas-home-toggle, .iv-menu-toggle) {
  height: 28px;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px !important;
}
body.iv-donor-web-page.iv-web-compact-header .iv-global-banner.iv-site-header .iv-menu-toggle {
  width: 30px;
  min-width: 30px;
  padding: 0;
}
body.iv-donor-web-page.iv-web-compact-header .iv-global-banner.iv-site-header .iv-menu-search-icon {
  width: 16px;
  height: 16px;
}
body.iv-donor-web-page.iv-web-compact-header #iv-web-main {
  margin-top: var(--iv-web-header-gap, 0px);
}

@media (max-width: 600px) {
  #iv-web-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px 8px;
  }
  #iv-web-search > label:first-child { grid-column: 1; grid-row: 1; }
  #iv-web-state-label { grid-column: 2; grid-row: 1; }
  #iv-web-search .iv-web-query { grid-column: 1; grid-row: 2; min-width: 0; }
  #iv-web-search > button { grid-column: 2; grid-row: 2; }
  #iv-web-search :is(input, select) {
    width: 100%;
    min-width: 0;
    font-size: 16px;
    text-align: left;
    padding-inline: 10px;
  }
  .iv-web-instructions { margin-top: 16px; font-size: 14px; line-height: 1.5; }
  .iv-web-toolbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "back back forward forward reset reset"
      "cycle cycle cycle share share share"
      "fit fit plus plus minus minus";
    gap: 8px;
    margin-top: 16px;
    padding-block: 12px;
    align-items: end;
  }
  .iv-web-toolbar :is(button, select) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 12px;
  }
  #iv-web-back { grid-area: back; }
  #iv-web-forward { grid-area: forward; }
  #iv-web-reset { grid-area: reset; }
  #iv-web-share { grid-area: share; }
  .iv-web-toolbar > label { grid-area: cycle; min-width: 0; font-size: 12px; }
  #iv-web-cycle { font-size: 16px; }
  #iv-web-fit { grid-area: fit; }
  #iv-web-plus { grid-area: plus; }
  #iv-web-minus { grid-area: minus; }
}

@media (max-width: 600px) {
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header {
    height: 56px;
    min-height: 56px;
  }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header > .iv-banner-shell.iv-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 24px);
    height: 55px;
    min-height: 55px;
    gap: 8px;
  }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header .iv-header-logo {
    width: min(130px, 100%);
    max-height: 30px;
  }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header .iv-header-logo img {
    width: 100%;
    max-height: 30px;
  }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header .iv-header-actions { gap: 6px; }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header :is(.iv-header-actions > a, .atlas-home-toggle, .iv-menu-toggle) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 6px 8px;
    font-size: 11px !important;
    line-height: 1;
  }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header .iv-donate-link span { display: none; }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header .iv-menu-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }
  body.iv-page.iv-donor-web-page .iv-global-banner.iv-site-header .iv-menu-search-icon { width: 18px; height: 18px; }
  body.iv-page.iv-donor-web-page #iv-web-main { margin-top: 0; }
}

.iv-web-selection {
  padding: 12px 0;
  border-bottom: 1px solid var(--iv-ink);
  align-items: center;
  gap: 8px;
}
.iv-web-selection > a { text-decoration: none; }
.iv-web-selection > strong { flex: 1; min-width: 180px; font: 500 20px/1.3 'IBM Plex Sans', sans-serif; overflow-wrap: anywhere; }
.iv-web-ranking-controls { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.iv-web-ranking-switch { display: inline-flex; }
.iv-web-ranking-switch button {
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--iv-ink); border-radius: 0;
  background: transparent; color: var(--iv-ink); font: 13px 'JetBrains Mono', monospace; cursor: pointer;
}
.iv-web-ranking-switch button + button { margin-left: -1px; }
.iv-web-ranking-switch button[aria-pressed="true"] { background: var(--iv-orange); color: var(--iv-data-dark, #242220); }
.iv-web-ranking-controls .iv-web-filter { margin: 0; width: min(100%, 320px); }
.iv-web-ranking-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: transparent; }
.iv-web-ranking-table th, .iv-web-ranking-table td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid color-mix(in srgb, var(--iv-ink) 25%, transparent); }
.iv-web-ranking-table thead th { font: 12px/1.4 'JetBrains Mono', monospace; border-bottom-color: var(--iv-ink); }
.iv-web-ranking-table th:first-child { width: 34%; padding-left: 0; }
.iv-web-ranking-table th:nth-child(2) { width: 54%; }
.iv-web-ranking-table th:last-child, .iv-web-ranking-table td:last-child { width: 12%; text-align: right; padding-right: 0; }
.iv-web-rank-name { display: block; text-align: left; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--iv-ink); font: 500 17px/1.4 'IBM Plex Sans', sans-serif; cursor: pointer; overflow-wrap: anywhere; }
.iv-web-rank-name:hover, .iv-web-ranked-selected .iv-web-rank-name { color: var(--iv-accent-text, var(--iv-orange)); }
.iv-web-rank-meta { display: block; margin-top: 4px; font: 12px/1.4 'IBM Plex Sans', sans-serif; }
.iv-web-connection-count { display: block; margin: 0 0 6px; font: 12px/1.4 'JetBrains Mono', monospace; }
.iv-web-connection-symbols { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.iv-web-connection-chip { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; padding: 0; border: 0; background: transparent; color: var(--iv-ink); cursor: pointer; }
.iv-web-symbol { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font: 600 10px/1 'IBM Plex Sans', sans-serif; }
.iv-web-symbol-donor { width: 13px; height: 13px; border-radius: 50%; background: var(--iv-ink); }
.iv-web-symbol-candidate { border: 1px solid var(--iv-ink); border-radius: 2px; background: var(--iv-paper); }
.iv-web-symbol-party-D { background: var(--iv-data-blue, #397ac0); border-color: var(--iv-data-blue, #397ac0); color: var(--iv-data-paper, #fcfaf5); }
.iv-web-symbol-party-R { background: var(--iv-data-red, #ca5145); border-color: var(--iv-data-red, #ca5145); color: var(--iv-data-paper, #fcfaf5); }
.iv-web-symbol-party-I, .iv-web-symbol-party-O { background: var(--iv-purple, #8b56a8); border-color: var(--iv-purple, #8b56a8); color: var(--iv-data-paper, #fcfaf5); }
.iv-web-symbol-more { min-width: 28px; min-height: 28px; padding: 2px 6px; background: transparent; border: 1px solid color-mix(in srgb, var(--iv-ink) 35%, transparent); color: var(--iv-ink); font: 11px 'JetBrains Mono', monospace; cursor: pointer; }
.iv-web-separation { font: 16px/1.4 'JetBrains Mono', monospace; }
.iv-donor-web-page .iv-web-ranking-table tr:nth-child(even) { background: transparent; }
#iv-web-table-status, .iv-web-table-note { font-size: 13px; }
.iv-web-table-note { margin-top: 20px; }
@media (max-width: 600px) {
  .iv-web-selection { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .iv-web-selection > strong { grid-column: 1 / -1; min-width: 0; font-size: 17px; }
  .iv-web-selection > :is(button, a) { grid-area: auto; padding: 8px 4px; text-align: center; font-size: 12px; }
  .iv-web-ranking-controls { gap: 12px; }
  .iv-web-ranking-switch { width: 100%; }
  .iv-web-ranking-switch button { flex: 1; }
  .iv-web-ranking-controls .iv-web-filter { width: 100%; }
  .iv-web-ranking-controls input { font-size: 16px; min-width: 0; }
  .iv-web-ranking-table th, .iv-web-ranking-table td { padding: 12px 6px; }
  .iv-web-ranking-table th:first-child { width: 36%; }
  .iv-web-ranking-table th:nth-child(2) { width: 48%; }
  .iv-web-ranking-table th:last-child, .iv-web-ranking-table td:last-child { width: 16%; }
  .iv-web-ranking-table thead th { font-size: 11px; }
  .iv-web-rank-name { font-size: 14px; }
  .iv-web-rank-meta, .iv-web-connection-count { font-size: 11px; }
  .iv-web-connection-chip { width: 26px; height: 28px; flex-basis: 26px; }
  .iv-web-separation { font-size: 14px; }
}
