:root {
  --round3-blue: #2b6bff;
  --round3-ink: #151515;
  --round3-muted: #68707a;
  --round3-line: #d8dadd;
  --round3-soft: #f4f6f8;
  --round3-white: #ffffff;
}

body[data-discovery-page="knowledge"] {
  color: var(--round3-ink);
  background: var(--round3-white);
}

.round3-hero {
  padding: 42px 0 20px;
  border-bottom: 1px solid var(--round3-line);
}

.round3-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: end;
}

.round3-hero h1 {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0;
}

.round3-hero__intro {
  max-width: 680px;
  margin: 0;
  color: var(--round3-muted);
  font-size: 15px;
  line-height: 1.7;
}

.round3-search-toggle {
  display: none;
}

.round3-search {
  display: grid;
  gap: 10px;
}

.round3-search__primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--round3-ink);
}

.round3-search__primary input {
  min-width: 0;
  height: 48px;
  padding: 0 10px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--round3-ink);
  font: inherit;
}

.round3-search__primary button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--round3-blue);
  font: inherit;
  cursor: pointer;
}

.round3-search__filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.round3-search__filters select {
  min-width: 0;
  height: 42px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--round3-line);
  border-radius: 0;
  background: var(--round3-white);
  color: var(--round3-ink);
  font: inherit;
}

.round3-search__clear {
  justify-self: end;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--round3-muted);
  cursor: pointer;
}

body:not(.has-active-catalog) .round3-search__clear {
  display: none;
}

body.has-active-catalog .round3-search__primary .round3-search__clear {
  display: block;
}

.round3-map-section {
  padding: 24px 0 20px;
}

.round3-map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 16px;
}

.round3-map-heading p {
  margin: 0 0 5px;
  color: var(--round3-blue);
  font-size: 12px;
  font-weight: 650;
}

.round3-map-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.round3-map-heading > span {
  max-width: 430px;
  color: var(--round3-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.knowledge-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 382px;
  border: 1px solid var(--round3-line);
  background: var(--round3-white);
  overflow: hidden;
}

.knowledge-map__track {
  position: absolute;
  top: 88px;
  right: 8.5%;
  bottom: 38px;
  left: 8.5%;
  border: 2px solid #c6c9ce;
  border-left-color: var(--round3-blue);
  border-radius: 0 72px 72px 0;
  pointer-events: none;
}

.knowledge-map__stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 18px 16px 16px;
  border-right: 1px solid var(--round3-line);
  background: color-mix(in srgb, var(--round3-white) 95%, transparent);
}

.knowledge-map__stage:last-of-type {
  border-right: 0;
}

.knowledge-map__stage-toggle {
  display: grid;
  width: 100%;
  min-height: 62px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--round3-line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}

.knowledge-map__stage-toggle > span {
  color: var(--round3-blue);
  font-size: 11px;
  font-weight: 700;
}

.knowledge-map__stage-toggle strong {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.25;
}

.knowledge-map__stage-toggle small {
  margin-top: 3px;
  color: var(--round3-muted);
  font-size: 11px;
  line-height: 1.4;
}

.knowledge-map__stage-toggle i {
  display: none;
}

.knowledge-map__nodes {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.knowledge-map__node {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  min-height: 74px;
  padding: 10px 9px;
  border: 1px solid transparent;
  color: var(--round3-ink);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.knowledge-map__node:hover,
.knowledge-map__node:focus-visible {
  border-color: #9fbaff;
  outline: 0;
  background: #f7f9ff;
}

.knowledge-map__node.is-selected {
  border-color: var(--round3-blue);
  background: #eef3ff;
}

.knowledge-map__node-mark {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 2px solid var(--round3-white);
  border-radius: 50%;
  background: #a5aab1;
  box-shadow: 0 0 0 1px #a5aab1;
}

.knowledge-map__node.is-selected .knowledge-map__node-mark {
  background: var(--round3-blue);
  box-shadow: 0 0 0 1px var(--round3-blue);
}

.knowledge-map__node-copy {
  display: grid;
  align-content: start;
  min-width: 0;
}

.knowledge-map__node-copy strong {
  font-size: 14px;
  line-height: 1.35;
}

.knowledge-map__node-copy small {
  margin-top: 3px;
  color: var(--round3-muted);
  font-size: 11px;
  line-height: 1.4;
}

.knowledge-map__node-copy em {
  margin-top: 7px;
  color: #8b929a;
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
}

.knowledge-map__error {
  grid-column: 1 / -1;
  margin: auto;
  color: var(--round3-muted);
}

.round3-aux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--round3-line);
}

.round3-aux p {
  margin: 0;
  color: var(--round3-muted);
  font-size: 12px;
}

.round3-aux a {
  color: var(--round3-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.round3-aux a:hover,
.round3-aux a:focus-visible {
  color: var(--round3-blue);
}

.round3-aux__reference {
  display: inline-flex;
  align-items: center;
  gap: 8px 14px;
  margin-left: auto;
  padding-left: 18px;
  border-left: 1px solid var(--round3-line);
}

.map-module {
  scroll-margin-top: 96px;
  padding: 52px 0 58px;
}

.map-module__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.map-module__heading p {
  margin: 0 0 4px;
  color: var(--round3-blue);
  font-size: 11px;
  font-weight: 700;
}

.map-module__heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.map-module__heading span {
  display: block;
  margin-top: 6px;
  color: var(--round3-muted);
  font-size: 13px;
}

.map-module__heading > a,
.map-module__next {
  color: var(--round3-ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.map-module__heading > a:hover,
.map-module__next:hover {
  color: var(--round3-blue);
}

.map-module__resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--round3-ink);
  border-bottom: 1px solid var(--round3-line);
}

.map-resource {
  display: flex;
  min-width: 0;
  min-height: 210px;
  padding: 20px;
  flex-direction: column;
  border-right: 1px solid var(--round3-line);
}

.map-resource:last-child {
  border-right: 0;
}

.map-resource__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--round3-blue);
  font-size: 10px;
  font-weight: 650;
}

.map-resource__meta span:last-child {
  color: var(--round3-muted);
  font-weight: 500;
}

.map-resource h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

.map-resource p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--round3-muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-resource > a {
  margin-top: auto;
  padding-top: 20px;
  color: var(--round3-ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.map-resource > a:hover {
  color: var(--round3-blue);
}

.map-module__next {
  display: inline-block;
  margin-top: 18px;
}

.round3-results {
  padding: 52px 0 72px;
  border-top: 1px solid var(--round3-line);
}

.round3-results .catalog-results-heading {
  scroll-margin-top: 92px;
}

.round3-results .catalog-browser__grid {
  margin-top: 20px;
}

body:not(.has-active-catalog) .round3-results {
  padding-top: 36px;
}

body.has-active-catalog .round3-map-section,
body.has-active-catalog .round3-aux,
body.has-active-catalog .map-module {
  display: none;
}

body.has-active-catalog .round3-results {
  padding-top: 28px;
  border-top: 0;
}

@media (max-width: 1024px) {
  .round3-hero__row {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
  }

  .knowledge-map__stage {
    padding-right: 11px;
    padding-left: 11px;
  }

  .knowledge-map__node {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (max-width: 767px) {
  .round3-hero {
    padding: 28px 0 16px;
  }

  .round3-hero__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
  }

  .round3-hero h1 {
    max-width: 10em;
    margin-bottom: 8px;
    font-size: 31px;
  }

  .round3-hero__intro {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .round3-search-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--round3-line);
    background: var(--round3-white);
    color: var(--round3-ink);
    font-size: 0;
  }

  .round3-search-toggle::before {
    width: 13px;
    height: 13px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .round3-search-toggle::after {
    width: 7px;
    height: 1.5px;
    margin: 12px 0 0 -7px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
  }

  .round3-search {
    display: none;
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .round3-search.is-expanded,
  body.has-active-catalog .round3-search {
    display: grid;
  }

  .round3-search__filters {
    grid-template-columns: 1fr;
  }

  .round3-map-section {
    padding-top: 18px;
  }

  .round3-map-heading {
    display: block;
    margin-bottom: 12px;
  }

  .round3-map-heading h2 {
    font-size: 23px;
  }

  .round3-map-heading > span {
    display: none;
  }

  .knowledge-map {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .knowledge-map__track {
    top: 24px;
    right: auto;
    bottom: 24px;
    left: 25px;
    width: 2px;
    border: 0;
    border-left: 2px solid var(--round3-blue);
    border-radius: 0;
  }

  .knowledge-map__stage {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--round3-line);
    background: transparent;
  }

  .knowledge-map__stage:last-of-type {
    border-bottom: 0;
  }

  .knowledge-map__stage-toggle {
    position: relative;
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    min-height: 64px;
    padding: 10px 10px 10px 12px;
    align-items: center;
    border-bottom: 0;
    cursor: pointer;
  }

  .knowledge-map__stage-toggle > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--round3-blue);
    border-radius: 50%;
    background: var(--round3-white);
  }

  .knowledge-map__stage-toggle strong {
    margin: 0;
    font-size: 15px;
  }

  .knowledge-map__stage-toggle small {
    display: none;
  }

  .knowledge-map__stage-toggle i {
    display: block;
    grid-column: 3;
    grid-row: 1;
    color: var(--round3-muted);
    font-size: 18px;
    font-style: normal;
    text-align: center;
  }

  .knowledge-map__nodes {
    display: none;
    gap: 7px;
    padding: 0 12px 12px 54px;
  }

  .knowledge-map__stage.is-expanded .knowledge-map__nodes {
    display: grid;
  }

  .knowledge-map__node {
    min-height: 56px;
    padding: 8px;
  }

  .knowledge-map__node-copy em {
    display: none;
  }

  .round3-aux {
    gap: 11px 14px;
    padding: 13px 0;
  }

  .round3-aux p {
    width: 100%;
  }

  .round3-aux__reference {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--round3-line);
    border-left: 0;
  }

  .map-module {
    padding: 36px 0 42px;
  }

  .map-module__heading {
    display: block;
    margin-bottom: 16px;
  }

  .map-module__heading h2 {
    font-size: 25px;
  }

  .map-module__heading > a {
    display: inline-block;
    margin-top: 14px;
  }

  .map-module__resources {
    grid-template-columns: 1fr;
  }

  .map-resource {
    min-height: 0;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--round3-line);
  }

  .map-resource:last-child {
    border-bottom: 0;
  }

  .map-resource h3 {
    margin-top: 10px;
  }

  .map-resource > a {
    margin-top: 14px;
    padding-top: 0;
  }

  .round3-results {
    padding: 36px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-map__node {
    transition: none;
  }

  html:focus-within {
    scroll-behavior: auto;
  }
}
