/* Navigation block — menu of pages.
   Orientation/appearance is a theme concern: this file only provides a sane
   horizontal default; themes override `.block-navigation .nav` in their own
   styles.css (loaded last) to go vertical, sidebar, etc. */

.block-navigation {
  margin-bottom: 1rem;
}

.block-navigation .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.block-navigation .nav-item {
  list-style: none;
}

.block-navigation .nav-link {
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.block-navigation .nav-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

/* The page being shown, and the pages above it. */
.block-navigation .nav-link.active {
  font-weight: 600;
}

/* An item with a submenu: its name and its caret side by side. Both are
   .nav-link, which Bootstrap makes a block, so otherwise the caret drops
   under the name and the item stands a line higher than the others (F319).
   The submenu itself is positioned, so it doesn't take part. */
.block-navigation .nav-item.dropdown {
  display: flex;
  align-items: center;
}

/* Split toggle (parent_link_clickable): pull the caret tight against the
   parent link so text + caret read as one item, not two nav entries. */
.block-navigation .nav-item.dropdown .dropdown-toggle-split {
  padding-left: 0.25rem;
}

.block-navigation .nav-item.dropdown > .nav-link:first-child + .dropdown-toggle-split {
  padding-right: 0.5rem;
}

.block-navigation .dropdown-toggle-split:hover {
  text-decoration: none;
}
