@media (min-width: 701px) {
  .sidebar > nav {
    display: block;
  }
}
/* One hierarchy and shared touch targets at every viewport. */
.sidebar nav .nav-group {
  margin: 14px 0 0;
}
.sidebar nav .nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9dbbb9;
  font-family: inherit;
  line-height: 1.4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.sidebar nav .nav-group-toggle:hover {
  background: #ffffff0c;
  color: white;
}
.sidebar nav .nav-group-toggle:focus-visible {
  outline: 2px solid #9fd8cd;
  outline-offset: 2px;
}
.nav-group-toggle svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.18s;
}
.nav-group-toggle[aria-expanded='false'] svg {
  transform: rotate(-90deg);
}
.sidebar nav .contains-active > .nav-group-toggle {
  color: #d4eee8;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.4;
}
.sidebar nav a > .nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  line-height: 0;
}
.sidebar nav a > .nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}
.sidebar nav a.active {
  background: #24766e;
  color: white;
  box-shadow: inset 3px 0 #a3ded0;
}
.sidebar nav .nav-group > div[hidden] {
  display: none !important;
}
.history-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.internal-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #677e86;
  min-width: 0;
}
.internal-breadcrumbs a {
  color: #19756c;
  text-decoration: none;
  padding: 8px 0;
}
.internal-breadcrumbs a:hover {
  text-decoration: underline;
}
.internal-breadcrumbs [aria-current] {
  overflow-wrap: anywhere;
}
.ph-cards > .resource-favorite > .si-card {
  position: relative;
  padding: 18px 64px 18px 18px;
  min-height: 108px;
}
.ph-cards > .resource-favorite .si-arrow {
  position: absolute;
  right: 22px;
  bottom: 14px;
  margin: 0;
  line-height: 20px;
}
.ph-cards > .resource-favorite .favorite-toggle {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
}
.ph-cards > .resource-favorite .si-icon {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
}
@media (max-width: 700px) {
  .sidebar.menu-open nav {
    display: block;
  }
  .sidebar nav .nav-group {
    margin-top: 8px;
  }
  .sidebar nav a {
    min-height: 48px;
    font-size: 14px;
  }
  .sidebar nav .nav-group-toggle {
    min-height: 44px;
  }
  .ph-cards > .resource-favorite > .si-card {
    padding: 16px 64px 16px 16px;
    min-height: 108px;
  }
  .history-navigation {
    gap: 4px 14px;
  }
  .internal-breadcrumbs {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-group-toggle svg {
    transition: none;
  }
}
/* Allow long module names to wrap without horizontal scrolling. */
@media (min-width: 701px) {
  .sidebar {
    width: 286px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .workspace {
    margin-left: 286px;
  }
}
.sidebar nav a > span,
.sidebar nav .nav-group-toggle > span {
  white-space: normal;
  overflow-wrap: break-word;
}
.sidebar nav {
  overflow-x: hidden;
}
