/* Provider Explorer page. Shared footer and type stay in styles.css. */

.page-nh {
  background: var(--lilac);
  color: var(--graphite);
  overflow-x: clip;
}

.page-nh [hidden] {
  display: none !important;
}

.nh-inner {
  width: min(42rem, 100%);
  min-width: 0;
}

.nh-top,
.nh-hero,
.nh-builder,
.nh-export {
  padding-left: var(--shell-x);
  padding-right: var(--shell-x);
}

.nh-hero__layout,
.nh-hero__copy,
.nh-hero__controls {
  display: contents;
}

.nh-top {
  padding-top: clamp(1.25rem, 4vw, 1.75rem);
  padding-bottom: 0.25rem;
}

.nh-top__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.page-nh .nh-top .wordmark {
  color: var(--graphite);
}

.nh-product {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nh-hero {
  padding-top: clamp(1.25rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.nh-export {
  background: var(--lilac);
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.nh-builder {
  background: #f7f6f8;
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.nh-lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

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

.nh-search input,
.nh-control {
  width: 100%;
  min-height: 3.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: #fff;
  color: var(--graphite);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 0.75rem;
  box-shadow: none;
}

.nh-search input::placeholder,
.nh-control::placeholder {
  color: rgb(28 33 30 / 0.46);
}

.nh-search input:focus-visible,
.nh-control:focus-visible,
.nh-check input:focus-visible,
.nh-group__toggle:focus-visible,
.nh-reset:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 3px;
}

.nh-filter-label {
  margin: 1.75rem 0 0.85rem;
}

.nh-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

select.nh-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231c211e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.05rem;
  padding-right: 2.4rem;
}

.nh-control--button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  background-image: none;
  padding-right: 1rem;
}

.nh-control--button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nh-control--button .nh-chevron {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.nh-control.is-placeholder,
.nh-control option[value=""] {
  color: rgb(28 33 30 / 0.46);
}

.nh-pop {
  position: relative;
}

.nh-pop__panel {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 10px 30px rgb(28 33 30 / 0.12);
  padding: 0.4rem;
}

.nh-pop__scroll {
  max-height: 16rem;
  overflow: auto;
}

.nh-coverage {
  white-space: pre-line;
}

.nh-note,
.nh-status,
.nh-coverage,
.nh-sample,
.nh-price,
.nh-rows,
.nh-version,
.nh-delivery {
  margin: 0.85rem 0 0;
  line-height: 1.45;
}

.nh-note,
.nh-status {
  color: rgb(28 33 30 / 0.72);
}

.nh-reset {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.nh-matches {
  margin-top: 1.25rem;
}

.nh-results__title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nh-results__total {
  margin: 0.45rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nh-results__shown {
  margin: 0.2rem 0 0;
  color: rgb(28 33 30 / 0.68);
}

.nh-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.nh-list li + li {
  margin-top: 1.35rem;
}

.nh-list h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nh-list p {
  margin: 0.2rem 0 0;
  color: rgb(28 33 30 / 0.72);
}

.nh-builder .link-cta,
.nh-export .link-cta {
  margin-top: 1.75rem;
}

button.link-cta {
  appearance: none;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  padding-inline: 0;
}

.nh-field--period {
  display: block;
  margin-bottom: 1.5rem;
}

.nh-group + .nh-group {
  margin-top: 0.35rem;
}

.nh-group__toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.7rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.nh-group__toggle .nh-chevron {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
}

.nh-group__toggle[aria-expanded="true"] .nh-chevron {
  transform: rotate(90deg);
}

.nh-group__fields {
  display: flex;
  flex-direction: column;
  padding: 0.15rem 0 0.6rem 1.4rem;
}

.nh-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-size: 1rem;
}

.nh-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--graphite);
  flex: none;
  margin: 0;
  cursor: pointer;
}

#ownership-options .nh-check input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin: 0;
  border: 1.5px solid rgb(28 33 30 / 0.28);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

#ownership-options .nh-check input[type="radio"]:checked {
  border-color: rgb(28 33 30 / 0.46);
  background-color: #fff;
  background-image: radial-gradient(circle, rgb(28 33 30 / 0.46) 42%, transparent 44%);
}

.nh-rows {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nh-coverage,
.nh-sample,
.nh-price {
  color: rgb(28 33 30 / 0.78);
}

.nh-price {
  font-weight: 700;
  color: inherit;
}

.nh-delivery {
  margin-top: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nh-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgb(28 33 30 / 0.62);
}

.nh-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin-top: 0.75rem;
}

.nh-table-scroll table {
  border-collapse: collapse;
  width: max-content;
}

.nh-table-scroll th,
.nh-table-scroll td {
  text-align: left;
  white-space: nowrap;
  padding: 0.45rem 1rem 0.45rem 0;
  vertical-align: top;
  font-weight: 500;
}

.nh-table-scroll th {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgb(28 33 30 / 0.62);
  font-weight: 600;
}

.nh-table-scroll td.is-missing {
  color: rgb(28 33 30 / 0.45);
}

@media (max-width: 22rem) {
  .nh-filters {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 64rem) {
  .nh-top .nh-inner,
  .nh-hero .nh-inner,
  .nh-builder .nh-inner,
  .nh-export .nh-inner {
    width: min(75rem, 100%);
    margin-inline: auto;
  }

  .nh-hero {
    padding-bottom: clamp(2.25rem, 5vw, 4rem);
  }

  .nh-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.9fr);
    column-gap: 3rem;
    align-items: start;
  }

  .nh-hero__copy,
  .nh-hero__controls {
    display: block;
    min-width: 0;
  }

  .nh-lead {
    margin-bottom: 0;
  }
}
