.government-atlas-test {
  min-height: calc(100vh - 70px);
}

.government-atlas-test .offices-intro {
  align-items: flex-end;
}

.atlas-coverage-pill,
.prototype-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #9d7426;
  border-radius: 999px;
  padding: 5px 11px;
  color: #67470c;
  background: #f5e2b9;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-workspace {
  --office-map-height: clamp(570px, calc(62vh + 18px), 650px);
  grid-template-columns: minmax(280px, 0.92fr) minmax(470px, 2fr) minmax(300px, 1fr);
}

.atlas-navigation {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px;
  background: #fbfaf6;
}

.atlas-levels.offices-breadcrumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--office-line);
  padding: 0 0 12px;
}

.atlas-levels .atlas-level {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--office-line);
  border-radius: 4px;
  padding: 5px 4px;
  color: var(--office-navy-950);
  background: #faf7ef;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.atlas-level:not(:disabled) {
  cursor: pointer;
}

.atlas-level:not(:disabled):hover,
.atlas-level:not(:disabled):focus-visible {
  border-color: #8caaae;
  background: #f2f6f3;
}

.atlas-level:focus-visible {
  outline: 3px solid #e7bb61;
  outline-offset: 2px;
}

.atlas-level:disabled {
  opacity: 0.58;
}

.atlas-level.is-known:not(.is-current) {
  border-color: var(--office-teal);
  color: var(--office-teal);
}

.atlas-level.is-current,
.atlas-level[aria-current="location"] {
  border-color: var(--office-gold);
  color: var(--office-navy-950);
  background: #ead6ab;
  box-shadow: inset 0 -3px 0 var(--office-gold);
}

.atlas-layer-options {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 7px;
  overflow-y: auto;
  padding: 11px 0 3px;
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.atlas-layer-section-label {
  margin: 0 0 1px;
  color: var(--office-navy-950);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.atlas-layer-section-label:not(:first-child) {
  margin-top: 8px;
  border-top: 1px solid var(--office-line);
  padding-top: 11px;
}

.atlas-layer-button.state-choice {
  --layer-color: var(--office-teal);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 39px;
  border-left: 4px solid var(--layer-color);
  padding: 6px 9px;
}

.atlas-layer-button > span {
  min-width: 0;
}

.atlas-layer-button strong {
  display: block;
  color: var(--office-navy-950);
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-layer-button > i {
  color: var(--layer-color);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 900;
}

.atlas-layer-button[aria-pressed="true"] {
  border-color: var(--layer-color);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--layer-color);
}

.atlas-layer-button:disabled {
  border-left-color: #a8b1b2;
  background: #eef0ef;
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.62;
}

.atlas-layer-button:disabled strong {
  color: var(--office-muted);
}

.atlas-local-government-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 11px;
  padding: 1px 8px 4px;
  color: #40545c;
  font-size: 0.61rem;
  font-weight: 800;
  line-height: 1;
}

.atlas-local-government-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.atlas-local-government-legend i {
  width: 9px;
  height: 9px;
  border: 1.5px solid;
  border-radius: 2px;
}

.atlas-map-column,
.atlas-map-card {
  min-height: 0;
}

.atlas-map-card {
  position: relative;
}

.atlas-map-loading {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  background: rgba(8, 47, 73, 0.76);
  font-family: var(--office-sans);
  pointer-events: auto;
  backdrop-filter: blur(2px);
}

.atlas-map-loading[hidden] {
  display: none;
}

.atlas-map-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.34);
  border-top-color: var(--office-gold);
  border-radius: 50%;
  animation: atlas-map-loading-spin 0.8s linear infinite;
}

.atlas-map-loading-copy {
  display: grid;
  gap: 3px;
  max-width: min(310px, 65%);
}

.atlas-map-loading-copy strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.atlas-map-loading-copy span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
}

@keyframes atlas-map-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-map-loading-spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.34);
    background: var(--office-gold);
  }
}

.government-atlas-test .map-layer-summary {
  height: 92px;
  min-height: 92px;
}

.government-atlas-test .map-hover-preview {
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
}

.government-atlas-test .atlas-hover-preview-media {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
}

.government-atlas-test .atlas-hover-preview-media > * {
  position: absolute;
  inset: 0;
}

.government-atlas-test .map-hover-preview-photo[hidden] {
  display: block !important;
  visibility: hidden;
}

.government-atlas-test .atlas-hover-geographic-icon {
  display: block;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(216, 173, 87, 0.55);
  border-radius: 4px;
  background: var(--office-navy-900);
  box-shadow: 0 2px 6px rgba(6, 40, 63, 0.2);
}

.government-atlas-test .atlas-hover-geographic-icon[hidden] {
  visibility: hidden;
}

.government-atlas-test .map-hover-preview-copy {
  height: 76px;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
  gap: 2px;
}

.government-atlas-test .map-hover-preview-primary {
  height: auto;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 3px;
}

.government-atlas-test .map-hover-preview-primary strong {
  height: auto;
  max-height: 2.16em;
}

.government-atlas-test .map-hover-preview-facts {
  height: auto;
  min-height: 0;
  align-content: start;
  overflow: visible;
}

.government-atlas-test .map-hover-preview-fact {
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.government-atlas-test .map-hover-preview-fact-label {
  color: var(--office-teal);
  font-weight: 950;
}

.government-atlas-test .map-hover-preview-fact-value {
  color: var(--office-muted);
  font-weight: 700;
}

.government-atlas-test .map-hover-preview-fact.is-wide {
  grid-column: 1 / -1;
}

.government-atlas-test .map-hover-preview-fact.is-wide:not(:first-child) {
  margin-top: 3px;
}

.government-atlas-test .map-hover-preview:is(.is-county-preview, .is-city-preview, .is-school-preview, .is-college-preview) .map-hover-preview-copy {
  height: 80px;
}

.government-atlas-test .map-hover-preview:is(.is-county-preview, .is-city-preview, .is-school-preview, .is-college-preview) .map-hover-preview-facts {
  column-gap: 10px;
  font-size: 0.57rem;
  line-height: 1.15;
}

.atlas-results {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 17px;
}

.atlas-results .selection-mode-panel--selection {
  height: 100%;
  min-height: 0;
}

.atlas-results-heading {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.atlas-results-heading h2 {
  font-weight: 500;
}

.atlas-selection-content {
  min-height: 0;
}

.atlas-officeholder-list {
  margin-top: 0;
}

.atlas-office-group + .atlas-office-group {
  margin-top: 17px;
}

.atlas-office-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-top: 2px solid var(--office-navy-900);
  border-bottom: 1px solid var(--office-soft-line);
  padding: 8px 0 6px;
  color: var(--office-navy-950);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  list-style: none;
  text-transform: uppercase;
}

.atlas-office-group > summary::-webkit-details-marker {
  display: none;
}

.atlas-office-group > summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid #e7bb61;
  outline-offset: 2px;
}

.atlas-office-group-count {
  display: inline-flex;
  min-width: 25px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--office-navy-900);
  background: #e6ece9;
  font-size: 0.58rem;
  letter-spacing: 0;
}

.atlas-office-group-count::after {
  margin-left: 5px;
  content: "−";
  font-size: 0.74rem;
}

.atlas-office-group:not([open]) .atlas-office-group-count::after {
  content: "+";
}

.atlas-person-card {
  display: grid;
  min-height: 58px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--office-soft-line);
  padding: 7px 0;
  color: inherit;
  text-decoration: none;
  transform: translateX(0);
  transition: background-color 140ms ease, transform 140ms ease;
}

.atlas-person-card:hover,
.atlas-person-card:focus-visible {
  background: #f1f6f3;
  transform: translateX(4px);
}

.atlas-person-card:focus-visible {
  border-radius: 3px;
  outline: 3px solid #e7bb61;
  outline-offset: -2px;
}

.atlas-person-card img,
.atlas-person-photo,
.atlas-person-monogram {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid rgba(8, 47, 73, 0.14);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  color: var(--office-navy-900);
  background: #edf0ec;
  font-size: 0.68rem;
  font-weight: 900;
}

.atlas-person-photo {
  flex: 0 0 44px;
  background-repeat: no-repeat;
}

.atlas-person-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.atlas-person-card strong {
  color: var(--office-navy-950);
  font-size: 0.78rem;
  line-height: 1.18;
}

.atlas-person-card small {
  color: var(--office-muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.28;
}

.atlas-person-action {
  color: var(--person-color, var(--office-teal));
  font-size: 0.78rem;
  font-weight: 950;
}

.atlas-empty-office-list {
  margin: 0;
  border: 1px dashed #aab7b8;
  border-radius: 4px;
  padding: 12px;
  color: var(--office-muted);
  background: #f6f7f4;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.45;
}

.atlas-selection-action.selection-destinations {
  grid-template-columns: minmax(0, 1fr);
}

.atlas-coverage-note,
.atlas-prototype-note {
  margin-top: 18px;
  border: 1px solid var(--office-line);
  border-left: 5px solid var(--office-gold);
  border-radius: 6px;
  padding: 15px 18px;
  background: #fffdf8;
}

.atlas-coverage-note h2,
.atlas-prototype-note h2 {
  margin: 3px 0 5px;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.atlas-coverage-note p:last-child,
.atlas-prototype-note p:last-child {
  margin: 0;
  color: var(--office-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .atlas-workspace {
    grid-template-areas:
      "layers map"
      "detail detail";
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.55fr);
    grid-template-rows: 620px 500px;
  }

  .atlas-results {
    height: 500px;
  }
}

@media (max-width: 760px) {
  .atlas-workspace {
    grid-template-areas:
      "layers"
      "map"
      "detail";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 540px 520px;
  }

  .atlas-navigation {
    height: auto;
    max-height: none;
  }

  .atlas-layer-options {
    max-height: 340px;
  }

  .atlas-results {
    height: 520px;
  }
}

@media (max-width: 460px) {
  .atlas-workspace {
    grid-template-rows: auto 500px 520px;
  }
}
