/* Content Index Sidebar */
.content-index {
  left: 0;
  width: 340px;
}

.index-section {
  margin-bottom: 1.5rem;
}

.index-section h4 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.index-nav {
  display: unset;
}

.index-nav ul {
  list-style: none;
  padding-left: 0;
}

.index-nav li {
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.index-nav li:hover {
  background-color: var(--bg-light);
  border-left-color: var(--secondary-color);
  padding-left: 1rem;
}

.index-nav li.active {
  background-color: var(--bg-light);
  border-left-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 600;
}

.index-nav li:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Contact Section Sidebar */
.contact-section {
  right: 0;
  width: 250px;
}

.contact-header {
  margin-bottom: 1rem;
}

.contact-header h4 {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.contact-nav {
  display: unset;
  padding: 0 2rem;
}

.contact-nav ul {
  list-style: none;
  padding-left: 0;
}

.contact-nav li {
  margin-bottom: 0.3rem;
}

.contact-nav a,
.contact-nav button {
  display: block;
  text-decoration: none;
  border-right: 3px solid transparent;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: normal;
}

.contact-nav a:hover,
.contact-nav button:hover {
  background-color: var(--bg-light);
  border-right-color: var(--secondary-color);
  padding-right: 1rem;
}

.contact-label {
  display: inline-block;
}

.contact-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

body.dark-mode .contact-icon {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
