:root {
  --tema-vk:1;
}
.toc-list {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--yta);
  border-bottom: var(--linje-bredd) solid var(--linje-2);
  font-family: var(--text);
}
.toc-list[hidden] {
  display: none;
}
.toc-list-knapp {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.toc-list-text {
  display: grid;
  flex: 1;
  min-width: 0;
}
.toc-list-etikett {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  line-height: 1.3;
}
.toc-list-titel {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-list-antal {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mute);
}
.toc-list-pil {
  flex: none;
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 0;
  border-right: 2px solid var(--p);
  border-bottom: 2px solid var(--p);
  transform: rotate(45deg);
  transition: transform .15s;
}
.toc-list.oppen .toc-list-pil {
  transform: rotate(225deg);
  margin-top: 4px;
}
.toc-list-knapp:focus-visible {
  outline: 2px solid var(--p);
  outline-offset: -2px;
}
.toc-list-framsteg {
  height: 2px;
  background: var(--linje);
}
.toc-list-framsteg span {
  display: block;
  height: 100%;
  background: var(--p);
  transition: width .2s;
}
.toc-list-panel {
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px 16px 16px;
  border-top: var(--linje-bredd) solid var(--linje);
}
.toc-list-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--linje);
}
.toc-list-panel a {
  display: block;
  margin-left: -2px;
  padding: 10px 0 10px 14px;
  border-left: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brod);
  text-decoration: none;
}
.toc-list-panel a[aria-current] {
  color: var(--p);
  font-weight: 700;
  border-left-color: var(--p);
}
@media (min-width: 981px) {
  .toc-list {
    display: none !important;
  }
}
