/* ========================================================================== */
/* INTEGRATED: Atlas filter and compare */
/* ========================================================================== */

body.sn-compare-page,
body.sn-filter-page {
  display: none;
}

.sn-compare-page,
.sn-filter-page {
  min-height: 100vh;
  background: var(--iv-paper);
  color: var(--iv-ink);
}

.sn-compare-page .orange_links,
.sn-filter-page .orange_links {
  color: var(--iv-on-accent);
}
.cta-btn{
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

.sn-compare-topbar,
.sn-filter-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 46px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--iv-rule-strong);
  background: var(--iv-paper);
}

[data-theme="dark"] .sn-compare-topbar,
[data-theme="dark"] .sn-filter-topbar {
  background: var(--iv-paper);
}

.sn-atlas-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.sn-compare-brand,
.sn-filter-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--iv-ink);
  font-size: 22px;
  font-weight: 250;
  text-decoration: none;
}

.sn-compare-brand-mark,
.sn-filter-brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 800;
}

.sn-compare-banner-wordmark,
.sn-filter-banner-wordmark,
.sn-compare-title-wordmark,
.sn-filter-title-wordmark {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  line-height: 1.1;
}

.sn-brand-atlas {
  font-family: var(--iv-font-sans);
  font-weight: 350;
}

.sn-atlas-byline{
  font-size: 16px !important;
  margin-top:-8px !important;
  font-weight: 300 !important;
}

.sn-filter-empty-cell{
  font-size: 16px !important;
  font-family: var(--iv-font-sans);
}

.sn-brand-compare,
.sn-brand-filter {
  font-family: var(--iv-font-mono);
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
}

.sn-compare-brand small,
.sn-filter-brand small {
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  line-height: 1.35;
}

.sn-compare-actions,
.sn-filter-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.sn-atlas-tools {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-width: 0;
}

.sn-atlas-tools .atlas-home-wrap {
  margin-left: 0;
}

.sn-atlas-tools .atlas-home-toggle.sn-atlas-search-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  min-width: 36px;
  min-height: 30px;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 5px;
  background: var(--iv-strong-bg) !important;
  color: var(--iv-strong-text) !important;
}

.sn-atlas-search-emblem {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.sn-atlas-search-emblem-dark,
[data-theme="dark"] .sn-atlas-search-emblem-light {
  display: none;
}

[data-theme="dark"] .sn-atlas-search-emblem-dark {
  display: block;
}

.sn-atlas-header-row #theme-toggle {
  flex: 0 0 auto;
  justify-self: end;
  width: 36px;
  min-width: 36px;
  padding: 4px;
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

.sn-icon-button,
#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: var(--iv-strong-bg);
  color: var(--iv-strong-text);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.sn-theme-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
  fill: currentColor;
  line-height: 1;
}

.sn-theme-icon-sun {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sn-theme-icon-moon {
  width: 22px;
  height: 22px;
}

.sn-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: var(--iv-strong-bg);
  color: var(--iv-strong-text);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.sn-home-button:hover,
.sn-home-button:focus-visible,
.sn-icon-button:hover,
.sn-icon-button:focus-visible,
#theme-toggle:hover,
#theme-toggle:focus-visible {
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

.sn-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

@media (max-width: 560px) {
  .sn-atlas-header-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sn-compare-actions,
  .sn-filter-actions {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-self: stretch;
    width: 100%;
    gap: 5px;
  }

  .sn-atlas-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .sn-compare-actions .sn-home-button,
  .sn-filter-actions .sn-home-button {
    box-sizing: border-box;
    height: 30px;
    min-height: 28px;
    padding: 4px 6px;
    font-size: 11px;
  }
}

.sn-compare-hero,
.sn-filter-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 1000px);
  margin: 0 auto 22px;
  text-align: center;
}

.sn-compare-hero p,
.sn-filter-hero p {
  margin: 0;
  color: var(--iv-ink);
  font-family: var(--iv-font-sans);
  font-size: 16px;
  line-height: 1.45;
}

.sn-compare-title-wordmark,
.sn-filter-title-wordmark {
  margin: 0;
  font-size: 40px;
  font-weight: 650;
}

.sn-compare-title-wordmark .sn-brand-atlas,
.sn-filter-title-wordmark .sn-brand-atlas {
  font-weight: 350;
}


.sn-filter-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.sn-filter-statline,
.sn-filter-state-heading,
.sn-filter-builder-head,
.sn-filter-map-head,
.sn-filter-results-head {
  font-family: var(--iv-font-mono);
}

.sn-filter-statline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 620px;
  margin-top: 4px;
}

.sn-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sn-filter-state-panel,
.sn-filter-builder,
.sn-filter-map-section,
.sn-filter-results {
  margin-top: 60px;
}

.sn-filter-state-heading,
.sn-filter-builder-head,
.sn-filter-map-head,
.sn-filter-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sn-filter-state-heading span,
.sn-filter-builder-head h2:not(.iv-section-title),
.sn-filter-map-head h2:not(.iv-section-title),
.sn-filter-results-head h2:not(.iv-section-title) {
  margin: 0;
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.sn-filter-map-head > p,
.sn-filter-results-head > p {
  margin: 4px 0 0;
  font-size: 11px;
}

.sn-filter-state-actions {
  display: inline-flex;
  gap: 6px;
}

.sn-filter-builder-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}


.sn-export-button,
.sn-export-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 2px solid var(--iv-ink);
  border-radius: 2px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}



.sn-export-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 116px;
  padding: 5px;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 7px;
  background: var(--iv-paper);
  box-shadow: 2px 2px 5px var(--iv-shadow);
}



.sn-filter-state-actions button,
.sn-filter-row-action {
  min-height: 28px;
  padding: 5px 9px;
  border: 2px solid var(--iv-ink);
  border-radius: 2px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sn-filter-state-actions button:hover,
.sn-filter-row-action:hover,
.sn-filter-state-actions button:focus-visible,
.sn-filter-row-action:focus-visible {
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

.sn-filter-state-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sn-state-chip {
  min-width: 46px;
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid var(--iv-ink);
  border-radius: 2px;
  background: transparent;
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.sn-state-chip[aria-pressed="true"] {
  background: var(--iv-orange-2);
  color: var(--iv-dark);
  border: 2px solid var(--iv-ink);
}

.sn-filter-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.sn-filter-rows.is-input-mode {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sn-filter-row {
  display: grid;
  grid-template-columns: 24px minmax(140px, 1fr) minmax(82px, 0.45fr) minmax(0, 1.45fr) 24px;
  align-items: end;
  gap: 6px;
  padding: 6px 8px;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 2px;
  background: transparent;
  box-shadow: 2px 2px 5px var(--iv-shadow);
}

.sn-filter-rank {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--iv-ink);
  border-radius: 5px;
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 900;
}

.sn-filter-field {
  display: grid;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 2px;
}

.sn-filter-field label {
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.sn-filter-input,
.sn-filter-select {
  width: 100%;
  min-height: 25px;
  margin: 0;
  padding: 2px 6px;
  overflow: hidden;
  border: 0;
  border-bottom: 2px solid var(--iv-ink);
  border-radius: 0;
  background: transparent;
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sn-filter-input:focus,
.sn-filter-select:focus {
  border-color: var(--iv-orange-2);
}

.sn-filter-value-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.sn-filter-text-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.sn-filter-text-control .sn-filter-value-pair {
  min-width: 0;
}

.sn-filter-rows.is-input-mode .sn-filter-value-pair {
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  gap: 4px;
}

@media (min-width: 901px) {
  .sn-filter-rows.is-input-mode .sn-filter-row {
    grid-template-columns: 20px minmax(82px, 0.9fr) minmax(58px, 0.4fr) minmax(96px, 1.15fr) 20px;
    gap: 4px;
    padding: 5px 6px;
  }

  .sn-filter-rows.is-input-mode .sn-filter-input,
  .sn-filter-rows.is-input-mode .sn-filter-select {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 11px;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .sn-filter-rows.is-input-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sn-filter-text-control.is-primary {
  grid-template-columns: minmax(0, 1fr);
}

.sn-filter-slider {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.sn-filter-slider-top {
  display: block;
  align-items: center;
  min-width: 0;
}

.sn-filter-slider-operator {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 24px;
  margin: 0;
  padding: 2px 6px;
  overflow: hidden;
  border: 1.5px solid var(--iv-ink);
  border-radius: 5px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
}

.sn-filter-slider-values,
.sn-filter-slider-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.sn-filter-slider-values span,
.sn-filter-slider-scale span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sn-filter-slider-scale {
  color: var(--iv-neutral);
  font-size: 11px;
  font-weight: 750;
}

.sn-filter-slider-track {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}

.sn-filter-slider-track::before,
.sn-filter-slider-track::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 0;
  height: 5px;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.sn-filter-slider-track::before {
  background: var(--iv-neutral-2);
}

.sn-filter-slider-track::after {
  right: calc(100% - var(--range-end));
  left: var(--range-start);
  background: var(--iv-orange-2);
}

.sn-filter-slider.is-outside .sn-filter-slider-track::after {
  display: none;
}

.sn-filter-slider.is-outside .sn-filter-slider-track::before {
  background: linear-gradient(
    to right,
    var(--iv-orange-2) 0%,
    var(--iv-orange-2) var(--range-start),
    var(--iv-neutral-2) var(--range-start),
    var(--iv-neutral-2) var(--range-end),
    var(--iv-orange-2) var(--range-end),
    var(--iv-orange-2) 100%
  );
}

.sn-filter-slider-handle {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--iv-ink);
  border-radius: 5px;
  background: var(--iv-paper);
  transform: translate(-50%, -50%);
  cursor: pointer;
  touch-action: none;
}

.sn-filter-slider-handle::after {
  position: absolute;
  inset: -9px;
  content: "";
}

.sn-filter-slider-handle:hover,
.sn-filter-slider-handle:focus-visible {
  background: var(--iv-orange-2);
}

.sn-filter-remove {
  display: grid;
  grid-column: -1;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid var(--iv-ink);
  border-radius: 5px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.sn-filter-remove:hover,
.sn-filter-remove:focus-visible {
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

.sn-filter-table-shell {
  overflow: hidden;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 8px;
  background: transparent;
  box-shadow: 2px 2px 5px var(--iv-shadow);
}

.sn-filter-map-section {
  padding: 0;
}

.sn-filter-map {
  position: relative;
  width: 100%;
  overflow: visible;
}

.sn-filter-svg-map {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
}

.sn-filter-svg-label {
  fill: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.sn-filter-svg-district {
  fill: var(--iv-ink);
  stroke: transparent;
  cursor: crosshair;
  transition:
    cx 420ms ease,
    cy 420ms ease,
    opacity 240ms ease;
}

.sn-filter-svg-district.is-match {
  fill: var(--iv-ink);
}

.sn-filter-legend {
  display: none;
}

.sn-filter-map-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  min-width: 210px;
  max-width: 360px;
  padding: 9px 10px;
  border: 2px solid var(--iv-ink);
  border-radius: 6px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  box-shadow: 2px 2px 5px var(--iv-shadow-strong);
  transform: translate3d(0, 0, 0);
  transition: opacity 120ms ease;
  will-change: transform, opacity;
}

.sn-filter-map-tooltip.is-visible {
  opacity: 1;
}

.sn-map-tooltip-title {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--iv-neutral-2);
  font-size: 12px;
  font-weight: 950;
}

.sn-map-tooltip-lines {
  display: grid;
  gap: 5px;
  padding-top: 6px;
}

.sn-map-tooltip-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto 16px;
  align-items: center;
  gap: 8px;
}

.sn-map-tooltip-row span {
  min-width: 0;
  color: var(--iv-neutral);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sn-map-tooltip-row strong {
  color: var(--iv-ink);
  font-weight: 900;
  white-space: nowrap;
}

.sn-map-tooltip-row b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.sn-map-tooltip-row b.is-pass {
  color: var(--iv-accent-text);
}

.sn-map-tooltip-row b.is-fail {
  color: var(--iv-ink);
}

.sn-filter-table-shell {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  max-height: 72vh;
  overflow: auto;
  scrollbar-color: var(--iv-ink) var(--iv-neutral-2);
  scrollbar-width: thin;
}

.sn-filter-table-shell::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  background-color: var(--iv-neutral-2);
}

.sn-filter-table-shell::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: var(--iv-ink);
}

.sn-filter-table {
  width: max-content;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.sn-filter-table th,
.sn-filter-table td {
  padding: 4px 6px;
  border-right: 1px solid var(--iv-neutral-2);
  border-bottom: 1px solid var(--iv-neutral-2);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
  vertical-align: top;
}

.sn-filter-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--iv-panel);
  color: var(--iv-neutral);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.sn-filter-table th:last-child,
.sn-filter-table td:last-child {
  border-right: 0;
}


.sn-filter-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.sn-filter-sort span {
  color: var(--iv-accent-text);
  font-size: 11px;
  font-weight: 900;
}

.sn-filter-district-link {
  color: var(--iv-ink);
  font-weight: 850;
  text-decoration: none;
}

.sn-filter-district-link:hover,
.sn-filter-district-link:focus-visible {
  color: var(--iv-accent-text);
}

.sn-filter-empty-cell {
  padding: 22px !important;
  color: var(--iv-neutral) !important;
  text-align: center !important;
}


.sn-result-chip,
.sn-demographic-chip,
.sn-yes-no-chip,
.sn-party-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 6px;
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.sn-party-pill {
  background: var(--iv-neutral-2);
  color: var(--iv-ink);
}




.sn-list-value,
.sn-legislator-list {
  display: grid;
  gap: 4px;
}

.sn-legislator-item,
.sn-margin-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.sn-list-more,
.sn-value-note {
  color: var(--iv-neutral);
  font-size: 11px;
}












.not-found-go:hover,
.not-found-go:focus-visible {
  background: var(--iv-paper);
  color: var(--iv-ink);
}

@media (max-width: 900px) {
  .sn-filter-rows,
  .sn-filter-rows.is-input-mode {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .sn-filter-state-heading,
  .sn-filter-builder-head,
  .sn-filter-map-head,
  .sn-filter-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sn-filter-title-wordmark {
    font-size: 40px;
  }
}

@media (max-width: 420px) {
  .sn-filter-row {
    position: relative;
    grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    padding-right: 34px;
  }

  .sn-filter-row .sn-filter-rank {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
  }

  .sn-filter-row .sn-filter-field {
    grid-column: auto;
  }

  .sn-filter-row .sn-filter-field-select {
    grid-row: 1;
    grid-column: 2;
  }

  .sn-filter-row .sn-filter-field-operator {
    grid-row: 1;
    grid-column: 3;
  }

  .sn-filter-row .sn-filter-field-value {
    grid-row: 2;
    grid-column: 2 / 4;
  }

  .sn-filter-slider {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 22px auto;
    row-gap: 2px;
    align-items: center;
  }

  .sn-filter-slider-operator {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 22px;
    min-height: 0;
    padding: 1px 4px;
    border: 1.5px solid var(--iv-ink);
    border-radius: 5px;
    background: var(--iv-paper);
    color: var(--iv-ink);
    font-family: var(--iv-font-mono);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
  }

  .sn-filter-slider-values {
    grid-row: 1;
    grid-column: 1;
  }

  .sn-filter-slider-track {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
  }

  .sn-filter-slider-scale {
    grid-row: 3;
    grid-column: 1;
  }

  .sn-filter-slider.is-primary {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 22px auto;
  }

  .sn-filter-text-control {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  .sn-filter-text-control.is-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .sn-filter-row .sn-filter-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    grid-column: auto;
  }

  .sn-filter-map {
    overflow: visible;
  }

  .sn-filter-svg-map {
    width: 100%;
    min-width: 0;
  }

  .sn-filter-svg-label {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .sn-filter-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 22px;
  }

  .sn-filter-state-heading {
    align-items: center;
    text-align: center;
  }

  .sn-filter-state-actions {
    justify-content: center;
    width: 100%;
  }

  .sn-filter-builder-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sn-filter-state-chips {
    justify-content: center;
  }

  .not-found-shell {
    padding: 22px 12px 56px;
  }

  .not-found-panel {
    display: block;
    width: 100%;
    padding: 28px 16px;
  }

  .not-found-copy {
    font-size: 15px;
  }

  .not-found-finder {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .not-found-field {
    text-align: left;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .sn-filter-table th,
  .sn-filter-table td {
    padding: 2px 3px;
    font-size: 11px;
    line-height: 1.1;
    vertical-align: middle;
  }

  .sn-filter-table th {
    font-size: 11px;
    white-space: normal;
  }

  .sn-filter-table-shell {
    width: 100%;
  }

  .sn-filter-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .sn-filter-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sn-filter-table .sn-result-chip,
  .sn-filter-table .sn-demographic-chip,
  .sn-filter-table .sn-yes-no-chip,
  .sn-filter-table .sn-party-pill {
    max-width: 100%;
    min-height: 16px;
    padding: 2px 4px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
  }

  .sn-filter-table th:nth-child(3),
  .sn-filter-table td:nth-child(3) {
    display: none;
  }
}


.sn-compare-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.sn-compare-hero p {
  width: min(100%, 580px);
}

.sn-compare-heading {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.sn-compare-heading h1 {
  margin: 0;
}

.sn-compare-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.sn-compare-export-actions .sn-icon-button,
.sn-compare-export-actions .sn-export-menu {
  flex: 0 0 auto;
}

.sn-export-menu {
  position: relative;
  display: inline-flex;
}

.sn-export-button,
.sn-export-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 5px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.sn-export-button:hover,
.sn-export-button:focus-visible,
.sn-export-menu-item:hover,
.sn-export-menu-item:focus-visible {
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

.sn-export-menu-button::after {
  content: "▾";
  margin-left: 7px;
  font-size: 11px;
  line-height: 1;
}

.sn-export-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 96px;
  padding: 5px;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 7px;
  background: var(--iv-paper);
  box-shadow: 2px 2px 5px var(--iv-shadow);
}

.sn-export-menu-list[hidden] {
  display: none;
}

.sn-export-menu-item {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--iv-ink);
  text-align: left;
}

.sn-compare-heading p,
.sn-compare-statline {
  margin: 7px 0 0;
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.sn-compare-statline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 580px;
}

.sn-compare-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sn-compare-table-shell {
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 10px;
  background: transparent;
  box-shadow: 2px 2px 5px var(--iv-shadow);
}

.sn-compare-scroll {
  max-height: calc(100vh - 172px);
  overflow: auto;
}

.sn-compare-table {
  width: auto;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.sn-compare-table th,
.sn-compare-table td {
  border-right: 1px solid var(--iv-neutral-2);
  border-bottom: 1px solid var(--iv-neutral-2);
  vertical-align: top;
}

.sn-compare-table th:last-child,
.sn-compare-table td:last-child {
  border-right: 0;
}

.sn-compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 70px;
  padding: 7px;
  background: var(--iv-panel);
}

.sn-row-heading,
.sn-row-control-cell {
  position: sticky;
  left: 0;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  background: var(--iv-panel);
}

.sn-compare-table thead .sn-row-heading {
  z-index: 24;
}

.sn-row-control-cell {
  z-index: 16;
  padding: 10px;
  background: var(--iv-paper);
  box-shadow: 1px 0 0 var(--iv-neutral-2);
}

.sn-compare-table .sn-column-control-cell,
.sn-compare-table .sn-row-control-cell {
  vertical-align: middle;
}

.sn-column-control-cell {
  min-width: max-content;
  max-width: 200px;
}

.sn-value-cell {
  min-width: 0;
  max-width: 200px;
  min-height: 64px;
  padding: 10px;
  background: transparent;
  font-family: var(--iv-font-mono);
  font-size: 13px;
  line-height: 1.28;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sn-compare-table .sn-value-cell {
  vertical-align: middle;
}

.sn-compare-table tbody tr:nth-child(even) .sn-value-cell,
.sn-compare-table tbody tr:nth-child(even) .sn-row-control-cell {
  background: var(--iv-rule-soft);
}

.sn-compare-table tbody tr:nth-child(even) .sn-row-control-cell {
  background: var(--iv-paper);
}

.sn-row-heading-label {
  display: block;
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  letter-spacing: -0.025em
}

.sn-selector-stack {
  position: relative;
  display: grid;
  gap: 7px;
  width: 100%;
}

.sn-selector-remove {
  position: absolute;
  top: -3px;
  right: -2px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--iv-ink);
  border-radius: 5px;
  background: var(--iv-paper);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.sn-selector-remove:hover,
.sn-selector-remove:focus-visible {
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

.sn-selector-eyebrow {
  min-height: 13px;
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.sn-selector-eyebrow:empty {
  display: none;
}

select.sn-compare-select {
  width: 100%;
  margin: 0;
  padding: 3px 22px 3px 3px;
  overflow: hidden;
  border: 0;
  border-bottom: 2px solid var(--iv-ink);
  border-radius: 0;
  background: transparent;
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

select.sn-district-select {
  padding: 2px 18px 2px 2px;
  font-size: 14px;
  line-height: 1.2;
}

.sn-district-selector-stack {
  gap: 3px;
  min-width: max-content;
}

.sn-district-selector-stack .sn-selector-eyebrow {
  font-size: 11px;
  min-height: 10px;
}

.sn-column-control-cell .sn-selector-stack,
.sn-row-control-cell .sn-selector-stack,
.sn-mobile-control .sn-selector-stack,
.sn-mobile-field-selector .sn-selector-stack {
  justify-items: stretch;
}

.sn-column-control-cell .sn-selector-eyebrow,
.sn-row-control-cell .sn-selector-eyebrow,
.sn-mobile-control .sn-selector-eyebrow,
.sn-mobile-field-selector .sn-selector-eyebrow {
  justify-self: start;
  text-align: left;
}

select.sn-compare-select:focus {
  border-color: var(--iv-orange);
}

.sn-value-empty {
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 12px;
}

.sn-list-value {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.sn-list-value span {
  display: block;
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 14px;
  line-height: 1.3;
}

.sn-list-more,
.sn-value-note {
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.sn-margin-value {
  display: grid;
  gap: 3px;
}

.sn-margin-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 15px;
  font-weight: 850;
}

.sn-result-chip,
.sn-demographic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--iv-on-party);
  font-family: var(--iv-font-mono);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.sn-demographic-chip {
  min-width: 0;
}

.sn-yes-no-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--iv-on-party);
  font-family: var(--iv-font-mono);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.sn-party-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--iv-neutral-2);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
}

.sn-party-d {
  background: var(--iv-blue);
  color: var(--iv-on-party);
}

.sn-party-r {
  background: var(--iv-red);
  color: var(--iv-on-party);
}

.sn-party-i {
  background: var(--iv-green);
  color: var(--iv-on-party);
}

.sn-legislator-list {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.sn-legislator-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding-left: 7px;
  border-left: 3px solid var(--sn-party-accent, transparent);
  color: var(--iv-ink);
  font-family: var(--iv-font-mono);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.sn-wnominate-chip-pair {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sn-score-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  min-height: 22px;
  padding: 2px 7px;
  overflow: visible;
  border-radius: 6px;
  color: var(--iv-on-party);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.sn-loading-cell {
  padding: 24px;
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 12px;
}

.sn-mobile-compare {
  display: none;
}

.sn-mobile-panel {
  overflow: visible;
}

.sn-mobile-panel + .sn-mobile-panel {
  margin-top: 14px;
}

.sn-mobile-panel h2 {
  margin: 0;
  padding: 0 2px 8px;
  color: var(--iv-neutral);
}

.sn-mobile-field-list {
  display: grid;
  gap: 8px;
}

.sn-mobile-control-grid {
  display: flex;
  justify-content: safe center;
  gap: 8px;
  margin: 0 -9px;
  padding: 0 9px 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.sn-mobile-control-grid::-webkit-scrollbar {
  height: 5px;
}

.sn-mobile-control-grid::-webkit-scrollbar-thumb {
  background: var(--iv-neutral-2);
  border-radius: 999px;
}

.sn-mobile-control,
.sn-mobile-field-block {
  min-width: 0;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 10px;
  background: transparent;
  box-shadow: 2px 2px 5px var(--iv-shadow);
}

.sn-mobile-control,
.sn-mobile-field-selector {
  padding: 10px;
}

.sn-mobile-control {
  flex: 0 0 124px;
  scroll-snap-align: start;
}

.sn-mobile-values {
  display: grid;
  border-top: 1px solid var(--iv-neutral-2);
}

.sn-mobile-value-row {
  display: grid;
  grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.sn-mobile-value-row + .sn-mobile-value-row {
  border-top: 1px solid var(--iv-neutral-2);
}

.sn-mobile-value-label {
  color: var(--iv-neutral);
  font-family: var(--iv-font-mono);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
}

.sn-mobile-value {
  display: grid;
  place-items: center;
  min-width: 0;
  font-family: var(--iv-font-mono);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.sn-mobile-value .sn-list-value span {
  font-size: inherit;
  line-height: inherit;
}

.sn-mobile-value .sn-margin-main {
  font-size: inherit;
}

.sn-mobile-empty {
  padding: 10px;
}

.not-found-shell {
  width: min(100%, 880px);
  min-height: 0;
  margin: 0 auto;
  padding: 10px 20px 72px;
  text-align: center;
}

.not-found-panel {
  display: inline-block;
  width: min(100%, 680px);
  padding: 36px 28px;
  border: var(--inline_container_w) solid var(--iv-ink);
  border-radius: 10px;
  background: var(--iv-paper);
  box-shadow: 2px 2px 5px var(--iv-shadow);
}

.not-found-kicker {
  margin: 0 0 8px;
  color: var(--iv-accent-text);
  font-family: var(--iv-font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.not-found-title {
  margin: 0;
  color: var(--iv-ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.04;
}

.not-found-copy {
  width: min(100%, 460px);
  margin: 18px auto 24px;
  color: var(--iv-ink);
  font-size: 18px;
  line-height: 1.45;
}

.not-found-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.not-found-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  width: min(100%, 520px);
  margin: 0 auto 18px;
  text-align: left;
}

.not-found-field {
  display: grid;
  gap: 5px;
}

.not-found-field label {
  color: var(--iv-neutral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.not-found-field select {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 6px 28px 6px 8px;
  border: 2px solid var(--iv-ink);
  border-radius: 5px;
  background-color: var(--iv-paper);
  color: var(--iv-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.not-found-go {
  min-height: 38px;
  padding: 7px 16px;
  border: 2px solid var(--iv-ink);
  background: var(--iv-ink);
  color: var(--iv-paper);
  font-family: var(--iv-font-mono);
  font-size: 13px;
  font-weight: 800;
}

.not-found-go:hover,
.not-found-go:focus-visible {
  background: var(--iv-orange-2);
  color: var(--iv-dark);
}

@media (max-width: 760px) {
  .sn-compare-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sn-compare-topbar {
    gap: 8px;
    min-height: 46px;
    padding: 8px 20px;
  }

  .sn-icon-button,
  .sn-home-button {
    flex: 1 1 auto;
  }

  .sn-compare-shell {
    width: min(100% - 18px, 1440px);
    padding-top: 24px;
  }

  .sn-compare-heading {
    gap: 10px;
    margin-bottom: 10px;
  }


  .sn-compare-title-wordmark {
    gap: 8px;
  }

  .sn-compare-statline {
    justify-content: center;
    width: 100%;
  }

  .sn-compare-table-shell {
    display: none;
  }

  .sn-mobile-compare {
    display: block;
  }

  .sn-mobile-control {
    overflow: hidden;
  }

  .sn-mobile-control .sn-district-selector-stack,
  .sn-mobile-control select.sn-district-select {
    width: 100%;
    min-width: 0;
  }

  select.sn-compare-select {
    font-size: 12px;
    line-height: 1.25;
    padding-right: 18px;
  }

  .sn-mobile-field-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
  }

  .sn-mobile-field-selector {
    padding: 8px;
  }

  .sn-mobile-value-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px;
  }

  .sn-mobile-value-label {
    font-size: 11px;
  }

  .sn-mobile-value .sn-margin-main {
    font-size: 14px;
  }

  .sn-mobile-value .sn-value-note,
  .sn-mobile-value .sn-list-more {
    font-size: 11px;
  }

  .sn-row-heading,
  .sn-row-control-cell {
    width: 210px;
    min-width: 210px;
    max-width: 210px;
  }

  .sn-column-control-cell {
    min-width: max-content;
  }
}

@media (max-width: 600px) {
  .sn-compare-hero p {
    font-size: 14px;
  }

  .not-found-shell {
    padding: 22px 12px 56px;
  }

  .not-found-panel {
    display: block;
    width: 100%;
    padding: 28px 16px;
  }

  .not-found-copy {
    font-size: 15px;
  }

  .not-found-finder {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .not-found-field {
    text-align: left;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .privacy-inner,
  .footer-top {
    align-items: center;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}



/* IV-only Atlas header and product-title treatment. */

body:is(.sn-filter-page, .sn-compare-page)
  .iv-global-banner.iv-site-header
  #theme-toggle.iv-theme-toggle {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 4px !important;
  border-radius: 0 !important;
  background: var(--iv-banner-ink) !important;
  color: var(--iv-banner-bg) !important;
}

body:is(.sn-filter-page, .sn-compare-page)
  .iv-global-banner.iv-site-header
  #theme-toggle.iv-theme-toggle:hover {
  color: var(--iv-accent-text) !important;
}

[data-theme="dark"]
  body:is(.sn-filter-page, .sn-compare-page)
  .iv-global-banner.iv-site-header
  .iv-header-logo
  img {
  content: url("/graphics/4_0/full_logo_White.svg");
}

.sn-atlas-title-lockup {
  justify-self: center;
  width: max-content;
  max-width: 100%;
  text-align: center;
}

body.sn-filter-page
  .sn-atlas-title-lockup
  .sn-filter-title-wordmark,
body.sn-compare-page
  .sn-atlas-title-lockup
  .sn-compare-title-wordmark {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: baseline;
  gap: 0 0.16em;
  max-width: 100%;
  margin: 0;
  color: var(--brand_black, var(--iv-dark));
  font-family: var(--iv-font-sans);
  font-size: clamp(52px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

body.sn-filter-page
  .sn-atlas-title-lockup
  .sn-filter-title-wordmark
  *,
body.sn-compare-page
  .sn-atlas-title-lockup
  .sn-compare-title-wordmark
  * {
  font-family: var(--iv-font-sans);
}

body.sn-filter-page
  .sn-atlas-title-lockup
  .sn-filter-title-wordmark
  .sn-brand-atlas,
body.sn-compare-page
  .sn-atlas-title-lockup
  .sn-compare-title-wordmark
  .sn-brand-atlas {
  font-weight: 700;
}

body.sn-filter-page
  .sn-atlas-title-lockup
  .sn-filter-title-wordmark
  .sn-brand-filter,
body.sn-compare-page
  .sn-atlas-title-lockup
  .sn-compare-title-wordmark
  .sn-brand-compare {
  font-size: 0.7em;
  font-weight: 350;
  letter-spacing: -0.052em;
  text-transform: none;
}

body:is(.sn-filter-page, .sn-compare-page)
  .sn-atlas-title-lockup
  .sn-atlas-byline {
  width: auto !important;
  margin: 0px 0 0 !important;
  font-family: var(--iv-font-sans);
  font-size: clamp(17px, 1.5vw, 21px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-align: center;
}

/* Keep the dense Atlas workspaces readable without shrinking real controls. */
body.sn-filter-page :is(
  .sn-filter-state-actions button,
  .sn-filter-row-action,
  .sn-state-chip,
  .sn-filter-input,
  .sn-filter-select,
  .sn-filter-slider-operator,
  .sn-filter-sort
),
body:is(.sn-filter-page, .sn-compare-page) :is(
  .sn-icon-button,
  .sn-home-button,
  .sn-export-button,
  .sn-export-menu-item,
  .not-found-field select,
  .not-found-go
) {
  min-height: 42px;
}

body.sn-filter-page .sn-filter-row {
  grid-template-columns: 42px minmax(140px, 1fr) minmax(82px, .45fr) minmax(0, 1.45fr) 42px;
  align-items: end;
}

body.sn-filter-page :is(.sn-filter-rank, .sn-filter-remove) {
  width: 42px;
  height: 42px;
}

body.sn-filter-page .sn-filter-remove {
  grid-column: -2 / -1;
}

body.sn-compare-page select.sn-compare-select {
  min-height: 42px;
}

body.sn-compare-page .sn-selector-stack:has(> .sn-selector-remove) {
  min-height: 42px;
  padding-right: 44px;
}

body.sn-compare-page .sn-selector-remove {
  top: 0;
  right: 0;
  width:30px;
  height: 30px;
}

@media (min-width: 901px) {
  body.sn-filter-page .sn-filter-rows.is-input-mode .sn-filter-row {
    grid-template-columns: 42px minmax(82px, .9fr) minmax(58px, .4fr) minmax(132px, 1.35fr) 42px;
  }

  body.sn-filter-page
    .sn-filter-rows.is-input-mode
    input[type="number"] {
    min-width: 64px;
  }
}

@media (max-width: 980px) {
  body:is(.sn-filter-page, .sn-compare-page)
    .iv-global-banner.iv-site-header
    > .iv-banner-shell.iv-header-inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  body:is(.sn-filter-page, .sn-compare-page)
    .iv-global-banner.iv-site-header
    .iv-header-nav,
  body:is(.sn-filter-page, .sn-compare-page)
    .iv-global-banner.iv-site-header
    .iv-header-actions
    > .iv-account-link {
    display: none;
  }
}

@media (max-width: 480px) {
  body.sn-filter-page
    .sn-atlas-title-lockup
    .sn-filter-title-wordmark,
  body.sn-compare-page
    .sn-atlas-title-lockup
    .sn-compare-title-wordmark {
    font-size: clamp(44px, 13.5vw, 60px);
  }
}

@media (max-width: 420px) {
  body.sn-filter-page .sn-filter-row {
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
    padding-right: 52px;
  }

  body.sn-filter-page .sn-filter-slider-operator {
    height: 42px;
    min-height: 42px;
  }
}

@media (max-width: 360px) {
  body:is(.sn-filter-page, .sn-compare-page)
    .iv-global-banner.iv-site-header
    .iv-donate-link {
    display: none;
  }

}

/* Atlas directory: shared IV section rather than a standalone boxed panel. */
body.iv-page:is(.sn-filter-page, .sn-compare-page) .sn-project-directory {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  padding: 36px 0 48px;
  text-align: left;
}
body.iv-page:is(.sn-filter-page, .sn-compare-page) .not-found-panel {
  display: block;
  width: 100%;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--iv-rule-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.iv-page:is(.sn-filter-page, .sn-compare-page) .not-found-kicker { display: none; }
body.iv-page:is(.sn-filter-page, .sn-compare-page) .not-found-finder {
  width: min(100%, 680px);
  margin: 0 0 24px;
  gap: 12px;
}
body.iv-page:is(.sn-filter-page, .sn-compare-page) .not-found-field label {
  font: 500 12px/1.4 var(--iv-font-mono);
  text-transform: none;
  letter-spacing: 0;
}
body.iv-page:is(.sn-filter-page, .sn-compare-page) :is(.not-found-field select, .not-found-go) {
  min-height: 44px;
  border: 1px solid var(--iv-ink);
  border-radius: 0;
  font: 500 13px/1.4 var(--iv-font-mono);
}
body.iv-page:is(.sn-filter-page, .sn-compare-page) .not-found-actions {
  justify-content: flex-start;
  gap: 12px 24px;
}
body.iv-page:is(.sn-filter-page, .sn-compare-page) .not-found-actions a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--iv-ink);
  font: 500 12px/1.5 var(--iv-font-mono);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  body.iv-page:is(.sn-filter-page, .sn-compare-page) .sn-project-directory { width: calc(100% - 32px); }
  body.iv-page:is(.sn-filter-page, .sn-compare-page) .not-found-finder { grid-template-columns: minmax(0, 1fr); }
}
