:root {
  color-scheme: light;
  --ink: #061a31;
  --navy: #001d3a;
  --navy-2: #05305a;
  --cobalt: #1068dc;
  --blue-soft: #e9f2ff;
  --fog: #f4f8fc;
  --white: #ffffff;
  --line: #d3dce6;
  --line-strong: #aebdcb;
  --muted: #5c6c7c;
  --orange: #f15b22;
  --green: #436d38;
  --green-bg: #f2f8ef;
  --teal: #11727a;
  --teal-bg: #edf8f8;
  --orange-bg: #fff7ef;
  --blue-bg: #eff6ff;
  --shadow: 0 12px 28px rgb(6 26 49 / 10%);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
}

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

button,
select,
summary {
  cursor: pointer;
}

a {
  color: inherit;
}

button:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #7bb5ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 198px 1fr auto;
  align-items: stretch;
  min-height: 70px;
  padding: 0 30px;
  background: var(--navy);
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  width: 174px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #f9fbff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  background: var(--orange);
}

.workspace-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.workspace-identity a {
  font-weight: 700;
  text-decoration: none;
}

.workspace-identity span {
  display: grid;
  padding-left: 20px;
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.workspace-identity small {
  color: #bfd0e3;
  font-size: 11px;
}

.mobile-nav {
  display: none;
}

main {
  width: min(100%, 1600px);
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 34px 20px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 7px;
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3.2vw, 49px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.hero-deck {
  margin: 9px 0 0;
  color: #27384a;
  font-size: 16px;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(510px, 1.9fr) minmax(170px, .55fr) minmax(205px, .7fr) 170px;
  gap: 0;
  margin: 0 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel fieldset,
.search-panel label,
.search-actions {
  min-width: 0;
  margin: 0;
  padding: 19px 18px;
  border: 0;
}

.search-panel fieldset,
.search-panel label {
  border-right: 1px solid var(--line);
}

.search-panel legend,
.select-control > span {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: #526273;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sector-options {
  display: flex;
  gap: 8px;
}

.sector-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sector-button:hover {
  border-color: var(--cobalt);
}

.sector-button.active {
  border-color: var(--navy-2);
  background: var(--navy-2);
  color: var(--white);
}

.select-control select {
  width: 100%;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.select-control small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
}

.primary-button,
.secondary-button {
  min-height: 45px;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
}

.primary-button {
  background: var(--orange);
  color: var(--white);
}

.primary-button:hover {
  background: #d84a14;
}

.secondary-button {
  background: var(--navy-2);
  color: var(--white);
}

.secondary-button:hover {
  background: var(--navy);
}

.text-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px 12px;
}

.filter-bar .filter-label {
  font-weight: 800;
}

.filter-bar select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
}

.filter-bar a {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.discovery-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(520px, 1fr);
  min-height: 710px;
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.map-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #f5f9fd;
}

.map-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px 0;
}

.map-heading h2,
.results-heading h2,
.provider-detail h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.map-heading > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

.map-panel figure {
  margin: 0;
}

.map-panel figure img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
}

.map-panel figcaption {
  max-width: 650px;
  margin: 0 28px 24px 276px;
  color: var(--muted);
  font-size: 11px;
}

.coverage-legend {
  position: absolute;
  bottom: 32px;
  left: 28px;
  width: 220px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(255 255 255 / 93%);
  box-shadow: 0 8px 20px rgb(6 26 49 / 8%);
}

.coverage-legend div {
  padding: 6px 0 6px 10px;
  border-left: 4px solid var(--line-strong);
}

.coverage-legend .strong {
  border-color: var(--cobalt);
}

.coverage-legend .partial {
  border-color: #72aaf2;
}

.coverage-legend dt {
  font-size: 11px;
  font-weight: 800;
}

.coverage-legend dd {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.results-panel {
  min-width: 0;
  background: var(--white);
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 69px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}

.results-heading label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.results-heading select {
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  margin: 0;
}

.result-list li[hidden] {
  display: none;
}

.result-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 11px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.result-row:hover {
  background: #f8fbff;
}

.result-row.selected {
  box-shadow: inset 4px 0 var(--orange), inset 0 0 0 1px var(--cobalt);
  background: #f7fbff;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.provider-summary {
  display: grid;
  min-width: 0;
  padding-right: 12px;
}

.provider-summary strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-summary small {
  color: var(--muted);
  font-size: 10px;
}

.provider-summary > span {
  overflow: hidden;
  margin-top: 4px;
  color: #415467;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.evidence-tag.coverage {
  background: var(--green-bg);
  color: var(--green);
}

.evidence-tag.operator {
  background: var(--teal-bg);
  color: var(--teal);
}

.evidence-tag.provider {
  background: var(--blue-bg);
  color: var(--cobalt);
}

.evidence-tag.pending {
  background: var(--orange-bg);
  color: #c14d13;
}

.provider-detail {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.provider-detail[hidden] {
  display: none;
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px 10px;
}

.detail-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.detail-tabs button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #3e5266;
  font-size: 10px;
  font-weight: 700;
}

.detail-tabs button[aria-selected="true"] {
  border-bottom-color: var(--cobalt);
  color: var(--cobalt);
}

.detail-content {
  min-height: 220px;
}

.detail-tab-panel {
  padding: 17px 20px;
}

.detail-tab-panel.active[data-panel="overview"] {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, .75fr);
  gap: 24px;
}

.detail-tab-panel h3 {
  margin: 0 0 8px;
  font-size: 12px;
}

.detail-tab-panel p,
.detail-tab-panel li {
  color: #405467;
  font-size: 11px;
}

.detail-tab-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.profile-facts,
.casework-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 16px 0 0;
}

.profile-facts div,
.casework-card dl div {
  min-width: 0;
}

.profile-facts dt,
.casework-card dt,
.evidence-method dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-facts dd,
.casework-card dd,
.evidence-method dd {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 800;
}

.casework-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.casework-card > span {
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.casework-card h3 {
  margin-top: 6px;
  font-size: 13px;
}

.casework-card > p {
  margin: 0;
  font-size: 10px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
  padding: 0 20px 20px;
}

.prototype-note {
  margin: 0;
  padding: 16px 30px 24px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(0 16 35 / 28%);
}

dialog::backdrop {
  background: rgb(0 20 42 / 58%);
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
}

.dialog-heading button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

dialog > p,
.evidence-method {
  margin: 0;
  padding: 18px 24px 0;
}

.evidence-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

dialog .dialog-note {
  margin: 20px 24px 24px;
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  background: var(--orange-bg);
  color: #6c3519;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: 182px 1fr auto;
    padding: 0 22px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .search-panel {
    grid-template-columns: minmax(440px, 1.7fr) minmax(150px, .55fr) minmax(180px, .7fr) 150px;
    margin-inline: 22px;
  }

  .sector-button {
    padding-inline: 10px;
  }

  .discovery-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(490px, .9fr);
  }
}

@media (max-width: 1040px) {
  .workspace-identity span,
  .desktop-nav a:nth-child(3),
  .desktop-nav a:nth-child(4) {
    display: none;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .search-panel fieldset {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sector-options {
    flex-wrap: wrap;
  }

  .discovery-workspace {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 650px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-panel figure img {
    max-height: 520px;
    object-fit: contain;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 160px 1fr;
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    width: 148px;
  }

  .desktop-nav,
  .workspace-identity {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
    align-self: center;
    justify-self: end;
  }

  .mobile-nav summary {
    padding: 9px 12px;
    border: 1px solid rgb(255 255 255 / 38%);
    border-radius: 4px;
    font-weight: 800;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav nav {
    position: absolute;
    top: 49px;
    right: 0;
    display: grid;
    width: 230px;
    padding: 10px;
    border: 1px solid #284865;
    border-radius: 5px;
    background: var(--navy);
    box-shadow: var(--shadow);
  }

  .mobile-nav nav a {
    padding: 10px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    text-decoration: none;
  }

  .hero {
    display: block;
    padding: 28px 18px 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .updated {
    margin-top: 14px;
    white-space: normal;
  }

  .search-panel {
    display: block;
    margin: 0 16px;
  }

  .search-panel fieldset,
  .search-panel label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sector-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-button {
    width: 100%;
    min-height: 46px;
  }

  .search-actions {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .primary-button,
  .secondary-button {
    min-height: 48px;
  }

  .filter-bar {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .filter-bar .filter-label,
  .filter-bar a {
    width: 100%;
  }

  .filter-bar label {
    flex: 1 1 145px;
  }

  .filter-bar select {
    width: 100%;
    min-height: 46px;
  }

  .map-panel {
    min-height: auto;
  }

  .map-heading {
    display: block;
    padding: 20px 18px 0;
  }

  .map-heading > p {
    margin-top: 7px;
    text-align: left;
  }

  .map-panel figure img {
    margin-top: 8px;
  }

  .map-panel figcaption {
    margin: 0 18px 18px;
  }

  .coverage-legend {
    position: static;
    width: auto;
    margin: 0 18px 20px;
  }

  .results-heading {
    align-items: start;
    padding: 16px 18px;
  }

  .results-heading label {
    display: grid;
    justify-items: end;
  }

  .result-row {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 90px;
    padding: 12px 16px;
  }

  .result-row .evidence-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 7px;
  }

  .provider-summary > span {
    white-space: normal;
  }

  .detail-title-row {
    align-items: start;
    padding-inline: 16px;
  }

  .detail-tabs {
    padding-inline: 10px;
  }

  .detail-tabs button {
    min-height: 44px;
  }

  .detail-tab-panel.active[data-panel="overview"] {
    grid-template-columns: 1fr;
  }

  .detail-tab-panel {
    padding-inline: 16px;
  }

  .profile-facts {
    grid-template-columns: 1fr 1fr;
  }

  .detail-actions {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .prototype-note {
    padding-inline: 18px;
  }

  .evidence-method {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-deck {
    font-size: 14px;
  }

  .sector-options {
    grid-template-columns: 1fr;
  }

  .results-heading {
    display: block;
  }

  .results-heading label {
    justify-items: start;
    margin-top: 12px;
  }

  .detail-title-row {
    display: block;
  }

  .detail-title-row .evidence-tag {
    margin-top: 10px;
  }

  .profile-facts,
  .casework-card dl,
  .detail-tab-panel ul {
    grid-template-columns: 1fr;
  }
}

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