:root {
  --office-navy-950: #06283f;
  --office-navy-900: #082f49;
  --office-navy-700: #15536f;
  --office-teal: #176d69;
  --office-gold: #c19a55;
  --office-paper: #f7f4ec;
  --office-paper-deep: #eee8dc;
  --office-surface: #fffdf8;
  --office-ink: #172635;
  --office-muted: #64717c;
  --office-line: #d7d6cf;
  --office-soft-line: rgba(8, 47, 73, 0.13);
  --office-shadow: 0 22px 60px rgba(6, 40, 63, 0.12);
  --office-serif: Georgia, "Times New Roman", serif;
  --office-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--office-ink);
  background: var(--office-paper);
  font-family: var(--office-sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    radial-gradient(circle at 8% 5%, rgba(193, 154, 85, 0.14), transparent 25rem),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1200;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--office-navy-950);
}

.skip-link:focus {
  transform: none;
}

.offices-page {
  min-height: 100vh;
  padding: 0 18px 72px;
}

.offices-intro {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: min(1260px, 100%);
  margin: 0 auto 14px;
  padding: 18px 0 0;
}

.offices-kicker,
.offices-step {
  margin: 0 0 10px;
  color: var(--office-teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.offices-kicker {
  color: var(--office-gold);
  letter-spacing: 0.17em;
}

.offices-intro h1,
.offices-notes h2 {
  margin: 0;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.offices-intro h1 {
  max-width: 790px;
  font-family: var(--office-serif);
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.offices-atlas-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.offices-atlas-pill,
.offices-breadcrumbs button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--office-line);
  border-radius: 4px;
  padding: 0 13px;
  color: var(--office-muted);
  background: rgba(255, 253, 248, 0.9);
  font-size: 0.82rem;
  white-space: nowrap;
}

.offices-atlas-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offices-atlas-pill:first-child {
  border-left: 3px solid var(--office-teal);
}

.offices-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.offices-breadcrumbs button {
  color: var(--office-ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.offices-breadcrumbs button:not(:disabled):hover,
.offices-breadcrumbs button:not(:disabled):focus-visible {
  border-color: var(--office-navy-700);
  color: var(--office-navy-700);
  background: var(--office-surface);
}

.offices-breadcrumbs button[aria-current="location"] {
  border-color: var(--office-gold);
  color: var(--office-navy-950);
  background: #ead6ab;
}

.offices-breadcrumbs button:disabled {
  opacity: 0.48;
  cursor: default;
}

.offices-workspace {
  --office-map-height: clamp(530px, calc(58vh + 28px), 650px);
  display: grid;
  grid-template-areas: "layers map detail";
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr) minmax(260px, 1fr);
  grid-template-rows: var(--office-map-height);
  gap: 14px;
  width: min(1440px, 100%);
  align-items: stretch;
  margin: 0 auto;
}

body[data-office-level="country"] .offices-controls > .offices-panel-heading,
body[data-office-level="state"] .offices-controls > .offices-panel-heading {
  display: none;
}

.offices-panel,
.offices-map-card {
  border: 1px solid var(--office-line);
  border-radius: 8px;
  background: var(--office-surface);
  box-shadow: 0 18px 50px rgba(6, 40, 63, 0.075);
}

.offices-panel {
  min-width: 0;
  padding: 17px;
}

.offices-controls {
  grid-area: layers;
  height: var(--office-map-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 4px solid var(--office-gold);
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.offices-panel-heading,
.layer-controls-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.offices-panel-heading {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--office-line);
  padding-bottom: 13px;
}

.offices-panel-heading h2,
.county-choice h3,
.layer-controls-heading h3 {
  margin: 0;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-weight: 500;
  line-height: 1.15;
}

.offices-panel-heading h2 {
  font-size: 1.35rem;
}

.county-choice h3,
.layer-controls-heading h3 {
  font-size: 1.08rem;
}

.offices-step {
  display: block;
  margin-bottom: 5px;
  font-size: 0.62rem;
}

.offices-count,
.selection-badge {
  flex: 0 0 auto;
  border-radius: 3px;
  padding: 5px 8px;
  color: #596b76;
  background: #f1eadb;
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.state-choice,
.county-choice button {
  display: grid;
  width: 100%;
  align-items: center;
  border: 1px solid var(--office-line);
  border-radius: 4px;
  color: var(--office-ink);
  background: #faf7ef;
  text-align: left;
}

.state-choice {
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  min-height: 62px;
  padding: 9px 11px;
}

.state-choice.is-available,
.county-choice button {
  border-left: 4px solid var(--office-teal);
  cursor: pointer;
}

.state-choice.is-available:hover,
.state-choice.is-available:focus-visible,
.county-choice button:hover,
.county-choice button:focus-visible {
  border-color: #8caaae;
  background: #f2f6f3;
}

.state-choice[aria-pressed="true"] {
  border-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.state-choice:disabled {
  color: #73808a;
  background: #f4f2ed;
  opacity: 0.74;
}

.state-monogram {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 3px;
  color: #fff;
  background: var(--office-navy-900);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.state-choice:disabled .state-monogram {
  color: #677985;
  background: #dce2e2;
}

.state-choice strong,
.state-choice small,
.county-choice button strong,
.county-choice button small {
  display: block;
}

.state-choice strong,
.county-choice button strong {
  font-size: 0.88rem;
}

.state-choice small,
.county-choice button small {
  margin-top: 3px;
  color: var(--office-muted);
  font-size: 0.7rem;
}

.state-choice i,
.county-choice button i {
  color: var(--office-teal);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.map-layer-picker-button[aria-expanded="true"],
.visible-layer-picker-button[aria-expanded="true"] {
  border-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.map-layer-choice,
.visible-layer-choice {
  display: grid;
}

.visible-layer-choice {
  margin-top: 12px;
}

.layer-choice-prompt {
  margin: 0 0 6px;
  color: var(--office-navy-950);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 1.25;
}

.layer-value-button {
  min-height: 54px;
  padding: 8px 10px;
}

.map-layer-picker-button {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  border-left-color: var(--swatch, var(--office-teal));
}

.visible-layer-picker-button {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

.visible-layer-list {
  display: grid;
  gap: 7px;
}

.visible-layer-item {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  min-height: 50px;
  border-left-color: var(--swatch, var(--office-teal));
  padding: 7px 9px;
}

.visible-layer-item[aria-pressed="true"] {
  background: #faf7ef;
  box-shadow: none;
}

.visible-layer-item[aria-pressed="true"]:hover,
.visible-layer-item[aria-pressed="true"]:focus-visible {
  border-color: var(--swatch, #8caaae);
  background: #f3ead7;
}

.visible-layer-item.is-active-layer {
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.visible-layer-item-state {
  align-self: center;
  border-radius: 3px;
  padding: 3px 5px;
  color: #5c6c75;
  background: #ece8de;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.visible-layer-item.is-active-layer .visible-layer-item-state {
  color: #fff;
  background: var(--office-teal);
}

.visible-layer-manage-button {
  margin-top: 7px;
  border-left-color: var(--office-gold);
}

.visible-layer-manage-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--office-gold) 65%, #fff);
  border-radius: 50%;
  color: var(--office-navy-950);
  background: #f2e3c2;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
}

.visible-layer-empty {
  margin: 0;
  border: 1px dashed var(--office-line);
  border-radius: 4px;
  padding: 10px;
  color: var(--office-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.layer-value-button > span:nth-child(2) {
  min-width: 0;
}

.layer-value-button > span:nth-child(2) > strong {
  font-size: 0.78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.layer-value-button > span:nth-child(2) > small {
  margin-top: 2px;
  font-size: 0.64rem;
  line-height: 1.2;
}

.layer-swatch.has-secondary-swatch {
  border-color: transparent;
  background: linear-gradient(
    90deg,
    var(--swatch) 0 50%,
    var(--swatch-secondary) 50% 100%
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--swatch) 55%, #fff);
}

.scope-office-card[aria-expanded="true"] {
  border-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.state-picker-popover {
  position: relative;
  z-index: 750;
  grid-area: map;
  display: grid;
  width: min(50%, 340px);
  height: calc(var(--office-map-height) - 38px);
  max-height: var(--office-map-height);
  grid-template-rows: minmax(0, 1fr);
  align-self: start;
  justify-self: start;
  overflow: visible;
  border: 1px solid var(--office-line);
  border-top: 4px solid var(--office-gold);
  border-radius: 8px;
  color: var(--office-ink);
  background: var(--office-surface);
  box-shadow: 0 24px 60px rgba(6, 40, 63, 0.24);
}

.state-picker-popover::before,
.state-picker-popover::after {
  position: absolute;
  top: var(--picker-arrow-top, 31px);
  right: 100%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  content: "";
}

.state-picker-popover::before {
  border-right: 11px solid var(--office-line);
}

.state-picker-popover::after {
  top: calc(var(--picker-arrow-top, 31px) + 1px);
  border-top-width: 9px;
  border-right: 10px solid var(--office-surface);
  border-bottom-width: 9px;
}

.map-layer-picker-options {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 10px 12px;
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.visible-layer-picker-popover {
  grid-template-rows: auto minmax(0, 1fr);
}

.visible-layer-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--office-line);
  padding: 12px 12px 10px;
}

.visible-layer-picker-toolbar strong {
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: 1rem;
  font-weight: 600;
}

.visible-layer-picker-toolbar button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 3px 0;
  color: var(--office-teal);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.visible-layer-picker-options {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 12px;
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.map-layer-picker-options .layer-group {
  margin-top: 9px;
}

.map-layer-picker-options .layer-group.layer-group--visible {
  margin-top: 0;
  border: 1px solid rgba(23, 109, 105, 0.34);
  border-radius: 5px;
  padding: 8px 7px 7px;
  background: #f0f6f2;
  box-shadow: inset 3px 0 0 rgba(23, 109, 105, 0.2);
}

.map-layer-picker-options .layer-group.layer-group--visible h4 {
  color: var(--office-teal);
}

.map-layer-picker-option {
  display: grid;
  width: 100%;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 47px;
  margin-top: 5px;
  border: 1px solid var(--office-line);
  border-left: 4px solid var(--swatch);
  border-radius: 4px;
  padding: 7px 9px;
  color: var(--office-ink);
  background: #faf7ef;
  text-align: left;
  cursor: pointer;
}

.map-layer-picker-option:hover,
.map-layer-picker-option:focus-visible {
  border-color: #8caaae;
  border-left-color: var(--swatch);
  background: #f2f6f3;
}

.map-layer-picker-option.is-active {
  border-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.map-layer-picker-option strong,
.map-layer-picker-option small {
  display: block;
}

.map-layer-picker-option strong {
  font-size: 0.78rem;
  line-height: 1.25;
}

.map-layer-picker-option small {
  margin-top: 2px;
  color: var(--office-muted);
  font-size: 0.64rem;
  line-height: 1.25;
}

.map-layer-picker-option > i {
  color: var(--office-teal);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.justice-picker-options {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 9px;
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.justice-picker-options .justice-card-grid {
  margin: 0;
}

.state-picker-loading {
  margin: 0;
  padding: 16px 14px;
  color: var(--office-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.county-choice,
.layer-controls {
  margin-top: 18px;
  border-top: 1px solid var(--office-line);
  padding-top: 17px;
}

body[data-office-level="state"] .county-choice {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.county-choice button {
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 11px;
  padding: 12px;
}

.county-choice > p,
.layer-help {
  margin: 9px 0 0;
  color: var(--office-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.scope-office-list {
  margin-top: 18px;
  border-top: 1px solid var(--office-line);
  padding-top: 16px;
}

.scope-office-list h3 {
  margin: 0 0 10px;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.2;
}

.scope-office-list h3.scope-office-category {
  margin-top: 17px;
  border-top: 1px solid var(--office-soft-line);
  padding-top: 14px;
}

.scope-office-list .offices-step {
  margin-bottom: 4px;
}

.scope-office-card,
.county-choice .scope-office-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  align-items: center;
  margin: 7px 0 0;
  border: 1px solid var(--office-line);
  border-left: 4px solid var(--office-navy-700);
  border-radius: 4px;
  padding: 9px 10px;
  color: var(--office-ink);
  background: #faf7ef;
  text-align: left;
  cursor: pointer;
}

.scope-office-card:hover,
.scope-office-card:focus-visible,
.county-choice .scope-office-card:hover,
.county-choice .scope-office-card:focus-visible {
  border-color: #8caaae;
  background: #f2f6f3;
}

.scope-office-card.is-selected {
  border-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.scope-office-card--layer-action {
  border-left-color: var(--office-gold);
  background: #f5ead0;
}

.scope-office-card--layer-action:hover,
.scope-office-card--layer-action:focus-visible {
  border-color: #b98b34;
  background: #f1dfb7;
}

.scope-office-card--child {
  width: calc(100% - 15px);
  margin-left: 15px;
  border-left-color: var(--office-gold);
}

.justice-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 0 15px;
}

.scope-office-card--justice {
  position: relative;
  display: flex;
  min-height: 66px;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  border-left: 3px solid var(--office-gold);
  padding: 8px 47px 8px 9px;
}

.scope-office-card--chief-justice {
  grid-column: 1 / -1;
  min-height: 70px;
  border-left-width: 4px;
  padding-right: 58px;
}

.justice-card-portrait {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 32px;
  height: 40px;
  border: 1px solid rgba(8, 47, 73, 0.2);
  border-radius: 3px;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 3px 8px rgba(6, 40, 63, 0.14);
}

.scope-office-card--chief-justice .justice-card-portrait {
  top: 8px;
  right: 9px;
  width: 39px;
  height: 49px;
}

.scope-office-card--justice strong {
  font-size: 0.72rem;
}

.scope-office-card--justice small {
  font-size: 0.59rem;
}

.scope-office-card strong,
.scope-office-card small {
  display: block;
}

.scope-office-card strong {
  font-size: 0.8rem;
  line-height: 1.3;
}

.scope-office-card small {
  margin-top: 3px;
  color: var(--office-muted);
  font-size: 0.66rem;
}

.class-seat-help {
  position: relative;
  display: inline-flex;
  margin-left: 4px;
  vertical-align: text-bottom;
}

.class-seat-info-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(23, 109, 105, 0.55);
  border-radius: 50%;
  color: var(--office-teal);
  background: #fffdf8;
  font-family: var(--office-serif);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.class-seat-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 40;
  width: min(250px, 72vw);
  transform: translate(-50%, -3px);
  visibility: hidden;
  border-radius: 4px;
  padding: 10px 11px;
  color: #fff;
  background: var(--office-navy-950);
  box-shadow: 0 10px 24px rgba(6, 40, 63, 0.24);
  font-family: var(--office-sans);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.class-seat-tooltip::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--office-navy-950);
  border-left: 6px solid transparent;
  content: "";
}

.class-seat-help:hover .class-seat-info-icon,
.scope-office-card:focus-visible .class-seat-info-icon {
  color: #fff;
  background: var(--office-teal);
}

.class-seat-help:hover .class-seat-tooltip,
.scope-office-card:focus-visible .class-seat-tooltip {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
}

.scope-office-card i {
  color: var(--office-teal);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.scope-office-monogram {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 3px;
  color: #fff;
  background: var(--office-navy-900);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.scope-office-portrait {
  width: 36px;
  height: 42px;
  border: 1px solid rgba(8, 47, 73, 0.2);
  border-radius: 3px;
  object-fit: cover;
  object-position: center 18%;
  background: #e4e7e4;
  box-shadow: 0 3px 8px rgba(6, 40, 63, 0.14);
}

.scope-office-portrait--president {
  object-position: center 32%;
}

.state-scope-offices {
  margin-top: 16px;
}

.layer-controls-heading button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 3px 0;
  color: var(--office-teal);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.layer-controls-heading > span {
  color: var(--office-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-office-level="county"] .offices-controls > .offices-panel-heading {
  display: none;
}

.layer-control-section + .layer-control-section {
  margin-top: 16px;
  border-top: 2px solid var(--office-soft-line);
  padding-top: 15px;
}

.layer-scroll {
  margin-top: 10px;
  border: 1px solid var(--office-line);
  border-radius: 5px;
  padding: 0 9px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fbfaf6;
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
  transition: max-height 240ms ease;
}

.active-layer-scroll {
  max-height: 288px;
  border-color: rgba(23, 109, 105, 0.35);
  box-shadow: inset 3px 0 0 rgba(23, 109, 105, 0.18);
}

.visible-layer-scroll {
  max-height: 96px;
}

.map-layer-scroll {
  max-height: 305px;
  border-color: rgba(23, 109, 105, 0.35);
  box-shadow: inset 3px 0 0 rgba(23, 109, 105, 0.14);
}

.layer-controls:has(.visible-layer-scroll:hover) .active-layer-scroll,
.layer-controls:has(.visible-layer-section:focus-within) .active-layer-scroll {
  max-height: 96px;
}

.layer-controls:has(.visible-layer-scroll:hover) .visible-layer-scroll,
.layer-controls:has(.visible-layer-section:focus-within) .visible-layer-scroll {
  max-height: 288px;
}

.layer-group {
  margin-top: 10px;
  border-top: 1px solid var(--office-soft-line);
  padding-top: 9px;
}

.layer-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.layer-group h4 {
  margin: 0 0 5px;
  color: #6b7680;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.layer-toggle {
  display: grid;
  grid-template-columns: 18px 12px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin: 0 -5px;
  border-radius: 3px;
  padding: 8px 5px;
}

.layer-toggle:hover {
  background: #f3ead7;
}

.layer-toggle.is-active {
  color: var(--office-navy-950);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.layer-toggle.is-active-reference {
  background: rgba(229, 241, 237, 0.58);
}

.layer-activate {
  min-width: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.visible-layer-label {
  min-width: 0;
  cursor: pointer;
}

.layer-activate:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--office-teal);
  outline-offset: 3px;
}

.layer-active-marker {
  align-self: start;
  border-radius: 3px;
  padding: 3px 5px;
  color: #fff;
  background: var(--office-teal);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.active-layer-scroll .layer-toggle {
  grid-template-columns: 18px 12px 1fr;
  min-height: 58px;
  margin: 7px 0;
  border: 1px solid var(--office-line);
  border-left: 4px solid var(--swatch);
  border-radius: 4px;
  padding: 9px 10px;
  background: #faf7ef;
}

.active-layer-scroll .layer-toggle:hover,
.active-layer-scroll .layer-toggle:focus-within {
  border-color: #8caaae;
  background: #f2f6f3;
}

.active-layer-scroll .layer-toggle.is-active {
  border-color: var(--office-teal);
  border-left-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.layer-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--office-navy-700);
}

.layer-swatch {
  width: 11px;
  height: 11px;
  border: 2px solid var(--swatch);
  border-radius: 50%;
  background: color-mix(in srgb, var(--swatch) 28%, transparent);
}

.layer-copy strong,
.layer-copy small {
  display: block;
}

.layer-copy strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.layer-copy small {
  margin-top: 2px;
  color: var(--office-muted);
  font-size: 0.64rem;
  line-height: 1.25;
}

.layer-toggle.is-loading {
  opacity: 0.7;
}

.layer-toggle.is-error .layer-copy small {
  color: #a43c32;
}

.visible-boundary-pane {
  pointer-events: none;
}

.visible-boundary-pane .leaflet-interactive {
  cursor: default;
  pointer-events: none;
}

.active-boundary-pane .leaflet-interactive {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .layer-scroll {
    transition: none;
  }
}

.offices-map-column {
  grid-area: map;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  height: var(--office-map-height);
  min-width: 0;
  min-height: 0;
}

.offices-map-card {
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-top: 4px solid var(--office-navy-900);
  background: #dce8e8;
}

.map-layer-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-layer-summary .offices-breadcrumbs {
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.offices-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #dce8e8;
}

.map-coverage-warning {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 850;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 16px;
  color: #fff;
  background: #a9342f;
  box-shadow: 0 8px 22px rgba(71, 13, 12, 0.22);
  font-family: var(--office-sans);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.map-coverage-warning[hidden] {
  display: none;
}

.map-coverage-warning strong {
  flex: 0 0 auto;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offices-map-card.has-coverage-warning .line-tuner,
.offices-map-card.has-coverage-warning .small-state-insets {
  top: 60px;
}

.offices-map .leaflet-container {
  background: #dce8e8;
  font-family: var(--office-sans);
}

.offices-map .leaflet-tile-pane {
  filter: saturate(0.66) contrast(0.92) brightness(1.05);
}

.offices-map .leaflet-control-attribution {
  color: #5c6c73;
  background: rgba(255, 253, 248, 0.9);
  font-size: 0.58rem;
}

.offices-map .leaflet-control-zoom a {
  color: var(--office-navy-950);
  background: rgba(255, 253, 248, 0.95);
}

.offices-map .leaflet-interactive:focus {
  outline: none;
}

.offices-map .leaflet-interactive:focus-visible {
  filter: drop-shadow(0 0 3px rgba(8, 47, 73, 0.65));
}

.line-tuner {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 700;
  width: min(296px, calc(100% - 82px));
  color: var(--office-ink);
  font-family: var(--office-sans);
}

.line-tuner:not(.is-open) {
  width: auto;
}

.line-tuner-toggle {
  min-height: 38px;
  border: 1px solid rgba(8, 47, 73, 0.25);
  border-left: 4px solid var(--office-gold);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--office-navy-950);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 8px 20px rgba(6, 40, 63, 0.16);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.line-tuner.is-open .line-tuner-toggle {
  width: 100%;
  border-radius: 4px 4px 0 0;
  text-align: left;
}

.line-tuner-toggle:focus-visible,
.line-tuner select:focus-visible,
.line-tuner button:focus-visible,
.line-tuner input:focus-visible {
  outline: 3px solid var(--office-gold);
  outline-offset: 2px;
}

.line-tuner-panel {
  max-height: min(620px, calc(var(--office-map-height) - 70px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(8, 47, 73, 0.25);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  padding: 11px 12px 10px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 14px 30px rgba(6, 40, 63, 0.18);
}

.line-tuner-field {
  display: block;
  margin-top: 9px;
}

.line-tuner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.line-tuner-grid .line-tuner-field {
  min-width: 0;
}

.line-tuner-follow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #4f616e;
  font-size: 0.62rem;
  font-weight: 800;
}

.line-tuner-follow input {
  margin: 0;
  accent-color: var(--office-teal);
}

.line-tuner-field:first-child {
  margin-top: 0;
}

.line-tuner-field.is-disabled {
  opacity: 0.46;
}

.line-tuner-field > span,
.line-tuner-result span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #4f616e;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.line-tuner-group {
  margin: 12px 0 0;
  border: 1px solid var(--office-soft-line);
  border-radius: 4px;
  padding: 7px 9px 10px;
}

.line-tuner-group:disabled {
  opacity: 0.42;
}

.line-tuner-group legend {
  padding: 0 5px;
  color: var(--office-teal);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.line-tuner output {
  color: var(--office-navy-950);
  font-variant-numeric: tabular-nums;
}

.line-tuner select {
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--office-line);
  border-radius: 3px;
  padding: 7px 8px;
  color: var(--office-navy-950);
  background: #fffdf8;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
}

.line-tuner-field--color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.line-tuner-field--color input[type="color"] {
  width: 42px;
  height: 28px;
  border: 1px solid var(--office-line);
  border-radius: 3px;
  padding: 2px;
  background: #fffdf8;
  cursor: pointer;
}

.line-tuner-color-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.line-tuner-color-control button,
.line-tuner-copy-actions button {
  border: 1px solid var(--office-line);
  border-radius: 3px;
  padding: 5px 7px;
  color: var(--office-navy-950);
  background: #f5efe2;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 850;
  cursor: pointer;
}

.line-tuner-color-control button:disabled,
.line-tuner-copy-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.line-tuner input[type="range"] {
  width: 100%;
  margin: 7px 0 0;
  accent-color: var(--office-teal);
  cursor: ew-resize;
}

.line-tuner-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--office-soft-line);
  padding-top: 9px;
}

.line-tuner-result strong {
  color: var(--office-teal);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.line-tuner-result--secondary {
  margin-top: 5px;
  border-top: 0;
  padding-top: 0;
}

.line-tuner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.line-tuner-copy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.line-tuner-actions button {
  width: 100%;
  border: 1px solid var(--office-line);
  border-radius: 3px;
  padding: 7px 9px;
  color: var(--office-navy-950);
  background: #f5efe2;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 850;
  cursor: pointer;
}

.line-tuner-actions button {
  grid-column: 1 / -1;
}

.line-tuner-actions button.is-primary {
  border-color: var(--office-navy-950);
  color: #fffdf8;
  background: var(--office-navy-950);
}

.line-tuner-panel > p {
  margin: 8px 0 0;
  color: var(--office-muted);
  font-size: 0.58rem;
  line-height: 1.4;
}

.line-tuner-save-status.is-saved {
  color: var(--office-teal);
  font-weight: 800;
}

.map-prompt,
.map-status,
.map-legend {
  position: absolute;
  z-index: 600;
  border: 1px solid rgba(8, 47, 73, 0.16);
  color: var(--office-ink);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(6, 40, 63, 0.1);
}

.map-prompt {
  top: 16px;
  left: 16px;
  width: min(270px, calc(100% - 32px));
  border-top: 4px solid var(--office-gold);
  border-radius: 4px;
  padding: 14px;
  pointer-events: none;
}

.map-prompt span,
.map-prompt strong,
.map-prompt small {
  display: block;
}

.map-prompt span {
  margin-bottom: 4px;
  color: var(--office-gold);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-prompt strong {
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: 1.15rem;
}

.map-prompt small {
  margin-top: 4px;
  color: var(--office-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.map-status {
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 78px);
  border-radius: 999px;
  padding: 8px 11px;
  color: #4f616e;
  font-size: 0.66rem;
  font-weight: 800;
}

.map-legend {
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.62rem;
  font-weight: 750;
}

.map-zoom-indicator {
  position: absolute;
  right: 14px;
  bottom: 98px;
  z-index: 600;
  min-width: 76px;
  border: 1px solid rgba(8, 47, 73, 0.22);
  border-left: 4px solid var(--office-gold);
  border-radius: 4px;
  padding: 7px 9px;
  color: var(--office-navy-950);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 20px rgba(6, 40, 63, 0.13);
  font-size: 0.66rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  text-align: center;
  pointer-events: none;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.noncontiguous-state-inset {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 600;
  display: grid;
  width: min(218px, calc(100% - 82px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(8, 47, 73, 0.22);
  border-radius: 5px;
  padding: 6px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 26px rgba(6, 40, 63, 0.16);
}

.state-inset-control {
  min-width: 0;
  border: 1px solid rgba(8, 47, 73, 0.18);
  border-radius: 3px;
  padding: 4px;
  color: var(--office-navy-950);
  background: #eef3f1;
  font: inherit;
  cursor: pointer;
}

.state-inset-control:hover,
.state-inset-control:focus-visible,
.state-inset-control.is-selected {
  border-color: var(--office-teal);
  background: #e2efea;
}

.state-inset-control:focus-visible {
  outline: 3px solid var(--office-gold);
  outline-offset: 2px;
}

.state-inset-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.state-inset-map {
  display: block;
  width: 100%;
  height: 52px;
  overflow: hidden;
  border-radius: 2px;
  background: #dce8e8;
  pointer-events: none;
}

.state-inset-map.leaflet-container {
  font-family: var(--office-sans);
}

.small-state-insets {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 600;
  display: grid;
  width: min(360px, calc(100% - 82px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.small-state-inset-control {
  box-shadow: 0 8px 20px rgba(6, 40, 63, 0.14);
}

.small-state-inset-control .state-inset-label {
  min-height: 1.3rem;
  font-size: 0.48rem;
  line-height: 1.15;
  text-align: center;
}

.small-state-inset-control .state-inset-map {
  height: 30px;
}

.legend-available {
  background: #176d69;
}

.legend-later {
  border: 1px solid #89979d;
  background: #e0e4e4;
}

.office-map-tooltip {
  border: 1px solid rgba(8, 47, 73, 0.18);
  border-radius: 5px;
  color: var(--office-navy-950);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 9px 24px rgba(6, 40, 63, 0.13);
  font-family: var(--office-sans);
  font-size: 0.7rem;
  font-weight: 800;
}

.office-map-tooltip.leaflet-tooltip-right {
  margin-left: 28px;
}

.office-map-tooltip.leaflet-tooltip-left {
  margin-left: -28px;
}

.office-map-tooltip::before {
  display: none;
}

.office-map-tooltip::after {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 2px;
  background: var(--tooltip-leader-color, var(--office-gold));
  content: "";
  pointer-events: none;
}

.office-map-tooltip.leaflet-tooltip-right::after {
  right: 100%;
  transform: translateY(-50%) rotate(-35deg);
  transform-origin: right center;
}

.office-map-tooltip.leaflet-tooltip-left::after {
  left: 100%;
  transform: translateY(-50%) rotate(35deg);
  transform-origin: left center;
}

.offices-selection {
  grid-area: detail;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: var(--office-map-height);
  overflow: hidden;
  overscroll-behavior: contain;
  border-top: 4px solid var(--office-teal);
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.selection-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--office-line);
  padding-bottom: 10px;
}

.selection-mode-tab {
  min-height: 36px;
  border: 1px solid var(--office-line);
  border-radius: 4px;
  padding: 7px 10px;
  color: var(--office-muted);
  background: #f7f3e9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.selection-mode-tab:hover,
.selection-mode-tab:focus-visible {
  border-color: var(--office-teal);
  color: var(--office-teal);
}

.selection-mode-tab[aria-selected="true"] {
  border-color: var(--office-navy-900);
  color: #fff;
  background: var(--office-navy-900);
}

.selection-mode-tab:disabled {
  border-color: #d5d7d2;
  color: #90999c;
  background: #e8e8e4;
  cursor: not-allowed;
}

.selection-mode-tab:focus-visible {
  outline: 3px solid #f2c76d;
  outline-offset: 2px;
}

.selection-mode-panel {
  min-height: 0;
}

.selection-mode-panel[hidden] {
  display: none;
}

.selection-mode-panel--selection {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.selection-mode-panel--offices {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.offices-mode-lede {
  margin: -1px 0 0;
  color: var(--office-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.office-scope-groups .scope-office-list {
  margin-top: 14px;
  border-top: 1px solid var(--office-line);
  padding-top: 13px;
}

.office-scope-groups .scope-office-list[hidden] {
  display: none;
}

.justice-office-list[hidden] {
  display: none;
}

.justice-office-list .justice-card-grid {
  grid-template-columns: minmax(0, 1fr);
}

.offices-selection .offices-panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 0;
}

.offices-selection .offices-panel-heading .offices-step {
  grid-column: 1;
  grid-row: 1;
}

.offices-selection .offices-panel-heading h2 {
  grid-column: 1 / -1;
  grid-row: 2;
}

.offices-selection .selection-badge {
  grid-column: 2;
  grid-row: 1;
}

.offices-selection [data-selection-content] {
  min-height: 0;
  overflow-y: auto;
  border: 1px solid rgba(21, 83, 111, 0.18);
  border-left: 4px solid var(--office-teal);
  border-radius: 4px;
  padding: 14px;
  background: #fbfaf6;
}

.offices-selection.has-feature-selection .selection-mode-panel--selection .offices-panel-heading {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.offices-selection.has-feature-selection .selection-mode-panel--selection .offices-panel-heading h2 {
  display: none;
}

.offices-selection.has-feature-selection .selection-mode-panel--selection .offices-step {
  margin-bottom: 0;
}

.selection-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 8px;
  margin: 12px 0 0;
  border-top: 1px solid var(--office-line);
  padding: 12px 0 0;
}

.selection-destinations[hidden] {
  display: none;
}

.selection-destination {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--office-navy-900);
  border-radius: 5px;
  padding: 7px 10px;
  color: #fff;
  background: var(--office-navy-900);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
}

.selection-destination:only-child {
  grid-column: 1 / -1;
}

.selection-destination.is-secondary {
  color: var(--office-navy-950);
  background: #f1eadb;
}

.selection-destination.is-disabled,
.selection-destination.is-disabled:hover {
  border-color: #c8cece;
  color: #77848a;
  background: #e7e8e4;
  cursor: not-allowed;
}

.selection-destination:hover,
.selection-destination:focus-visible {
  border-color: var(--office-teal);
  color: #fff;
  background: var(--office-teal);
}

.selection-destination:focus-visible {
  outline: 3px solid #f2c76d;
  outline-offset: 2px;
}

.selection-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 12px;
  border-bottom: 1px solid var(--office-line);
  padding-bottom: 8px;
}

.selection-tab {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 11px;
  color: var(--office-muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.selection-tab:hover,
.selection-tab:focus-visible {
  border-color: var(--office-line);
  color: var(--office-ink);
}

.selection-tab[aria-selected="true"] {
  border-color: var(--office-teal);
  color: #fff;
  background: var(--office-teal);
}

.selection-tab-panel > .race-section {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.selection-lede {
  margin: 0;
  color: var(--office-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.selection-steps {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.selection-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  color: #455864;
  font-size: 0.76rem;
  font-weight: 750;
}

.selection-steps span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--office-navy-900);
  font-size: 0.66rem;
}

.selection-action {
  width: 100%;
  margin: 16px 0 0;
  border: 1px solid var(--office-navy-900);
  border-radius: 7px;
  padding: 10px 13px;
  color: #fff;
  background: var(--office-navy-900);
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.selection-action:hover,
.selection-action:focus-visible {
  background: var(--office-navy-700);
}

.selection-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 10px;
}

.selection-photo {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 2px solid rgba(8, 47, 73, 0.14);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: #edf0ec;
}

.selection-title h3 {
  margin: 0;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.1;
}

.selection-fields {
  display: grid;
  gap: 0;
  margin: 0;
}

.selection-lede + .scope-office-fields {
  margin-top: 14px;
}

.scope-office-roster {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  border-top: 2px solid var(--office-navy-900);
  padding: 0;
  list-style: none;
}

.scope-office-roster li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--office-soft-line);
  padding: 8px 0;
  font-size: 0.74rem;
}

.scope-office-roster strong {
  color: var(--office-navy-950);
}

.scope-office-roster span {
  color: var(--office-muted);
  font-size: 0.62rem;
  text-align: right;
}

.scope-office-source {
  display: inline-block;
  margin-top: 12px;
  color: #0b5d72;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(11, 93, 114, 0.35);
  text-underline-offset: 3px;
}

.selection-fields div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--office-soft-line);
  padding: 9px 0;
}

.selection-fields dt {
  color: var(--office-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.selection-fields dd {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.selection-fields a,
.race-card a {
  color: #0b5d72;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(11, 93, 114, 0.35);
  text-underline-offset: 3px;
}

.race-section {
  margin-top: 18px;
  border-top: 2px solid var(--office-navy-900);
  padding-top: 13px;
}

.race-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.race-section-heading h3 {
  margin: 0;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: 1.05rem;
}

.race-section-heading span {
  color: var(--office-muted);
  font-size: 0.63rem;
  font-weight: 800;
}

.race-list {
  display: grid;
  gap: 8px;
}

.race-card {
  border: 1px solid var(--office-line);
  border-radius: 7px;
  padding: 10px;
  background: #faf7ef;
}

.race-card strong,
.race-card small,
.race-card a {
  display: block;
}

.race-card strong {
  color: var(--office-navy-950);
  font-size: 0.75rem;
  line-height: 1.35;
}

.race-card small {
  margin-top: 5px;
  color: var(--office-muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.race-card a {
  width: fit-content;
  margin-top: 7px;
  font-size: 0.68rem;
}

.race-empty {
  margin: 0;
  color: var(--office-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.source-note {
  margin: 15px 0 0;
  border-top: 1px solid var(--office-line);
  padding-top: 11px;
  color: #7a858b;
  font-size: 0.61rem;
  line-height: 1.5;
}

.offices-notes {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) 0 20px;
}

.offices-notes h2 {
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.02;
}

.offices-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  align-self: end;
  border: 1px solid var(--office-line);
  background: var(--office-line);
}

.offices-note-grid p {
  margin: 0;
  padding: 20px;
  color: #536470;
  background: var(--office-surface);
  font-size: 0.78rem;
  line-height: 1.6;
}

.offices-note-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--office-navy-950);
}

.offices-examples-link {
  grid-column: 2;
  justify-self: start;
  margin-top: 22px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1260px) {
  .offices-workspace {
    --office-map-height: clamp(510px, calc(56vh + 28px), 630px);
    grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr) minmax(230px, 1fr);
  }
}

@media (max-width: 860px) {
  .offices-page {
    padding-inline: 12px;
  }

  .offices-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .offices-notes {
    grid-template-columns: 1fr;
  }

  .offices-examples-link {
    grid-column: 1;
  }

  .offices-intro {
    gap: 12px;
  }

  .offices-atlas-actions,
  .offices-breadcrumbs {
    justify-content: flex-start;
  }

  .offices-workspace {
    --office-map-height: 500px;
    grid-template-areas:
      "layers"
      "map"
      "detail";
    grid-template-columns: 1fr;
    grid-template-rows: auto var(--office-map-height) auto;
  }

  .offices-controls,
  .offices-selection {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }

  .offices-selection {
    display: block;
  }

  .offices-selection [data-selection-content] {
    overflow-y: visible;
  }

  .offices-controls {
    grid-area: layers;
  }

  .offices-map-column {
    grid-area: map;
    height: var(--office-map-height);
    min-height: 0;
  }

  .offices-map {
    min-height: 0;
  }

  .offices-selection {
    grid-area: detail;
  }

  .state-picker-popover {
    width: min(340px, 100%);
    justify-self: start;
  }

  .state-picker-popover::before,
  .state-picker-popover::after {
    display: none;
  }

  .offices-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .offices-page {
    padding-inline: 8px;
  }

  .offices-intro {
    padding-top: 16px;
  }

  .offices-intro h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .offices-breadcrumbs {
    gap: 6px;
    overflow-x: auto;
  }

  .offices-breadcrumbs button {
    flex: 0 0 auto;
    padding-inline: 10px;
    font-size: 0.69rem;
  }

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

  .offices-workspace {
    --office-map-height: clamp(440px, 60vh, 500px);
  }

  .map-coverage-warning {
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    padding: 8px 12px;
    text-align: left;
  }

  .offices-map-card.has-coverage-warning .line-tuner,
  .offices-map-card.has-coverage-warning .small-state-insets {
    top: 72px;
  }

  .state-picker-popover {
    width: 100%;
  }

  .map-prompt {
    top: 10px;
    left: 10px;
  }

  .map-status {
    right: 10px;
    bottom: 10px;
  }

  .map-legend {
    bottom: 50px;
    left: 10px;
  }

  .noncontiguous-state-inset {
    bottom: 10px;
    left: 10px;
    width: min(190px, calc(100% - 72px));
  }

  .state-inset-map {
    height: 44px;
  }

  .small-state-insets {
    top: 10px;
    right: 10px;
    width: min(156px, calc(100% - 72px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .small-state-inset-control .state-inset-map {
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .offices-controls,
  .offices-map-column,
  .offices-breadcrumbs {
    display: none;
  }

  .offices-workspace,
  .offices-intro,
  .offices-notes {
    display: block;
  }

  .offices-selection {
    box-shadow: none;
  }
}
