/* ==========================================================
   Neuro Reach – specialist search add-on
   Loads after main.css. Only styles the new pieces
   (tab panel, chips, loader) and makes the
   dropdown + results slider work with nr-search.js.
   Adjust the tokens below to your main.css brand values.
   ========================================================== */

.nr-search,
.nr-results {
  --nr-primary: #0a5c8e;
  --nr-primary-soft: #e8f2f8;
  --nr-ink: #14233a;
  --nr-muted: #5d6a7c;
  --nr-line: #dde5ee;
  --nr-underline: #cfd4d9; /* match the field underline in main.css */
  --nr-surface: #ffffff;
  --nr-wash: #f5f5f5;
  --nr-radius: 16px;
  --nr-shadow: 0 24px 48px -20px rgba(13, 42, 77, 0.32), 0 2px 6px rgba(13, 42, 77, 0.06);
}

/* The chevrons open their menus, so show a hand cursor on them */
.nr-search .nr-query .search__icon,
.nr-search .search__field--consultation .search__control {
  cursor: pointer;
}

.nr-search .nr-query .search__icon {
  pointer-events: auto; /* main.css may make the icon click-through */
}

/* Same font as the site's search fields. nr-search.js copies the font of the
   Search input into --nr-font, so the panel, tabs, options, chips and the
   Consultation list always match the form – whatever main.css uses. */
.nr-search .nr-panel,
.nr-search .nr-panel__tab,
.nr-search .nr-panel__msg,
.nr-search .nr-option,
.nr-search .nr-chip,
.nr-search .nr-chip__remove,
.nr-search .dropdown__toggle,
.nr-search .dropdown__value,
.nr-search .dropdown__option,
.nr-results .results__summary,
.nr-loader {
  font-family: var(--nr-font, inherit) !important;
}

/* `hidden` must win over display rules from main.css */
.nr-search [hidden],
.nr-results [hidden],
.nr-results[hidden],
.nr-listing [hidden] {
  display: none !important;
}

/* While a search menu is open, let it hang below the banner over the next section */
.nr-menu-open {
  position: relative;
  z-index: 50;
  overflow: visible !important;
  overflow-x: clip !important; /* still hides the banner's side glows */
}

/* Menus need room to escape the search card */
.nr-search,
.nr-search .search__row,
.banner__search {
  overflow: visible;
}

.nr-search .search__field {
  position: relative;
}

.nr-query.is-open .search__icon {
  transform: rotate(180deg);
}

.nr-search .search__icon {
  transition: transform 0.2s ease;
}

/* ---------- Search panel (WellFemme-style card) ---------- */
.nr-panel {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  z-index: 60;
  width: min(870px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  background: var(--nr-surface);
  border: 1px solid var(--nr-line);
  border-radius: 24px;
  box-shadow: var(--nr-shadow);
  color: var(--nr-ink);
  text-align: left;
}

.nr-panel__head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--nr-line);
}

.nr-panel__tabs {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.nr-panel__tabs::-webkit-scrollbar {
  display: none;
}

.nr-panel__tab {
  position: relative;
  flex: 1 1 0; /* each tab takes an equal share of the row */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 46px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--nr-muted);
  font: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nr-panel__tab svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.nr-panel__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: var(--nr-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nr-panel__tab:hover,
.nr-panel__tab.is-active {
  color: var(--nr-primary);
}

.nr-panel__tab.is-active::after {
  transform: scaleX(1);
}

.nr-panel__close {
  display: none;
  flex: none;
  align-self: center;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--nr-wash);
  color: var(--nr-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nr-panel__msg {
  margin: 0;
  padding: 28px 26px 4px;
  font-size: 20px;
  color: var(--nr-ink);
}

.nr-panel__body {
  max-height: 440px;
  margin: 18px 12px 18px 0;
  padding: 0 14px 0 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--nr-primary) transparent;
}

.nr-panel__body::-webkit-scrollbar {
  width: 5px;
}

.nr-panel__body::-webkit-scrollbar-thumb {
  background: var(--nr-primary);
  border-radius: 99px;
}

.nr-panel__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
}

/* ---------- Options ---------- */
.nr-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 12px 18px 12px 28px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--nr-primary);
  font: inherit;
  font-size: 19px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nr-option:hover {
  background: var(--nr-wash);
}

.nr-option__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--nr-muted);
}

.nr-option__icon svg {
  width: 18px;
  height: 18px;
}

.nr-option__text {
  flex: 1;
  min-width: 0;
}

.nr-option.is-selected {
  background: var(--nr-wash);
  font-weight: 600;
}

.nr-option.is-selected::after {
  content: "";
  flex: none;
  width: 7px;
  height: 13px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}

.nr-option--custom {
  grid-column: 1 / -1;
  min-height: 60px;
  border: 1px dashed var(--nr-primary);
  font-weight: 600;
}

/* ---------- Chips (inside the search box) ---------- */
.nr-query__box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  cursor: text;
}

.nr-query__box .search__input {
  width: 100%;
  min-width: 0;
}

/* Chips live inside the search box, one per row, above the text.
   The row aligns to the top so only the Search field grows;
   Consultation and the button stay put. */
.nr-search .search__row {
  align-items: flex-start !important;
}

/* main.css gives the field/control a fixed height; with chips it must grow
   DOWNWARD, otherwise the chips spill up over the label and the title. */
.nr-search .nr-query,
.nr-search .nr-query .search__control,
.nr-search .nr-query__box {
  height: auto !important;
  max-height: none !important;
  overflow: visible;
}

.nr-search .nr-query .search__control {
  align-items: flex-end; /* keep the chevron next to the text line */
}

.nr-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 8px 0 4px;
}

/* With chips, the underline runs under the whole box (chips + text) */
.nr-query.has-chips .nr-query__box {
  border-bottom: 1px solid var(--nr-underline);
}

.nr-query.has-chips .nr-query__box .search__input {
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

.nr-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 4px 4px 8px;
  border-radius: 999px;
  background: var(--nr-primary-soft);
  color: var(--nr-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.nr-chip__icon {
  flex: none;
  display: grid;
  place-items: center;
  font-style: normal;
}

.nr-chip__icon svg {
  width: 13px;
  height: 13px;
}

.nr-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nr-chip__remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nr-primary);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Consultation dropdown ---------- */
.nr-search .dropdown {
  position: relative;
}

.nr-search .dropdown:not(.is-open) .dropdown__menu {
  display: none;
}

.nr-search .dropdown.is-open .dropdown__menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  z-index: 60;
}

.nr-search .dropdown__option {
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- Row widths (no Location field any more) ----------
   Search gets the most room, Consultation is wider than before,
   the button keeps its natural width. Works whether main.css lays
   the row out with flex or grid. */
.nr-search .search__row {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto !important;
}

.nr-search .search__field--query {
  flex: 1.6 1 0 !important;
  max-width: none !important;
  min-width: 0;
}

.nr-search .search__field--consultation {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 260px;
}

.nr-search .search__field--consultation .search__control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100% !important;
  max-width: none !important;
}

.nr-search .search__field--consultation .dropdown {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
}

.nr-search .search__field--consultation .dropdown__toggle {
  width: 100% !important;
  max-width: none !important;
}

.nr-search .nr-consult-clear {
  flex: none;
  cursor: pointer;
}

.nr-search .search__field--consultation .dropdown__menu {
  min-width: 100%;
}

.nr-search .search__submit {
  flex: none !important;
}

@media (max-width: 767px) {
  .nr-search .search__row {
    grid-template-columns: 1fr !important;
  }

  .nr-search .search__field--query,
  .nr-search .search__field--consultation {
    flex-basis: 100% !important;
    min-width: 0;
  }
}

/* "Any consultation" placeholder = nothing chosen yet (no filter) */
.nr-search .dropdown__value.is-placeholder {
  color: var(--nr-muted);
  opacity: 0.85;
}

/* Keep the chosen type on one line */
.nr-search .dropdown__toggle {
  min-width: 0;
  max-width: 100%;
}

.nr-search .dropdown__value {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- Focus (keyboard) ---------- */
.nr-panel__tab:focus-visible,
.nr-option:focus-visible,
.nr-chip__remove:focus-visible,
.nr-panel__close:focus-visible,
.nr-search .dropdown__option:focus-visible,
.nr-results .results__track:focus-visible {
  outline: 2px solid var(--nr-primary);
  outline-offset: 2px;
}

/* ---------- Results slider ---------- */
.nr-results {
  scroll-margin-top: 96px;
}

.nr-results .results__track {
  --nr-gap: 24px;
  display: flex;
  gap: var(--nr-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.nr-results .results__track::-webkit-scrollbar {
  display: none;
}

.nr-results .results__slide {
  flex: 0 0 calc((100% - 3 * var(--nr-gap)) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.nr-results .results__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.nr-results:not(.has-overflow) .results__tools {
  visibility: hidden;
}

/* ---------- Directory sidebar: collapsed state (side arrow) ----------
   main.css styles the look; these rules make sure collapsing works even if
   main.css uses a different class name for it. */
.nr-listing .filters.is-collapsed .filters__inner {
  display: none !important;
}

.nr-listing .filters:not(.is-collapsed) .filters__rail {
  display: none !important;
}

/* Collapsed: show the filter icon at the top of the strip.
   Forced visible because main.css only reveals the rail with its own (different) class. */
.nr-listing .filters.is-collapsed .filters__rail {
  display: flex !important;
  justify-content: center;
  position: absolute !important;
  top: 28px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 2;
}

.nr-listing .filters.is-collapsed .filters__rail img {
  display: block !important;
  width: 20px;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Arrow: always on the strip's edge, in its middle (never below a short strip).
   Points left when open, right when collapsed. */
.nr-listing .filters__toggle {
  top: min(50%, 45vh) !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.nr-listing .filters.is-collapsed .filters__toggle {
  transform: translateY(-50%) scaleX(-1) !important;
}

/* Keep the arrow clickable: the listing (and its arrow) sit above the next section,
   which otherwise covered the arrow when the list is short. */
.nr-listing {
  position: relative;
  z-index: 3;
}

.nr-listing .filters__toggle {
  z-index: 40;
  cursor: pointer;
}

/* The whole collapsed strip opens the filters too */
.nr-listing .filters.is-collapsed {
  cursor: pointer;
}

/* Collapsed = the sidebar shrinks to a thin strip and the cards take the freed space
   (3 per row), like the static design. Desktop only; mobile keeps main.css behaviour. */
@media (min-width: 992px) {
  .nr-listing .filters {
    transition: width 0.3s ease, min-width 0.3s ease, flex-basis 0.3s ease;
  }

  .nr-listing.is-filters-collapsed {
    grid-template-columns: 60px minmax(0, 1fr) !important;
  }

  .nr-listing.is-filters-collapsed .filters {
    flex: 0 0 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nr-listing.is-filters-collapsed .listing__main {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
  }

  .nr-listing.is-filters-collapsed .listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .nr-listing.is-filters-collapsed .listing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nr-listing .filters {
    transition: none;
  }
}

/* ---------- Directory listing (grid) ---------- */
.nr-listing__summary {
  margin: 0 0 24px;
  color: var(--nr-muted);
  font-size: 16px;
}

.nr-listing .nr-loader {
  grid-column: 1 / -1;
}

/* Loader */
.nr-loader {
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 0;
  color: var(--nr-muted);
  font-size: 15px;
}

.nr-loader__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--nr-line);
  border-top-color: var(--nr-primary);
  border-radius: 50%;
  animation: nr-spin 0.8s linear infinite;
}

@keyframes nr-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .nr-results .results__slide {
    flex-basis: calc((100% - 2 * var(--nr-gap)) / 3);
  }
}

@media (max-width: 991px) {
  .nr-results .results__slide {
    flex-basis: calc((100% - var(--nr-gap)) / 2);
  }
}

@media (max-width: 1199px) {
  .nr-panel__tab {
    padding: 24px 28px 26px;
    font-size: 20px;
  }
}

@media (max-width: 991px) {
  .nr-panel__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nr-option {
    min-height: 60px;
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .nr-panel {
    top: calc(100% + 12px);
    width: 100%;
    border-radius: 18px;
  }

  .nr-panel__close {
    display: grid;
  }

  .nr-panel__tab {
    gap: 8px;
    padding: 18px 16px 20px;
    font-size: 16px;
  }

  .nr-panel__msg {
    padding: 18px 18px 0;
    font-size: 16px;
  }

  .nr-panel__body {
    max-height: 50vh;
    padding: 0 8px 0 14px;
  }

  .nr-panel__list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .nr-option {
    min-height: 52px;
    padding: 10px 14px;
    font-size: 16px;
  }

  .nr-results .results__track {
    --nr-gap: 16px;
  }

  .nr-results .results__slide {
    flex-basis: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nr-loader__spinner {
    animation-duration: 2.4s;
  }

  .nr-panel__tab,
  .nr-option,
  .nr-search .search__icon {
    transition: none;
  }
}

/* ==========================================================
   About Us – Board Members photos
   Photo with its own background (JPG / solid PNG): crop it into an arch
   in the arc's place, instead of a box covering the arc.
   Cut-out photos (transparent background) keep the design look.
   ========================================================== */
.team__avatar--boxed .team__arc {
  display: none; /* the arch photo replaces the arc */
}

.team__avatar--boxed .team__photo {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 9999px 9999px 0 0; /* round top, flat bottom – same shape as the arc */
  overflow: hidden !important;
  background: #fde5df; /* arc pink, shows while the photo loads */
}

/* The photo fills the whole arch. main.css positions/shifts the cut-out image
   (left / transform / auto width) – all of that is reset here. */
.team__avatar--boxed .team__photo img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important; /* keep the face in view */
}

/* ==========================================================
   About Us – How NeuroReach Works: every step in ONE row
   The template sets --steps-count (3, 4, 5…) on .steps__grid, so the
   row splits into that many equal columns and the dotted path runs
   from the first icon to the last.
   ========================================================== */
@media (min-width: 992px) {
  .steps__grid[style*="--steps-count"] {
    display: grid !important;
    grid-template-columns: repeat(var(--steps-count), minmax(0, 1fr)) !important;
  }

  .steps__grid[style*="--steps-count"] .steps__item {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
  }

  /* dotted line: from the centre of the first column to the centre of the last */
  .steps__grid[style*="--steps-count"] .steps__path {
    left: calc(100% / (var(--steps-count) * 2) + 48px) !important;
    right: calc(100% / (var(--steps-count) * 2) + 48px) !important;
    width: auto !important;
  }
}

/* ==========================================================
   Home page results: same look as the Directory listing –
   wide doctor cards, 3 per row (2 on tablet, 1 on mobile),
   so names and roles no longer wrap word by word.
   ========================================================== */
.nr-results--grid .nr-results__main {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  margin: 0;
}

.nr-results--grid .nr-results__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 48px;
  row-gap: 56px;
}

.nr-results--grid .nr-results__grid > .doc {
  min-width: 0;
  width: auto !important;
  max-width: none !important;
}

.nr-results--grid .nr-loader {
  grid-column: 1 / -1;
}

@media (max-width: 1199px) {
  .nr-results--grid .nr-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .nr-results--grid .nr-results__grid {
    grid-template-columns: 1fr !important;
    row-gap: 40px;
  }
}

/* ==========================================================
   Specialities with sub-categories
   A category that has sub-categories shows a count + › and opens
   a second popup over the list (title, back ‹ and close ×).
   ========================================================== */
.nr-option__more {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--nr-primary-soft);
  color: var(--nr-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.nr-option--parent.is-selected::after {
  margin-left: 8px; /* tick after the count badge */
}

/* sub-category shown in the main list while typing: name + its category underneath */
.nr-option__parent {
  display: block;
  margin-top: 2px;
  color: var(--nr-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

/* the popup covers the whole panel, with its own header (title, back, close) */
.nr-panel {
  isolation: isolate;
}

.nr-sub {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: var(--nr-surface);
  border-radius: inherit;
  overflow: hidden;
  animation: nr-sub-in 0.18s ease-out;
}

.nr-sub[hidden] {
  display: none !important;
}

@keyframes nr-sub-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

.nr-sub__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px 16px;
  border-bottom: 1px solid var(--nr-line);
}

.nr-sub__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--nr-primary);
  font-family: var(--nr-font, inherit);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.nr-sub__back,
.nr-sub__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nr-wash);
  color: var(--nr-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nr-sub__back:hover,
.nr-sub__close:hover {
  background: var(--nr-primary);
  color: #fff;
}

.nr-sub__back:focus-visible,
.nr-sub__close:focus-visible {
  outline: 2px solid var(--nr-primary);
  outline-offset: 2px;
}

.nr-sub__body {
  flex: 1;
  min-height: 0;
  margin: 18px 12px 18px 0;
  padding: 0 14px 0 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--nr-primary) transparent;
}

/* "All Neurology" spans the full row */
.nr-option--all {
  grid-column: 1 / -1;
  min-height: 56px;
  font-weight: 600;
}

/* the panel needs some height so the popup has room even when the list is short */
.nr-panel.has-sub {
  min-height: 380px;
}

@media (max-width: 767px) {
  .nr-sub__head {
    padding: 14px 12px;
  }

  .nr-sub__title {
    font-size: 18px;
  }

  .nr-sub__body {
    padding: 0 8px 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nr-sub {
    animation: none;
  }
}

/* ==========================================================
   Directory sidebar: sub-categories indented under their main category
   ========================================================== */
.filters__option.filters__option--child {
  position: relative;
  margin-left: 26px;
  font-size: 0.94em;
}

/* small connector line so it reads as part of the category above */
.filters__option.filters__option--child::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 50%;
  width: 10px;
  border-left: 1px solid var(--nr-line);
  border-bottom: 1px solid var(--nr-line);
  border-bottom-left-radius: 4px;
  pointer-events: none;
}

/* ==========================================================
   Name tab: doctor names are links to their profile
   ========================================================== */
.nr-option.nr-option--link {
  text-decoration: none !important;
}

.nr-option__go {
  flex: none;
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  color: var(--nr-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nr-option--link:hover .nr-option__go,
.nr-option--link:focus-visible .nr-option__go {
  opacity: 1;
  transform: none;
  color: var(--nr-primary);
}

@media (hover: none) {
  .nr-option__go {
    opacity: 1; /* touch screens: always show the arrow */
    transform: none;
  }
}