:root {
  --primary-blue: #375b9a;
  --primary-blue-dark: #2c487a;
  --light-gray-bg: #f7f7f7;
  --medium-gray-border: #e0e0e0;
  --dark-gray-text: #333333;
  --light-gray-text: #666666;
  --white-color: #ffffff;
  --panel-width: 350px;
}


.table-of-contents {
  position: fixed;
  top: 0;
  right: calc(-1 * var(--panel-width));
  width: var(--panel-width);
  height: 100vh;
  background-color: var(--light-gray-bg);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  padding-top: 60px;
  box-sizing: border-box;
}

.open .table-of-contents {
  left: 0;
}


.table-of-contents .table-of-contents-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--light-gray-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.table-of-contents .table-of-contents-close-btn:hover {
  color: var(--dark-gray-text);
}

 .table-of-contents-toggle {
  position: fixed;
  top: 30%;
  left: 0;
  width: 45px;
  height: 180px;
  background-color: var(--primary-blue);
  color: var(--white-color);
  border: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
}

.table-of-contents-toggle {
  top: 55%;
}

 .open .table-of-contents-toggle {
  left: var(--panel-width);
}

 .table-of-contents-toggle span {
  display: block;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  transform: rotate(-90deg);
}
