.scoped-tree-nav {
  --scoped-tree-indent: 0.85rem;
}

.scoped-tree-list,
.scoped-tree-children,
.scoped-tree-disclosure ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scoped-tree-item {
  position: relative;
  margin: 0;
}

.scoped-tree-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding-left: calc(var(--tree-depth, 0) * var(--scoped-tree-indent));
  border-top: 1px solid var(--hx-color-editorial-rule, var(--color-editorial-rule));
}

.scoped-tree-list > .scoped-tree-item:last-child > .scoped-tree-row,
.scoped-tree-children > .scoped-tree-item:last-child > .scoped-tree-row {
  border-bottom: 1px solid var(--hx-color-editorial-rule, var(--color-editorial-rule));
}

.scoped-tree-link {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.62rem 0;
  color: var(--hx-color-editorial-navy, var(--color-editorial-navy));
  font-family: var(--hx-font-display, var(--font-display));
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
  transition: color 180ms ease;
}

.scoped-tree-link:hover,
.scoped-tree-link.is-ancestor {
  color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
}

.scoped-tree-link.is-current {
  color: var(--hx-color-editorial-ink, var(--color-editorial-ink));
  font-weight: 700;
}

.scoped-tree-marker {
  width: 2px;
  min-height: 1.15rem;
  flex: 0 0 2px;
  align-self: center;
  background: transparent;
}

.scoped-tree-link.is-current .scoped-tree-marker {
  background: var(--hx-color-editorial-terra, var(--color-editorial-terra));
}

.scoped-tree-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scoped-tree-group {
  margin-top: 2.5rem;
}

.scoped-tree-count {
  flex: 0 0 auto;
  color: var(--hx-color-editorial-muted, var(--color-editorial-muted));
  font-family: var(--hx-font-sans, var(--font-sans));
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.scoped-tree-item.is-compressed .scoped-tree-link {
  font-size: 0.86rem;
}

.scoped-tree-disclosure {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

.scoped-tree-disclosure summary {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--hx-color-editorial-rule, var(--color-editorial-rule));
  color: var(--hx-color-editorial-muted, var(--color-editorial-muted));
  font-size: 0.8rem;
  line-height: 1;
  list-style: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.scoped-tree-disclosure summary::-webkit-details-marker {
  display: none;
}

.scoped-tree-disclosure summary:hover {
  border-color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
  color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
}

.scoped-tree-disclosure[open] summary span {
  transform: rotate(45deg);
}

.scoped-tree-disclosure ul {
  position: absolute;
  right: 0;
  z-index: 4;
  width: min(16rem, calc(100vw - 3rem));
  margin-top: 0.35rem;
  border: 1px solid var(--hx-color-editorial-rule, var(--color-editorial-rule));
  background: var(--hx-color-editorial-cream, var(--color-editorial-cream));
  box-shadow: 0 16px 35px rgb(65 64 66 / 0.12);
}

.scoped-tree-disclosure a {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--hx-color-editorial-navy, var(--color-editorial-navy));
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

.scoped-tree-disclosure a:hover {
  color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
}

.branch-child-cards {
  max-width: 48rem;
  margin-top: 3rem;
}

.branch-child-cards-heading {
  margin-bottom: 1rem;
  color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.branch-child-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2rem;
}

.branch-child-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--hx-color-editorial-rule, var(--color-editorial-rule));
  color: var(--hx-color-editorial-navy, var(--color-editorial-navy));
  text-decoration: none;
}

.branch-child-card::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--hx-color-editorial-muted, var(--color-editorial-muted));
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.branch-child-card:hover .branch-child-card-title,
.branch-child-card:focus-visible .branch-child-card-title,
.branch-child-card:hover::after,
.branch-child-card:focus-visible::after {
  color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
}

.branch-child-card:hover::after,
.branch-child-card:focus-visible::after {
  transform: translateX(0.25rem);
}

.branch-child-card-title {
  display: block;
  min-width: 0;
  color: var(--hx-color-editorial-navy, var(--color-editorial-navy));
  font-family: var(--hx-font-sans, var(--font-sans));
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 180ms ease;
}

.branch-child-card-description {
  display: block;
  grid-column: 1;
  min-width: 0;
  color: var(--hx-color-editorial-muted, var(--color-editorial-muted));
  font-family: var(--hx-font-sans, var(--font-sans));
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .branch-child-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  }
}

.section-child-index {
  max-width: 48rem;
  margin-top: 3rem;
}

.section-child-index-heading {
  margin-bottom: 1rem;
  color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-child-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-child-index-item {
  border-top: 1px solid var(--hx-color-editorial-rule, var(--color-editorial-rule));
}

.section-child-index-item:last-child {
  border-bottom: 1px solid var(--hx-color-editorial-rule, var(--color-editorial-rule));
}

.section-child-index-link {
  display: block;
  padding: 0.85rem 0;
  color: var(--hx-color-editorial-navy, var(--color-editorial-navy));
  font-family: var(--hx-font-display, var(--font-display));
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease;
}

.section-child-index-link:hover {
  color: var(--hx-color-editorial-terra, var(--color-editorial-terra));
}
